Re: Shared memory - using ps(1)

2006-05-03 Thread Bill Moseley
On Tue, May 02, 2006 at 01:42:28AM -0400, Roberto C. Sanchez wrote: > I get your point. Hopefully you get mine :-) I hope I get both points. ;) My 20 processes of statically linked MySQL may share memory between themselves (because they were forked from a parent??) but if MySQL was linked with l

Re: Shared memory - using ps(1)

2006-05-01 Thread Roberto C. Sanchez
Matthew R. Dempsky wrote: > On Tue, May 02, 2006 at 12:50:20AM -0400, Roberto C. Sanchez wrote: > >>That is true whether or not the binary is statically linked. > > > Sure, but the grand parent post specifically asked about statically > linked binaries. > > >>The important thing is that libra

Re: Shared memory - using ps(1)

2006-05-01 Thread Matthew R. Dempsky
On Tue, May 02, 2006 at 12:50:20AM -0400, Roberto C. Sanchez wrote: > That is true whether or not the binary is statically linked. Sure, but the grand parent post specifically asked about statically linked binaries. > The important thing is that library code is not shared. You stated ``If they

Re: Shared memory - using ps(1)

2006-05-01 Thread Roberto C. Sanchez
Matthew R. Dempsky wrote: > On Mon, May 01, 2006 at 07:11:53AM -0400, Roberto C. Sanchez wrote: > >>If they are statically, linked, then they don't share their library >>code. Ergo, you are wasting memory. > > > Multiple processes of the same statically linked executable will share > their tex

Re: Shared memory - using ps(1)

2006-05-01 Thread Matthew R. Dempsky
On Mon, May 01, 2006 at 07:11:53AM -0400, Roberto C. Sanchez wrote: > If they are statically, linked, then they don't share their library > code. Ergo, you are wasting memory. Multiple processes of the same statically linked executable will share their text pages. -- To UNSUBSCRIBE, email to

Re: Shared memory - using ps(1)

2006-05-01 Thread Danijel Tasov
Bill Moseley wrote: > Also, ps is always showing the UID # instead of the name. Shouldn't > that come from /etc/passwd? > > $ fgrep 112 /etc/passwd > subversion:x:112:112:subversion:/var/lib/projects:/bin/sh $ printf subversion | wc -c 10 ps displays the uid because the user name is longer than

Re: Shared memory - using ps(1)

2006-05-01 Thread Roberto C. Sanchez
Bill Moseley wrote: > On Sun, Apr 30, 2006 at 10:07:17PM -0400, Roberto C. Sanchez wrote: > >>http://it.slashdot.org/article.pl?sid=06/02/06/120210&from=rss > > > What happens with statically linked binaries? > > I've got about 25 Mysql processes that look like this in pmap -d: > > mapped: 1

Re: Shared memory - using ps(1)

2006-04-30 Thread Bill Moseley
On Sun, Apr 30, 2006 at 10:07:17PM -0400, Roberto C. Sanchez wrote: > http://it.slashdot.org/article.pl?sid=06/02/06/120210&from=rss What happens with statically linked binaries? I've got about 25 Mysql processes that look like this in pmap -d: mapped: 148116Kwriteable/private: 140952K

Re: Shared memory - using ps(1)

2006-04-30 Thread Roberto C. Sanchez
Bill Moseley wrote: > Top shows shared memory, but I'm not clear how to read shared memory > with ps. I'm curious how much total memory these Apache process are > using -- and how much is shared between the processes. > > Does RSS include memory that might be shared with other processes? > > $ p

Shared memory - using ps(1)

2006-04-30 Thread Bill Moseley
Top shows shared memory, but I'm not clear how to read shared memory with ps. I'm curious how much total memory these Apache process are using -- and how much is shared between the processes. Does RSS include memory that might be shared with other processes? $ ps --ppid 29903 -F UIDPID