Hi,
I have just started with nsd. I attempted to create a database of the
net zone, after a couple of minutes I get:
zonec: malloc failed: Cannot allocate memory
The zone file is this large:
% wc net.zone
9533163 28599507 314469843 net.zone
The machine has a couple of gigs of RAM. The malloc seems to occur soon
after the process size reaches 500 megs. There is still well over a gig
of free memory.
Any ideas what could be causing this?
thanks,
-joe
[Quoting Joseph McDonald, on Dec 4, 3:52, in "zonec fails on fairl ..."]
..
zonec: malloc failed: Cannot allocate memory
..
The machine has a couple of gigs of RAM. The malloc seems to occur soon
after the process size reaches 500 megs. There is still well over a gig
of free memory.
You don't tell what system you use, but you might look at:
1. user limits (type "limit" in the cshs or tcsh)
2. if you use FreeBSD, check "options MAXDSIZ" in your kernel config.
Regards,
-- ted
a message of 25 lines which said:
zonec: malloc failed: Cannot allocate memory
On a Tru64 machine:
NSDSIZE=`rcmgr get NSD_SIZE`
# nsd is greedy
ulimit -d ${NSDSIZE}
With (see /etc/rc.config):
ns2:~ % rcmgr get NSD_SIZE
1024000
And for the compiler:
NSDSIZE=`rcmgr get NSD_SIZE`
# zonec is greedy
ulimit -d ${NSDSIZE}