Red Hat Bugzilla – Bug 174259
counts in pgpgin and pgpgout reported by vmstat
Last modified: 2015-01-04 17:23:21 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.7.12-1.3.1
Description of problem:
Sorry to bother you again, but here is another procps issue.
vmstat -s returns both pagein/out and pageswapin/out counts, but it
looks to me like the pgpgin/out counts are in kBytes, while the
pswpin/out counts are real pages, this seems to be rather misleading.
I presume vmstat uses /proc/vmstat to get its information, and the
above seems to be true for /proc/vmstat as well.
pgpgin are counted by submit_bio() in drivers/block/ll_rw_blk.c, they
are in sectors, vmstat_start() in mm/page_alloc.c then divides them
swap_readpage/writepage() in mm/page_io.c on the other hand seem to
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Please, can someone from kernel team check it? The command "vmstat -s" is almost
same like "cat /proc/vmstat" and I think that pgpgin/out in kB seems really strange.
With the release of Fedora Core 5 test2, FC3 has now reached end-of-life.
The fedora-legacy team provide security updates for older releases, but not
general bug fixes due to limited resources.
If you can reproduce this bug with Fedora Core 4, please feel free to reopen