title: In /proc/meminfo, which entries correspond to page in/out and swap in/out?
body: <p>I'm writing a C++ program running on replit.com (ubuntu)</p>
  <p>which is meant to parse the text in <code>/proc/meminfo</code> and <code>/proc/stat</code> and collate some values related to cpu and memory usage.</p>
  <p>One of the things I have to calculate is the <strong>page in/out ratio</strong> as well as <strong>swap in/out ratio</strong>.</p>
  <p>I'm guessing &quot;swap in&quot; corresponds SwapCached and &quot;swap out&quot; corresponds to SwapFree, according to the descriptions of SwapCached and SwapFree here:</p>
  <p><a href="https://www.kernel.org/doc/Documentation/filesystems/proc.txt" rel="nofollow noreferrer">https://www.kernel.org/doc/Documentation/filesystems/proc.txt</a>.</p>
  <p>Is this right? If not, where may I find this information?</p>