Artificial intelligent assistant

How to monitor paging activity per process? I found that `vmstat` gives: * si: Amount of memory swapped in from disk (/s) * so: Amount of memory swapped to disk (/s) (and here I understand that _swapping_ and _paging_ are being used interchangeably) Is it possible to get those statistics for a specific process?

The simple answer is you can't. Writing and reading to swap is done by kswapd. There already was answer how it is [generally operates][1] - <

If you wan't to reduce value of Swap IN/Out you may check `vm.swappiness` `sysctl` param.


sysctl vm.swappiness


You may set lower value to decrease swap usage in system. Generally it is set to 60.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 6b516eacc5e6ca4789acb10a9b2e82a9