Spamassassin & dccifd: pthread_create(): Cannot allocate memory

Gunther dcc@caribsms.com
Sat Dec 17 18:21:50 UTC 2005


Vernon Schryver wrote:
>> From: "Gunther" 
>
>> Dec 15 15:52:22 server dccifd[19733]: pthread_create(): Cannot allocate
>> memory
>
>It sounds as if dccifd is encountering memory limits.  Is the system
>short of swap space?  Does the UID running dccifd allow a sufficiently
>large process?
>

UID is root, there is enough free swap space (almost 1GB).
It looks like that dccifd is eating up the virtual memory (VSZ) and then the

condition occurs. Somewhere dccifd (or the o/s function) is not freeing
allocated memory.


Here some more process information taken at different times/stages:

top:
84 processes: 81 sleeping, 3 running, 0 zombie, 0 stopped
CPU states:   1.3% user   0.1% system   0.0% nice   0.0% iowait  98.4% idle
Mem:   513864k av,  501696k used,   12168k free,       0k shrd,   78776k
buff
                    379284k actv,   38388k in_d,   11124k in_c
Swap: 1052152k av,   89000k used,  963152k free                  275864k
cached

ps axl:
Process running fine:
F   UID   PID  PPID PRI  NI   VSZ  RSS WCHAN  STAT TTY        TIME COMMAND
1     0 14624     1  25   0  2224  588 wait4  S    ?          0:00
/var/dcc/libexec/dccifd -tCMN,5, -llog -wwhiteclnt -Uuserdirs -SHELO
-Smail_host -SSender -SList-ID
1     0 14625 14624  15   0 83716 9128 schedu S    ?          0:00
/var/dcc/libexec/dccifd -tCMN,5, -llog -wwhiteclnt -Uuserdirs -SHELO
-Smail_host -SSender -SList-ID

Process when pthread_create(): Cannot allocate memory:
F   UID   PID  PPID PRI  NI   VSZ  RSS WCHAN  STAT TTY        TIME COMMAND
1     0 14624     1  25   0  2224  120 wait4  S    ?          0:00
/var/dcc/libexec/dccifd -tCMN,5, -llog -wwhiteclnt -Uuserdirs -SHELO
-Smail_host -SSender -SList-ID
1     0 14625 14624  15   0 2090780 14760 schedu S ?          0:01
/var/dcc/libexec/dccifd -tCMN,5, -llog -wwhiteclnt -Uuserdirs -SHELO
-Smail_host -SSender -SList-ID
0     0 20581 27178  15   0  3572  628 pipe_w S    pts/1      0:00 grep dcc

some hours later after a rcDCC restart:

1     0 20698     1  25   0  2224  136 wait4  S    ?          0:00
/var/dcc/libexec/dccifd -tCMN,5, -llog -wwhiteclnt -Uuserdirs -SHELO
-Smail_host -SSender -SList-ID
1     0 20699 20698  15   0 1353480 12368 schedu S ?          0:00
/var/dcc/libexec/dccifd -tCMN,5, -llog -wwhiteclnt -Uuserdirs -SHELO
-Smail_host -SSender -SList-ID
1     0 20700 20699  15   0 1353480 12368 schedu S ?          0:00
/var/dcc/libexec/dccifd -tCMN,5, -llog -wwhiteclnt -Uuserdirs -SHELO
-Smail_host -SSender -SList-ID
1     0 20701 20699  15   0 1353480 12368 schedu S ?          0:00
/var/dcc/libexec/dccifd -tCMN,5, -llog -wwhiteclnt -Uuserdirs -SHELO
-Smail_host -SSender -SList-ID

1     0 20698     1  25   0  2224  136 wait4  S    ?          0:00
/var/dcc/libexec/dccifd -tCMN,5, -llog -wwhiteclnt -Uuserdirs -SHELO
-Smail_host -SSender -SList-ID
1     0 20699 20698  15   0 1361672 12392 schedu S ?          0:00
/var/dcc/libexec/dccifd -tCMN,5, -llog -wwhiteclnt -Uuserdirs -SHELO
-Smail_host -SSender -SList-ID
1     0 20700 20699  15   0 1361672 12392 schedu S ?          0:00
/var/dcc/libexec/dccifd -tCMN,5, -llog -wwhiteclnt -Uuserdirs -SHELO
-Smail_host -SSender -SList-ID
1     0 20701 20699  15   0 1361672 12392 schedu S ?          0:00
/var/dcc/libexec/dccifd -tCMN,5, -llog -wwhiteclnt -Uuserdirs -SHELO
-Smail_host -SSender -SList-ID

Gunther





More information about the DCC mailing list

Contact vjs@rhyolite.com by mail or use the form.