[Crash-utility] Re: [PATCH v3] add "files -n" command for an inode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Lianbo,
Hi Lianbo,

在 2023/11/6 11:35, lijiang 写道:
[EXTERNAL EMAIL NOTICE: This email originated from an external
sender. Please be mindful of safe email handling and proprietary
information protection practices.]

On Fri, Nov 3, 2023 at 11:30 PM Shijie Huang
<shijie@xxxxxxxxxxxxxxxxxxxxxxxxxx<mailto:shijie@xxxxxxxxxxxxxxxxxxxxxxxxxx>>
wrote:

在 2023/11/3 21:14, lijiang 写道:

I guess all the invalid page is "0" which means an empty page cache
slot, so could you please try this:

No, last time it printed some invalid pages(not only zero values),
you could refer to this:

crash> files -n ffff8ea84c130938
      INODE        NRPAGES
ffff8ea84c130938    62527

files: page_to_nid: invalid page: 0
files: page_to_nid: invalid page: 0
files: page_to_nid: invalid page: 0
files: page_to_nid: invalid page: 10
files: page_to_nid: invalid page: 10
files: page_to_nid: invalid page: 10
files: page_to_nid: invalid page: 20
files: page_to_nid: invalid page: 20
files: page_to_nid: invalid page: 20
files: page_to_nid: invalid page: 30
files: page_to_nid: invalid page: 30
files: page_to_nid: invalid page: 30
files: page_to_nid: invalid page: 40
files: page_to_nid: invalid page: 40
files: page_to_nid: invalid page: 40
files: page_to_nid: invalid page: 50
files: page_to_nid: invalid page: 50
files: page_to_nid: invalid page: 50
files: page_to_nid: invalid page: 60
files: page_to_nid: invalid page: 60
...

I cannot find the kernel version in your email.

could you please tell me your kernel version?

Sure, this issue was reproduced on the 6.5.0-rc1, I mentioned the kernel
---------------------------------------------------------------------------------------

crash> sys
      KERNEL: /root/linux-linus/vmlinux
    DUMPFILE: /proc/kcore
        CPUS: 160
        DATE: Wed Dec 13 16:53:34 CST 2023
      UPTIME: 00:04:42
LOAD AVERAGE: 1.41, 2.05, 0.96
       TASKS: 1889
    NODENAME: fedora
     RELEASE: 6.5.0-rc1-00001-gecbb6ce3a12d
     VERSION: #54 SMP Wed Dec 13 16:45:04 CST 2023
     MACHINE: aarch64  (unknown Mhz)
      MEMORY: 510.8 GB

crash> files
PID: 4960     TASK: ffff4001dd44ec00  CPU: 116  COMMAND: "crash"
ROOT: /    CWD: /root/tool/crash/crash
 FD       FILE            DENTRY           INODE       TYPE PATH
  0 ffff3fff8ec01600 ffff3fffa9d48d80 ffff3fff8b443f60 CHR /dev/pts/0
  1 ffff3fff8ec01600 ffff3fffa9d48d80 ffff3fff8b443f60 CHR /dev/pts/0
  2 ffff3fff8ec01600 ffff3fffa9d48d80 ffff3fff8b443f60 CHR /dev/pts/0
  3 ffff4000073a7600 ffff07ff805395c0 ffff07ff89b838f0 CHR /dev/null
  4 ffff4000073a5f00 ffff07ff8ca11740 ffff07ff8f6cc440 REG /proc/kcore
  5 ffff3fffea10ce00 ffff3fff9c5da0c0 ffff3fff8b4b97f8 REG /root/linux-linus/vmlinux
  6 ffff3fffea10d800 ffff3fffa0550d80 ffff3fff8b603330 FIFO
  7 ffff3fffea10fe00 ffff3fffa0550d80 ffff3fff8b603330 FIFO
  8 ffff3fffea10f900 ffff3fffa0551c80 ffff3fff8b6046b0 FIFO
  9 ffff3fffea10d300 ffff3fffa0551c80 ffff3fff8b6046b0 FIFO
 10 ffff3fffea10fb00 ffff3fffa0550e40 ffff3fff8b600000 FIFO
 11 ffff3fffea10ee00 ffff3fffa0550e40 ffff3fff8b600000 FIFO
 12 ffff3fffea10fa00 ffff3fffa0551d40 ffff3fff8b601ad0 FIFO
 13 ffff3fffea10c400 ffff3fffa0551d40 ffff3fff8b601ad0 FIFO
 14 ffff3fffea10dd00 ffff3fff9c5da0c0 ffff3fff8b4b97f8 REG /root/linux-linus/vmlinux
 15 ffff3fffea10ea00 ffff3fff9ddf9bc0 ffff3fff99eee280 REG /tmp/#260
 17 ffff3fffe2650500 ffff3fffe316efc0 ffff3fff8b5789c0 FIFO

crash> files -n ffff3fff8b4b97f8
     INODE        NRPAGES
ffff3fff8b4b97f8    62198

     NODE           PAGES
      0                 0
      1             62198
time cost:0 s
crash>

 ---------------------------------------------------------------------------------------

I tested the kernel 6.5-rc1 with the "crash_core: export vmemmap when CONFIG_SPARSEMEM_VMEMMAP is enabled"

I cannot reproduce it....


Thanks

Huang Shijie
--
Crash-utility mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxxxxxx
https://${domain_name}/admin/lists/devel.lists.crash-utility.osci.io/
Contribution Guidelines: https://github.com/crash-utility/crash/wiki




[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux