This creates /proc/fs/pagebuf/stat - name and contents subject to change.
It reports 7 different numbers out of pagebuf in this format:
cat /proc/fs/pagebuf/stat
pagebuf 1573261 294824 1290019 630309 294812 4462 418748
The values are:
o number of pagebuf_get calls
o number of pagebufs created
o number of requests for a locked pagebuf which succeeded
o number of non-blocking requests for a locked which failed
o number of requests for a locked pagebuf which failed due to no pagebuf
o number of calls to allocate a page for insertion in a pagebuf
o number of hits in the page_cache when looking for a page to put in a pagebuf
Date: Wed Aug 9 13:30:01 PDT 2000
Workarea: jen.americas.sgi.com:/src/lord/xfs-linux.2.4.0-test5
The following file(s) were checked into:
bonnie.engr.sgi.com:/isms/slinx/2.4.0-test1-xfs
Modid: 2.4.0-test1-xfs:slinx:71710a
linux/include/linux/page_buf.h - 1.58
linux/fs/pagebuf/page_buf.c - 1.20
linux/fs/pagebuf/page_buf_locking.c - 1.5
- Add some simple statistics to pagebuf
|