[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Shared memory - using ps(1)

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 text pages.

That is true whether or not the binary is statically linked.  The
important thing is that library code is not shared.  If you have a GTK2
program that is statically linked, yes multiple processes of the same
program will share code in memory, but all that GTK2 code will be pulled
in just for those processes.  Other processes using the GTK2 libraries
will have their own seperate copy of the library in memory.


Roberto C. Sanchez

Attachment: signature.asc
Description: OpenPGP digital signature

Reply to: