It's Friday, but I still don't feel like installing all the dependencies to
build the procps package...   I believe the smoking gun is on my desk
already:

procps-3.2.7-slab.patch (part of the SUSE add-ons to procps) says

@@ -603,6 +615,7 @@
   }
   kb_swap_used = kb_swap_total - kb_swap_free;
   kb_main_used = kb_main_total - kb_main_free;
+  kb_main_cached += kb_slab_reclaimable + kb_swap_cached + kb_nfs_unstable;
 }

That explains why it's not in RHEL since it is not part of the upstream
procps sources. The changelog entry has an innocent description like below.

* Thu Nov 17 2011 [email protected]
- Change order of parsing /proc/meminfo to make sure that
  "Slab" and "SwapCached" fields are found  (bnc#696351)

I don't think this is a wise change, and I'm surprised a distributor would
do things like that. I can see that you might want to add swap cache if you
need to have a single number, but there's more value in having this
consistent in the distributions.

Rob



On 17 May 2013 12:57, Michael MacIsaac <[email protected]> wrote:

> Alex,
>
> > That is not what I see at my end.
> Wait, what?
>
> You have two RHELs and they agree with my RHEL - the value for "Cached" in
> /proc/meminfo is also shown in "free".  It's SLES's "free" that seems to
> add the "Cached" and "SReclaimable" values (and as Rob points out,
> possibly also "SwapCached").
>
> "Mike MacIsaac" <mikemac at-sign us.ibm.com>
>
> ----------------------------------------------------------------------
> For LINUX-390 subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO LINUX-390 or
> visit
> http://www.marist.edu/htbin/wlvindex?LINUX-390
> ----------------------------------------------------------------------
> For more information on Linux on System z, visit
> http://wiki.linuxvm.org/
>

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

Reply via email to