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

Re: Diminuicao do uso de memoria pelo Evolution e Spamassassin



Em Qua, 2006-03-08 às 00:05 -0300, Marcos Lazarini escreveu:
> marcelo wrote:
> > Olá senhores. Parce longo (e é), mas é simples.
> > 
> > Abaixo uma listagem do comando top classificado por %MEM (atentem para o
> > apache):
> > 
> > top - 16:13:06 up 17 min,  2 users,  load average: 0.16, 0.18, 0.10
> > Tasks:  83 total,   1 running,  82 sleeping,   0 stopped,   0 zombie
> > Cpu(s):  6.3% us,  1.0% sy,  0.0% ni, 92.1% id,  0.7% wa,  0.0% hi,
> > 0.0% si
> > Mem:    516220k total,   201396k used,   314824k free,    10928k buffers
> > Swap:   996020k total,        0k used,   996020k free,    89120k cached
> > 
> >   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
> >  .
     .
     .
> >  3113 root      16   0  9132 6380 5300 S  0.0  1.2   0:00.00 miniserv.pl
> >  2772 root      16   0  8172 5460 5360 S  0.0  1.1   0:00.01 python
> >  3064 www-data  16   0 15064 5384  12m S  0.0  1.0   0:00.00 apache2
> >  3065 www-data  16   0 14908 5292  12m S  0.0  1.0   0:00.00 apache2
> >  4535 www-data  16   0 14908 5192  12m S  0.0  1.0   0:00.00 apache2
> >  4536 www-data  17   0 14908 5192  12m S  0.0  1.0   0:00.00 apache2
> >  4537 www-data  16   0 14908 5192  12m S  0.0  1.0   0:00.00 apache2
> >  3066 www-data  16   0 14908 5184  12m S  0.0  1.0   0:00.00 apache2
> >  3067 www-data  18   0 14908 5184  12m S  0.0  1.0   0:00.00 apache2
> >  3068 www-data  18   0 14908 5184  12m S  0.0  1.0   0:00.00 apache2
> >  3033 root      16   0 14908 5172  12m S  0.0  1.0   0:00.02 apache2
> >  2808 hal       16   0  6480 4908 3020 S  0.0  1.0   0:00.37 hald
> >  4815 marcelo   15   0 16612 3984 7900 S  0.0  0.8   0:00.06
> > gnome-vfs-daemo
> >  3141 root      15   0  9844 3056 9276 S  0.0  0.6   0:00.05 gdm
> >  4754 marcelo   16   0  5368 2928 4748 S  0.0  0.6   0:00.18
> > bonobo-activati
> >  2954 root      16   0  7872 2596 6860 S  0.0  0.5   0:00.00 smb
> 
> Não acredite muito no que o ps mostra como uso de memória... Eu 
> recomendo a leitura do artigo referenciado aqui: 
> http://it.slashdot.org/article.pl?sid=06/02/06/120210
> Vai esclarecer muita coisa pra vc....

Muito bom. Obrigado.

<cola>
The moral of this story is that process memory usage on Linux is a
complex matter; you can't just run ps and know what is going on. This is
especially true when you deal with programs that create a lot of
identical children processes, like Apache. ps might report that each
Apache process uses 10 megabytes of memory, when the reality might be
that the marginal cost of each Apache process is 1 megabyte of memory.
This information becomes critial when tuning Apache's MaxClients
setting, which determines how many simultaneous requests your server can
handle (although see one of my past postings for another way of
increasing Apache's performance).
</cola>

Vou procurar saber mais sobre o spamd.

[]'s



Reply to: