Thread View: news.software.nntp
3 messages
3 total messages
Started by Elizabeth Zaenger
Mon, 06 Mar 2000 00:00
"dbz.c:1328 Can't malloc"
Author: Elizabeth Zaenger
Date: Mon, 06 Mar 2000 00:00
Date: Mon, 06 Mar 2000 00:00
27 lines
1811 bytes
1811 bytes
OK, I know I've seen this on the newsgroup before, but several problems with my newsserver has wiped out all the old articles (sigh!). I'm running INN 2.2.2 on FreeBSD 3.2, CNFS, with about 144G of spool. I'm getting this error message when news.daily runs: > dbz.c:1328 Can't malloc 188471112 bytes, Cannot allocate memoryexpire end and ctlinnd shows innd stays reserved by the expire process. My history file is approaching 2G, but under (it's just over 1.9G right now) and the last time this happened, I used makehistory to re-create a smaller history file, which fixed things, but it's also the reason why I don't have any "old" news sitting around any more 8^( What do I need to "fix" to get around this? I'm pretty sure I'm using the FreeBSD malloc (which I thought could handle files bigger than 2G). Is it dbz which is failing? I'm hoping to get this fixed before the whole system locks up again... -- Elizabeth Zaenger, Unix Support Departmental Computing Organization University of Michigan, Electrical Engineering and Computer Science Dept.
Re: "dbz.c:1328 Can't malloc"
Author: Elizabeth Zaenger
Date: Mon, 06 Mar 2000 00:00
Date: Mon, 06 Mar 2000 00:00
58 lines
3022 bytes
3022 bytes
Oliver Fromme <olli@dumps.core.de> writes: > Elizabeth Zaenger <liz@eecs.umich.edu> wrote (06 Mar 2000 10:12:24 -0500): > >> dbz.c:1328 Can't malloc 188471112 bytes, Cannot allocate memoryexpire end > > [...] > > What do I need to "fix" to get around this? I'm pretty sure I'm using the > > FreeBSD malloc (which I thought could handle files bigger than 2G). Is it > > dbz which is failing? > > malloc() has nothing to do with file sizes -- it's trying to > allocate memory (i.e. RAM or swap). How much RAM do you have > in that machine, and how much swap space? It's trying to > allocate about 188 Mbyte. Maybe you should try to watch your > free memory during the next expire (e.g. using the "top" > command). > > If there is plenty of memory free, then maybe it is a limit > problem. Have a look at your /etc/login.conf file for the > default resource limits of the "news" user. You can also try > the command "limit" or "ulimit" when logged in as user "news". > I've got 1 G of memory in the machine, with 500M of swap. The news limits are all pretty high: % whoami news % limit cputime unlimited filesize unlimited datasize 524288 kbytes stacksize 65536 kbytes coredumpsize unlimited memoryuse unlimited memorylocked unlimited maxproc 8211 openfiles 16424 % and I have "maxusers" set to the maximum (er, 512? Can't remember off the top of my head). I've tried running "top" and watching the memory usage, but the expire program skipped by so fast I couldn't really see much. It starts up and dumps out immediately. This *seems* to be tied to the size of my history file. The last time news crapped out, the history file was 2.2 G, and trimming it down with make history brought it back to normal life again. It has run fine until last nite (the history file has been creaping up in size). While I was frantically searching thru the docs, I noticed that INN comes with its own malloc. I'm not using it--should I be? -- Elizabeth Zaenger, Unix Support Departmental Computing Organization University of Michigan, Electrical Engineering and Computer Science Dept.
Re: "dbz.c:1328 Can't malloc"
Author: Oliver Fromme
Date: Mon, 06 Mar 2000 00:00
Date: Mon, 06 Mar 2000 00:00
35 lines
2376 bytes
2376 bytes
Elizabeth Zaenger <liz@eecs.umich.edu> wrote (06 Mar 2000 10:12:24 -0500):
>> dbz.c:1328 Can't malloc 188471112 bytes, Cannot allocate memoryexpire end
> [...]
> What do I need to "fix" to get around this? I'm pretty sure I'm using the
> FreeBSD malloc (which I thought could handle files bigger than 2G). Is it
> dbz which is failing?
malloc() has nothing to do with file sizes -- it's trying to
allocate memory (i.e. RAM or swap). How much RAM do you have
in that machine, and how much swap space? It's trying to
allocate about 188 Mbyte. Maybe you should try to watch your
free memory during the next expire (e.g. using the "top"
command).
If there is plenty of memory free, then maybe it is a limit
problem. Have a look at your /etc/login.conf file for the
default resource limits of the "news" user. You can also try
the command "limit" or "ulimit" when logged in as user "news".
Regards
Oliver
PS: Unlike Linux, FreeBSD does not have a 2 Gbyte filesize
limit. Last time I looked, the limit was 8 Tbyte (8192 Gbyte).
There is, however, a 4 Gbyte limit for mmap(), which is caused
by the intel memory architecture and is not FreeBSD-specific.
--
Oliver Fromme, Leibnizstr. 18/61, 38678 Clausthal, Germany
(Info: finger userinfo:olli@dorifer.heim3.tu-clausthal.de)
"In jedem St�ck Kohle wartet ein Diamant auf seine Geburt"
(Terry Pratchett)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads