🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #67498

Re: Malloc issues with innfeed and cnfs

#67498
From: Tuc
Date: Sat, 20 Dec 2003 19:29
77 lines
3633 bytes
jeff@litech.org (Jeffrey M. Vinocur) wrote in message news:<brvovq$3mi$1@puck.litech.org>...
> In article <b0a6af8e.0312191246.1d169f32@posting.google.com>,
> Tuc <google@ttsg.com> wrote:
> >
> >2003-12-19 14:02:37 innfeed: failed to malloc 921144379 bytes at
> >cnfs/cnfs.c line 1353: Cannot allocate memory
> >
> >We've been putting more and more memory in the machine, and it seems
> >we get more and more of these! We have 4G of main memory in the
> >system. Is there something we should be doing better/differently?
> 
> Do you have a shell limit/ulimit in place for the news user in
> terms of per-process memory size?
>
hermod% limit
cputime         unlimited
filesize        unlimited
datasize        512MB
stacksize       64MB
coredumpsize    unlimited
memoryuse       unlimited
memorylocked    unlimited
maxproc         7390
descriptors     40000
sockbufsize     unlimited
vmemorysize     unlimited

I'm using the site default FreeBSD 4.9 login.conf to control it, which is :

default:\
        :passwd_format=md5:\
        :copyright=/etc/COPYRIGHT:\
        :welcome=/etc/motd:\
        :setenv=MAIL=/var/mail/$,BLOCKSIZE=K,FTP_PASSIVE_MODE=YES:\
        :path=/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/loca
l/bin /usr/X11R6/bin ~/bin:\
        :nologin=/var/run/nologin:\
        :cputime=unlimited:\
        :datasize=unlimited:\
        :stacksize=unlimited:\
        :memorylocked=unlimited:\
        :memoryuse=unlimited:\
        :filesize=unlimited:\
        :coredumpsize=unlimited:\
        :openfiles=unlimited:\
        :maxproc=unlimited:\
        :sbsize=unlimited:\
        :vmemoryuse=unlimited:\
        :priority=0:\
        :ignoretime@:\
        :umask=022:


They have a commented out entry to override that for news, which is :

#news:\
#       :path=/usr/local/news/bin /bin /sbin /usr/bin /usr/sbin /usr/local/bin /
usr/local/sbin:\
#       :cputime=infinity:\
#       :filesize=128M:\
#       :datasize-cur=64M:\
#       :stacksize-cur=32M:\
#       :coredumpsize-cur=0:\
#       :maxmemorysize-cur=128M:\
#       :memorylocked=32M:\
#       :maxproc=128:\
#       :openfiles=256:\
#       :tc=default:


But it seems like it'd be worse, no?

And why is CNFS trying to malloc that much ANYWAY? Doesn't that seem quite
extreme?


Thanks, Tuc/TTSG Internet Services, Inc.
Technical Details
Message-ID: <b0a6af8e.0312201129.12acecc6@posting.google.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!border1.nntp.ash.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!nntp.giganews.com!newshosting.com!news-xfer1.atl.newshosting.com!news-out.visi.com!hermes.visi.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews1.google.com!not-for-mail
References: <b0a6af8e.0312191246.1d169f32@posting.google.com> <brvovq$3mi$1@puck.litech.org>

Show Full Headers
Complete Article Headers
Message-ID: <b0a6af8e.0312201129.12acecc6@posting.google.com>
Subject: Re: Malloc issues with innfeed and cnfs
Date: Sat, 20 Dec 2003 19:29:05 +0000
From: google@ttsg.com (Tuc)
References: <b0a6af8e.0312191246.1d169f32@posting.google.com> <brvovq$3mi$1@puck.litech.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!border1.nntp.ash.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!nntp.giganews.com!newshosting.com!news-xfer1.atl.newshosting.com!news-out.visi.com!hermes.visi.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews1.google.com!not-for-mail
Newsgroups: news.software.nntp
Organization: http://groups.google.com
Lines: 77
NNTP-Posting-Host: 68.37.185.35
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1071948546 7949 127.0.0.1 (20 Dec 2003 19:29:06
 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sat, 20 Dec 2003 19:29:06 +0000 (UTC)