Article View: news.software.nntp
Article #44823Re: "dbz.c:1328 Can't malloc"
From: 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.
Technical Details
Message-ID:
<wat3dq3izqz.fsf@che.eecs.umich.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<wat66v0t9nr.fsf@che.eecs.umich.edu> <8a0rb6$ot$1@ariadne.rz.tu-clausthal.de>Show Full Headers
Complete Article Headers
Message-ID: <wat3dq3izqz.fsf@che.eecs.umich.edu> Subject: Re: "dbz.c:1328 Can't malloc" Date: Mon, 06 Mar 2000 00:00:00 +0000 From: Elizabeth Zaenger <liz@eecs.umich.edu> References: <wat66v0t9nr.fsf@che.eecs.umich.edu> <8a0rb6$ot$1@ariadne.rz.tu-clausthal.de> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 593961333 X-Complaints-To: news@eecs.umich.edu X-Trace: news.eecs.umich.edu 952376230 13246 141.213.11.117 (6 Mar 2000 20:57:10 GMT) Organization: University of Michigan Electrical Engineering & Computer Science Dept. NNTP-Posting-Date: 6 Mar 2000 20:57:10 GMT Newsgroups: news.software.nntp