この質問は特定のユーザーにlinuxのみ当てはまることに注意してください。とswap spaceは、専用という意味ですswap partition。
私はgoogleこれについて少し行い、これらを見つけましたdefinitions:
Paging refers to writing portions, termed pages, of a process’ memory to disk.
Swapping, strictly speaking, refers to writing the entire process, not just part, to disk.
In Linux, true swapping is exceedingly rare, but the terms paging and swapping
often are used interchangeably.
そして
page-out: The system's free memory is less than a threshold "lotsfree" and unnused / least used pages are moved to the swap area.
page-in: One process which is running requested for a page that is not in the current memory (page-fault), it's pages are being brought back to memory.
swap-out: System is thrashing and has deactivated a process and it's memory pages are moved into the swap area.
swap-in: A deactivated process is back to work and it's pages are being brought into the memory.
ここで、ページングとスワッピングの違いについて尋ねる質問と同じ質問を複製することができます。しかし、私はもう少し追求します。いつでも、これらのカウンターは/proc/vmstat相互に排他的ですか?つまり、パラメーターにpswpinはいくつかのカウントpgpginまたはその逆が含まれますか?プロセスがあると、正確にはdeactivatedどうなりますか?すべてのページがswapスペースに移動された場合、それは複数のページとどのように正確に異なりますpageoutsか?また、pageinページフォールトが発生するたびにa が発生した場合、他の2つのパラメーターについて、pgmajfaultおよびpgfaultこのイベントに関して何が言えるでしょうか。a pagefault (major? minor?)が発生するたびに、対応するものpageinも発生するのですか?
これらの個々のパラメーターをテストするためにいくつかのサンプルプログラム/ベンチマークが提案されている場合、それは役に立ちます。
PS:私は質問を追加/編集し続けるかもしれません:)