> From: javier.f.conde at gmail.com
> To: db at dabo.ch
> Date: Tue, 8 Sep 2009 23:13:33 +0200
> CC: ug-chosug at opensolaris.org
> Subject: Re: [ug-chosug] how much memory does you programs need?
> 
> 
> Hi Daniel,
> 
> The amount of memory used by an application is independent of the OS 
> or compilation options. When the application needs some memory, it 
> will use a malloc to ask for the amount needed.


Also, let's not forget that Solaris (SunOS) does not calculate the amount of 
free and used memory correctly.  For example, this becomes apparent when 
running Oracle, which uses shared memory; tools like prstat(1) do not account 
for this properly, so it is not uncommon to see an application which uses SHM 
and DISM using 196GB on a system with 34GB of virtual memory.

 

Another thing about UNIX is that it will page out code which is inactive to 
swap, so while an application might use 500MB of RAM, RSS (resident set size), 
the size of text pages (code) in memory might be much smaller - a few tens of 
megabytes.

_________________________________________________________________
More than messages?check out the rest of the Windows Live?.
http://www.microsoft.com/windows/windowslive/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.opensolaris.org/pipermail/ug-chosug/attachments/20090912/891ed598/attachment.html>

Reply via email to