Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Swap rate still looks like the wrong metric. It'd be better to have the rate of swap lookups, excluding all writes.


swap-in rate, to be more specific. swap-outs aren't incredibly worrisome.


That's backwards: things like mmap() will generate page-in activity during normal operation. page-outs means that the operating system had to evict something to satisfy other memory requests, which is what you really want to know.


swapouts and pageouts aren't identical in Linux, and are instrumented separately (pswpout and pgpgout, respectively; see /proc/vmstat). mmap() and other page-ins won't be counted under the swap statistics.

A pageout might suggest memory pressure, but not nearly as much as a swapout does. (pgmajfault is a better indicator.) Writing dirty pages is just something the kernel does even when there's no memory pressure at all. Also, unfortunately you can't use pgpgout for anything useful as ordinary file writes are counted there.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: