Thread View: news.software.nntp
7 messages
7 total messages
Started by Jon Mansey
Sun, 10 Jan 1999 00:00
INN2.1 expire - cant malloc
Author: Jon Mansey
Date: Sun, 10 Jan 1999 00:00
Date: Sun, 10 Jan 1999 00:00
26 lines
1297 bytes
1297 bytes
Hi,
Im having trouble getting expire to run. I get the error
expire begin Sun Jan 10 16:40:27 PST 1999: (-v1)
Can't malloc 21389184 bytes, Cannot allocate memoryexpire end Sun Jan
10 16:40:28 PST 1999
all done Sun Jan 10 16:40:28 PST 1999
Top shows
last pid: 726; load averages: 0.82, 0.42, 0.18 16:41:38
20 processes: 1 running, 19 sleeping
CPU states: 0.8% user, 0.8% nice, 12.8% system, 0.8% interrupt, 84.8% idle
Mem: 127M Active, 47M Inact, 25M Wired, 51M Cache, 8348K Buf, 532K Free
Swap: 512M Total, 64K Used, 512M Free
Its FreeBSD 2.2.8.
Any clues as to why I cant malloc?
TIA
jm
Re: INN2.1 expire - cant malloc
Author: Jon Mansey
Date: Mon, 11 Jan 1999 00:00
Date: Mon, 11 Jan 1999 00:00
42 lines
1829 bytes
1829 bytes
> Check /etc/login.conf, make sure the process limits for the `news' user
> are set to something reasonable - i.e., infinity.
>
Here is my login.conf for news
#
# Settings used by news subsystem
#
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:
What do you recommend I change here? This is a dedicated news machine, so
should everything be at infinity like the root entry?
> Don't forget to run `cap_mkdb /etc/login.conf' and use `su - news' in
> /etc/rc.local when you run rc.news (not `su news'), to make sure the
> right process limits are selected for INN as well.
OK my rc.local now has
su - news -c /usr/local/news/bin/rc.news
Is that right?
Thanks!
jm
Re: INN2.1 expire - cant malloc
Author: Marc Van Hoof
Date: Mon, 11 Jan 1999 00:00
Date: Mon, 11 Jan 1999 00:00
38 lines
1873 bytes
1873 bytes
I am having the same problem, so if you find out, PLEASE PLEASE PLEASE let me know :) thanks in advance, marc. btw. when i run '/usr/local/news/bin/expire -v1' I don't have any problems...just the expire on the news.daily seems to cause havoc. Jon Mansey wrote: > Hi, > > Im having trouble getting expire to run. I get the error > > expire begin Sun Jan 10 16:40:27 PST 1999: (-v1) > Can't malloc 21389184 bytes, Cannot allocate memoryexpire end Sun Jan > 10 16:40:28 PST 1999 > all done Sun Jan 10 16:40:28 PST 1999 > > Top shows > > last pid: 726; load averages: 0.82, 0.42, 0.18 16:41:38 > 20 processes: 1 running, 19 sleeping > CPU states: 0.8% user, 0.8% nice, 12.8% system, 0.8% interrupt, 84.8% idle > Mem: 127M Active, 47M Inact, 25M Wired, 51M Cache, 8348K Buf, 532K Free > Swap: 512M Total, 64K Used, 512M Free > > Its FreeBSD 2.2.8. > > Any clues as to why I cant malloc? > > TIA > > jm
Re: INN2.1 expire - cant malloc
Author: Marc Van Hoof
Date: Wed, 13 Jan 1999 00:00
Date: Wed, 13 Jan 1999 00:00
48 lines
2470 bytes
2470 bytes
Well, I've done that, and I'm still getting the same problems...news.daily writes "can't malloc xxxxxx bytes; can't allocate memoryexpire" to the expire.log. the box has 256M ram in it, and 1GB of SWAP... anyone else have any suggestions ? thanks, marc. "Niels Bakker - Non PGP encrypted email deleted automatically." wrote: > In article <jon-1101990939440001@192.168.2.10>, Jon Mansey wrote: > > >> Check /etc/login.conf, make sure the process limits for the `news' user > >> are set to something reasonable - i.e., infinity. > [login.conf] > > What do you recommend I change here? This is a dedicated news machine, so > > should everything be at infinity like the root entry? > > That's what I said, didn't I? > > FWIW, on FreeBSD 3.0-CURRENT I have:- > > news:\ > :path=/usr/local/news/bin /bin /usr/bin /usr/sbin /usr/local/bin:\ > :cputime=infinity:\ > :filesize=infinity:\ > :datasize=infinity:\ > :datasize-cur=infinity:\ > :stacksize-cur=infinity:\ > :maxmemorysize=infinity:\ > :maxmemorysize-cur=infinity:\ > :memorylocked=infinity:\ > :maxproc=2048:\ > :openfiles=8192:\ > :tc=default: > > 2.2.x is much lower with its default limits, I also hope you seriously > inflated the `maxusers' option in your kernel config file. Diablo > comes with a file describing several tuning options, you may wish to > just copy those. :-) > > -- Niels.
Re: INN2.1 expire - cant malloc
Author: foghat
Date: Thu, 14 Jan 1999 00:00
Date: Thu, 14 Jan 1999 00:00
64 lines
3056 bytes
3056 bytes
I had this problem as well. I'm running FreeBSD 2.2.7. In my /etc/login.conf for news I added :memoryuse=infinity. I also run news.daily out of a script as follows: #!/bin/csh limit memoryuse unlimited /usr/local/news/bin/news.daily expireover lowmark hope this helps dave In article <369BE66B.944D217A@globalcenter.net.au>, Marc Van Hoof <mvh@globalcenter.net.au> wrote: > Well, I've done that, and I'm still getting the same problems...news.daily > writes "can't malloc xxxxxx bytes; can't allocate memoryexpire" to the > expire.log. > > the box has 256M ram in it, and 1GB of SWAP... > > anyone else have any suggestions ? > > thanks, > marc. > > "Niels Bakker - Non PGP encrypted email deleted automatically." wrote: > > > In article <jon-1101990939440001@192.168.2.10>, Jon Mansey wrote: > > > > >> Check /etc/login.conf, make sure the process limits for the `news' user > > >> are set to something reasonable - i.e., infinity. > > [login.conf] > > > What do you recommend I change here? This is a dedicated news machine, so > > > should everything be at infinity like the root entry? > > > > That's what I said, didn't I? > > > > FWIW, on FreeBSD 3.0-CURRENT I have:- > > > > news:\ > > :path=/usr/local/news/bin /bin /usr/bin /usr/sbin /usr/local/bin:\ > > :cputime=infinity:\ > > :filesize=infinity:\ > > :datasize=infinity:\ > > :datasize-cur=infinity:\ > > :stacksize-cur=infinity:\ > > :maxmemorysize=infinity:\ > > :maxmemorysize-cur=infinity:\ > > :memorylocked=infinity:\ > > :maxproc=2048:\ > > :openfiles=8192:\ > > :tc=default: > > > > 2.2.x is much lower with its default limits, I also hope you seriously > > inflated the `maxusers' option in your kernel config file. Diablo > > comes with a file describing several tuning options, you may wish to > > just copy those. :-) > > > > -- Niels. > > -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
Re: INN2.1 expire - cant malloc
Author: chad_dressler
Date: Mon, 18 Jan 1999 00:00
Date: Mon, 18 Jan 1999 00:00
20 lines
1635 bytes
1635 bytes
I'm having the same problem, but in my case the message is, "Can't malloc 49 bytes, Cannot allocate memory" So it's not like it's dying on a huge chunk of memory. In article <77lq66$oo2$1@nnrp1.dejanews.com>, foghat@my-dejanews.com wrote: > I had this problem as well. I'm running FreeBSD 2.2.7. In my > /etc/login.conf for news I added :memoryuse=infinity. I also run news.daily > out of a script as follows: #!/bin/csh limit memoryuse unlimited > /usr/local/news/bin/news.daily expireover lowmark > > hope this helps > -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
Re: INN2.1 expire - cant malloc
Author: bill davidsen
Date: Tue, 19 Jan 1999 00:00
Date: Tue, 19 Jan 1999 00:00
20 lines
1710 bytes
1710 bytes
In article <369BE66B.944D217A@globalcenter.net.au>, Marc Van Hoof <mvh@globalcenter.net.au> wrote: | Well, I've done that, and I'm still getting the same problems...news.daily | writes "can't malloc xxxxxx bytes; can't allocate memoryexpire" to the | expire.log. | | the box has 256M ram in it, and 1GB of SWAP... | | anyone else have any suggestions ? I've seen this when doing expireover building overview from an existing article database. It came from trying to malloc a space of zero. Fix was to set mmapoverview to true in that phase only. AIX does seem to want to let me read news with to set true, nor build the overview with it false. -- bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc "Too soon we grow old, and too late we grow smart" -Arthur Godfrey
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