Skip to Content

a lot of paging in/out - What is it?

Hi experts,

I am jumping via google from one page to another one and I am still not sure what paging is and what I am looking for 🤯

What I got is, that paging is working differently to swapping and just storing parts of a process on the disc.

Hopefully this is correct.

But what is not, page-in, page-out and faults?
Does it mean the following:

- page-in, bringing the pages from memory to disc

- page-out, bringing the page out of the disc

- faults, bringing the page back to memory as it was requested?

Next item is, in "sar -b" i find values like 13318 pgpgin/s.

We have pagesize 4096, so this means weave a paging-in from around 53272 kb/s.

But what means /s? Is it an average or total value? I can't imagine that the system would page 53 MB per second.

Next questions, why is it paging, when still a lot of memory is available?

Kind regards

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Aug 04, 2015 at 12:13 PM

    Hi Christian,

    To summarize what it means, your computer has a certain amount of RAM, which is its "memory". It simulates more RAM by allowing extra data to be saved to the hard disk, which is known as Virtual Memory. To do this, it breaks your memory space up into "pages". Applications that need access to data that is in memory call the data by page. If an application calls a page and it is in the RAM, then it is a "page in" occurs. If an app calls for a page from memory, and that page is currently stored on the hard disk and has to be read back into the RAM, then a "Page Out" occurs. A "Page-out" slows the operation of the system down because it has to read the data from a hard disk into RAM first, rather than reading straight from the RAM. If page-outs exceed page-ins, you definitely don't have enough RAM.

    Writing memory pages to the page file when there is still plenty of RAM is a good thing. As soon as a program requests more memory than there is free, the OS can start clearing out space as soon as possible. Better to prepare now than later. If the OS were to wait around, then you run into a performance bottleneck. If a program asks for more memory than is available, now you have to wait until the OS writes out changed memory block, and then free them up.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.