Re: [RFC] xfs_io: Add cachestat syscall support

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

 



"Darrick J. Wong" <djwong@xxxxxxxxxx> writes:

> On Mon, Mar 17, 2025 at 12:15:29AM +0530, Ritesh Harjani (IBM) wrote:
>> This adds -c "cachestat off len" command which uses cachestat() syscall
>> [1]. This can provide following pagecache detail for a file.
>> 
>> - no. of cached pages,
>> - no. of dirty pages,
>> - no. of pages marked for writeback,
>> - no. of evicted pages,
>> - no. of recently evicted pages
>> 
>> [1]: https://lore.kernel.org/all/20230503013608.2431726-3-nphamcs@xxxxxxxxx/T/#u
>> 
>> Signed-off-by: Ritesh Harjani (IBM) <ritesh.list@xxxxxxxxx>
>
> Just out of curiosity, is there a manpage change for xfs_io.8 that goes
> with this new subcommand?
>

Looks like I might have missed the man page entry change,...

>> ---
>>  configure.ac          |  1 +
>>  include/builddefs.in  |  1 +
>>  io/Makefile           |  5 +++
>>  io/cachestat.c        | 77 +++++++++++++++++++++++++++++++++++++++++++
>>  io/init.c             |  1 +
>>  io/io.h               |  6 ++++
>>  m4/package_libcdev.m4 | 19 +++++++++++
>>  7 files changed, 110 insertions(+)
>>  create mode 100644 io/cachestat.c

...else we would have seen an entry in man/man8/xfs_io.8 file. 

Since this is taken in for-next, I can submit a separate patch for the
man page entry update.

Thanks for catching it. 

-ritesh




[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux