Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] top command: meaning of 'm' in memory related values?
- Date: Mon, 24 Feb 2014 11:39:19 +0900
- From: "Stephen J. Turnbull" <stephen@example.com>
- Subject: Re: [tlug] top command: meaning of 'm' in memory related values?
- References: <CABEB6AhggofO+qV_BCGF+SAcJgrWw2=5RLZG9o-SWK17q8Zu8w@mail.gmail.com> <CABHGxq6sQiHsSOPyFw+y3R315ytt7EL0fcOnMrLO9F9C9suDQA@mail.gmail.com> <CABEB6Aiz4KNdx6VFWVhCFpMBwdCSEe8jfEXR7aRsTnUmUpeqZQ@mail.gmail.com>
Hector Akamine writes: > I guess the total memory used by apache is not 42 MB*the number of > processes, but less than this as there is some overlap (for shared > libraries, etc) See SHR for explicitly shared objects. However, Linux implements copy-on-write sematics AFAIK, which means that for pages of pure code (ie, no globals, no self-modifying code) the same page is used for all of them, vastly increasing the probability that the page doesn't get swapped. Also, pages of global configuration data may also never be written by children of the original process, in which case again the same page is used and likely to remain in memory. If the kernel is really smart it could keep a refcount for the page, and avoid evicting pages with high refcounts. So the answer is, "who knows how much space is actually used? you won't know until you're blindsided by the OOM-killer." Jim B and others may have a better answer, but that's mine. :-)
- References:
- [tlug] top command: meaning of 'm' in memory related values?
- From: Hector Akamine
- Re: [tlug] top command: meaning of 'm' in memory related values?
- From: Jim Breen
- Re: [tlug] top command: meaning of 'm' in memory related values?
- From: Hector Akamine
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] What is the Sysadmin pager these days?
- Next by Date: Re: [tlug] top command: meaning of 'm' in memory related values?
- Previous by thread: Re: [tlug] top command: meaning of 'm' in memory related values?
- Next by thread: Re: [tlug] top command: meaning of 'm' in memory related values?
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links