You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by Apache Wiki <wi...@apache.org> on 2005/07/07 18:30:29 UTC

[Spamassassin Wiki] Update of "TopSharedMemoryBug" by JustinMason

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Spamassassin Wiki" for change notification.

The following page has been changed by JustinMason:
http://wiki.apache.org/spamassassin/TopSharedMemoryBug

The comment on the change is:
add note about lkml thread

------------------------------------------------------------------------------
  
  Are you running Linux?  If so, this is an annoying bug somewhere between 'top' and Linux memory management.
  
- What's happening is that, sometime during kernel 2.5 development, the memory management subsystem was changed to no longer track data pages shared between multiple processes through copy-on-write, as 'shared'.   Instead, only text pages, and pages loaded from shared libraries, are considered part of the 'shared' section.
+ What's happening is that, sometime during kernel 2.5 development, the memory management subsystem was changed to no longer track data pages shared between multiple processes through copy-on-write, as 'shared'.   Instead, only text pages, and pages loaded from shared libraries, are considered part of the 'shared' section, in contradiction to what the top(1) manual page states.
  
  This is generally observable in all 2.6.x kernels and Red Hat's patched versions of the 2.4.1x and 2.4.2x kernels.  Reportedly, RHEL 2.1 ES and AS kernels are the same, too.
  
@@ -27, +27 @@

  
  == Workarounds ==
  
- If you want a reliable idea of your memory sharing, so far the only way to determine this seems to be to downgrade the kernel to vanilla 2.4.[12]* or test on a non-Linux platform.
+ If you want a reliable idea of your memory sharing, one way to determine this seems to be to downgrade the kernel to vanilla 2.4.[12]* or test on a non-Linux platform.  There's also patches that can be applied to 2.6 to get useful figures via the /proc/$$/smaps interface; [http://lkml.org/lkml/2005/7/6/250 lkml thread on the topic].