[prev in list] [next in list] [prev in thread] [next in thread] 

List:       licq-main
Subject:    Re: [Licq-main] licq uses 32.000 KB memory??
From:       Per Lejontand <pele () acc ! umu ! se>
Date:       2000-03-26 21:46:36
[Download RAW message or body]

On Sun, Mar 26, 2000 at 11:37:16PM +0200, Jan Houtsma wrote:

> Thats the total memory size of licq.
> Thats even more than X does and half of what i have as
> physical RAM in my PC. Isn't that a little bit much? 
Let me guess, you are running linux right? Linux sucks at threadhandling
and this is probably what's confusing you ..  you did something like:

per@chili ~ >ps wuax | grep licq
per       6219  0.0  4.0  6616  5152  p1 S   Mar 25   0:00 /home/per/bin/licq 
per       6225  0.0  4.0  6616  5152  p1 S   Mar 25   0:00 /home/per/bin/licq 
per       6226  0.0  4.0  6616  5152  p1 S   Mar 25   0:02 /home/per/bin/licq 
per       6227  0.0  4.0  6616  5152  p1 S   Mar 25   0:00 /home/per/bin/licq 
per       6228  0.0  4.0  6616  5152  p1 S   Mar 25   0:35 /home/per/bin/licq 

and them summed all the memory figures right? Wrong. Linux displays
each thread as a separate process. In my case licq uses 6616kbyte of ram,
not 5*6616k's .. Each thread has it's own stack, the main heap, text etc
are all shared .. 

-- 
//Per
.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,
  Per Lejontand, Student of Computer science, Admin @ {acc,ltlab}.umu.se
  Phone: +46-(0)70-2163191
 ***I was toilet-trained at gunpoint.
		-- Billy Braver

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic