Tenga en cuenta que esta pregunta es específica linuxsolo para . Y por swap space, me refiero a los dedicados swap partition.
Hice googleun poco sobre esto, y encontré estos 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.
y
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.
Ahora, es posible que desee duplicar esta pregunta con las que preguntan sobre las diferencias entre paginación e intercambio. Pero busco un poco más. En algún momento, ¿son estos contadores /proc/vmstatmutuamente excluyentes? Con eso, quiero decir, ¿el parámetro pswpinincluye algunos recuentos pgpgino viceversa? ¿Qué sucede exactamente cuando es un proceso deactivated? Si todas sus páginas se mueven al swapespacio, entonces, ¿cómo es exactamente diferente de varias pageouts? Además, si pageinocurre un error cada vez que ocurre una página, ¿qué se puede decir sobre los otros dos parámetros pgmajfaulty pgfaultcon respecto a este evento? ¿Es el caso que cada vez que pagefault (major? minor?)ocurre un, pageintambién ocurre un correspondiente ?
Sería útil si se sugieren algunos programas / puntos de referencia de ejemplo para probar estos parámetros individuales.
PD: Puedo seguir agregando / editando las preguntas :)