🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by Q Fri, 30 Nov 2001 15:32
inn dies no memory--but I have over 2.5 GB!!!
#55419
Author: Q
Date: Fri, 30 Nov 2001 15:32
23 lines
2360 bytes
I keep getting in my log:

Nov 28 19:45:40 news innd: SERVER cant malloc 130510 bytes at line 453 of 
art.c: Cannot allocate memory

Then I have to restart innd to make it work again.  This kept happening, so I 
just kept giving it more memory.  Now I have 640MB of RAM and 2GB swap.

Innd is really the only big thing running on the server.  The only other 
things of interest are mrtg, httpd (only hosting the mrtg page, which only I 
access), and xntpd.  All pale in comparison to innd when it comes to memory.  
After having the server up for about 8 hours, I notice that there is only 
about 3 or 4MB free in RAM, however nothing is used in the swap at all.

Any ideas?  Is it somehow possible it is only trying to use RAM and not swap 
which is causing the probem?  Is there a config parameter that can be causing 
this?  Is it really possible to be consuming over 2.5GB or memory?  I checked 
hard drive space just for the hell of it and all partitions have lots of room 
(over 50% free space).  BTW there are very, very little readers connecting at 
this poing until I have it working well.  Most likely there are an average of 
2 at a time and a max of 5 total users using it.  Sometimes it stays up for a 
couple weeks and sometimes only a couple days.
Re: inn dies no memory--but I have over 2.5 GB!!!
#55421
Author: Eusa Hues
Date: Fri, 30 Nov 2001 22:39
34 lines
2487 bytes
On Fri, 30 Nov 2001 15:32:38 GMT, Q <spam@2thebatcave.com> wrote:

>I keep getting in my log:
>
>Nov 28 19:45:40 news innd: SERVER cant malloc 130510 bytes at line 453 of 
>art.c: Cannot allocate memory

<snip>

I've seen a problem like this with corrupted cnfs buffers. ( it wasn't
best pleased at accessing them over NFS without someone that actually
knew what they were doing tweaking it ). 

The size of some articles appeared to be very ( VERY ) large (
sometimes 100s of MB or ever GB! ), and this amount of memory was
malloc'd when the article was requested by a reader. No matter how
much ram or swap you had this quite nicely broke things!

setting "cnfscheckfudgesize 1" ( or higher if you want? ) in inn.conf
"sanity checks" the size ( compares it to the max article size + that
number ) before doing anything else. It writes an error line when it's
just "saved" you... so adding it in to see if that *is* the problem is
at least worth a try.

Finding out why your cnfs buffer is corrupt is then the issue.

Probably not your problem.. but heh... might be.

-- 
The Name's Hues... Eusa Hues.
My comments above are my own ( and could be right or wrong and/or tpyo'd )
They are not those of the people whose tea I used to make.. 
but since they just use the vending machine now I'm at a bit of a loss
Re: inn dies no memory--but I have over 2.5 GB!!!
#55423
Author: Q
Date: Sat, 01 Dec 2001 00:11
46 lines
3049 bytes
I'm not running CNFS, I am currently using timehash.  I thought about using 
cnfs but I am using linux which creats a problem in that I can't have a file 
bigger than 2GB.  I have a 75GB drive that is pretty much dedicated to the 
news spool, so I would have to make a lot of files and divide everything up 
and that seems like a real pain.  I had thought about making a separate raw 
partition but that looks like too much of a pain since it is already up and 
running (well--sort of), and I don't want to spend too much time on it.

Also I don't know if it matters but I do not get any alt.binaries stuff, so 
the files shouldn't be overly enormous.

Any other suggestions?


Eusa Hues wrote:

> On Fri, 30 Nov 2001 15:32:38 GMT, Q <spam@2thebatcave.com> wrote:
> 
>>I keep getting in my log:
>>
>>Nov 28 19:45:40 news innd: SERVER cant malloc 130510 bytes at line 453 of
>>art.c: Cannot allocate memory
> 
> <snip>
> 
> I've seen a problem like this with corrupted cnfs buffers. ( it wasn't
> best pleased at accessing them over NFS without someone that actually
> knew what they were doing tweaking it ).
> 
> The size of some articles appeared to be very ( VERY ) large (
> sometimes 100s of MB or ever GB! ), and this amount of memory was
> malloc'd when the article was requested by a reader. No matter how
> much ram or swap you had this quite nicely broke things!
> 
> setting "cnfscheckfudgesize 1" ( or higher if you want? ) in inn.conf
> "sanity checks" the size ( compares it to the max article size + that
> number ) before doing anything else. It writes an error line when it's
> just "saved" you... so adding it in to see if that *is* the problem is
> at least worth a try.
> 
> Finding out why your cnfs buffer is corrupt is then the issue.
> 
> Probably not your problem.. but heh... might be.
> 

Re: inn dies no memory--but I have over 2.5 GB!!!
#55422
Author: Russ Allbery
Date: Sat, 01 Dec 2001 00:40
29 lines
2026 bytes
Q <spam@2thebatcave.com> writes:

> I keep getting in my log:

> Nov 28 19:45:40 news innd: SERVER cant malloc 130510 bytes at line 453
> of art.c: Cannot allocate memory

> Then I have to restart innd to make it work again.  This kept happening,
> so I just kept giving it more memory.  Now I have 640MB of RAM and 2GB
> swap.

Are you sure that you don't have per-process resource limits set somewhere
that are not permitting INN to use the available memory?

> After having the server up for about 8 hours, I notice that there is
> only about 3 or 4MB free in RAM, however nothing is used in the swap at
> all.

This is normal for any modern computer system; all free memory will be
used for the file cache on the grounds that there's no point in having
perfectly decent memory just sit around idle.  The free memory number is
therefore very deceptive.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: inn dies no memory--but I have over 2.5 GB!!!
#55428
Author: Eusa Hues
Date: Sat, 01 Dec 2001 19:33
32 lines
2616 bytes
On Sat, 01 Dec 2001 00:11:44 GMT, Q <spam@2thebatcave.com> wrote:

>I'm not running CNFS, I am currently using timehash.  I thought about using 
>cnfs but I am using linux which creats a problem in that I can't have a file 
>bigger than 2GB.  

Yep, linux here too. I've not tried cnfs buffers of more than 2 Gig
"just in case", I'll give it a try and see if it works. Having 100's
of 2 Gig files to make a big spool is a bit annoying.

> I have a 75GB drive that is pretty much dedicated to the 
>news spool, so I would have to make a lot of files and divide everything up 
>and that seems like a real pain.

Hardly a problem to dd 32, 2 Gig files and write the config files for
the buffers. Not having to expire to articles is  But heh, of
course... it's up to you. I'm assuming that it's not really going to
be getting many concurrent users if it's a single disk news spool ;-)

>Also I don't know if it matters but I do not get any alt.binaries stuff, so 
>the files shouldn't be overly enormous.

It was the corrupted cnfs buffers that made the articles look huge (
not the articles being big ) , but since you're not using cnfs I guess
that's not the problem ;-)

-- 
The Name's Hues... Eusa Hues.
My comments above are my own ( and could be right or wrong and/or tpyo'd )
They are not those of the people whose tea I used to make.. 
but since they just use the vending machine now I'm at a bit of a loss
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