🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #44825

Re: "dbz.c:1328 Can't malloc"

#44825
From: Oliver Fromme
Date: Mon, 06 Mar 2000 00:00
35 lines
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)

Technical Details
Message-ID: <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
References: <wat66v0t9nr.fsf@che.eecs.umich.edu>

Show Full Headers
Complete Article Headers
Message-ID: <8a0rb6$ot$1@ariadne.rz.tu-clausthal.de>
Subject: Re: "dbz.c:1328 Can't malloc"
Date: Mon, 06 Mar 2000 00:00:00 +0000
From: Oliver Fromme <olli@dumps.core.de>
References: <wat66v0t9nr.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-mail
X-Deja-AN: 593899212
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=ISO-8859-1
X-Complaints-To: news@rz.tu-clausthal.de
X-Trace: ariadne.rz.tu-clausthal.de 952365222 797 139.174.243.252 (6 Mar 2000 17:53:42 GMT)
Organization: Clausthal University of Technology
Mime-Version: 1.0
User-Agent: tin/1.4.1-19991201 ("Polish") (UNIX) (FreeBSD/3.4-19991219-STABLE (i386))
NNTP-Posting-Date: 6 Mar 2000 17:53:42 GMT
Newsgroups: news.software.nntp