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][tlug] Process Memory Usage
- Date: Fri, 7 Nov 2008 13:24:46 +0900
- From: Curt Sampson <cjs@example.com>
- Subject: [tlug] Process Memory Usage
- User-agent: Mutt/1.5.17 (2007-11-01)
I notice that the VM size of processes under Linux, as compared to NetBSD, is remarkably large. I suspect some sort of accounting difference, but that's not the real issue here. I'm dealing with machines where memory's getting a bit tight. Generally we've got about 550 processes running, most of which are a couple of daemons (200-300 of each), one written in Perl, and the other in Ruby. Overall, memory usage is about 6-7 GB, outside of buffer cache. Obviously these processes have a lot of common code, and the the VM size from /proc/$pid/status (this is the figure also reported by ps and top) is obviously fairly useless. (The last time I had a look, 250 instances of that perl daemon alone had a VM usage figure that summed to about 45 GB.) So what I want to know is, where do I get the figure for the size of non-shared memory that is backed by swap? That is, I don't care about the executable itself, nor the shared libs, nor mmapped files, just the memory that would actually be freed if I killed the process. And guidance on where to go to find out more about the details of process memory allocation in Linux is welcome. cjs -- Curt Sampson <cjs@example.com> +81 90 7737 2974 Mobile sites and software consulting: http://www.starling-software.com
- Follow-Ups:
- [tlug] Process Memory Usage
- From: Stephen J. Turnbull
- Re: [tlug] Process Memory Usage
- From: Edward Middleton
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Just curious... how much impact does a kernel update make?
- Next by Date: Re: [tlug] Re: [RFC] Outline of the fast HTTP talk (PHP benchmark)
- Previous by thread: Re: [tlug] Just curious... how much impact does a kernel update make?
- Next by thread: [tlug] Process Memory Usage
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links