🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by News News Tue, 15 Jun 1999 00:00
inn 2.2: a)Expiry 66 hrs, b)Can't malloc.
#38033
Author: News News
Date: Tue, 15 Jun 1999 00:00
104 lines
4889 bytes
I moved our news service to a new machine about 2 weeks ago, and since
then, expire has taken longer each time it is run - 66 hours for the
last successful run. Now it no longer runs, but gives:

  expire begin Tue Jun 15 11:42:44 BST 1999: (-v1)
      Can't malloc 65697408 bytes, Not enough space
  expire end Tue Jun 15 11:42:55 BST 1999
          all done Tue Jun 15 11:42:56 BST 1999

This malloc value is slowly increasing, seemingly as the history file 
grows. It (history) is now about 460mb.

Can you have a look at what I've described below, and suggest what else
I can look at please ?

Pat.
                           ---------------

[ The old news service (inn 1.4) was running for about 7 years on a
  Dec Alpha 3000/400, running DEC OSF/1 V3.0. There were initially 64 mb of 
  memory, later upgraded to 250 mb. Disk layout was:
     1. systems disk
     2. binaries, history, active, etc
     3. spool and logs
  Expires took about 5 hours.]

The new service is inn 2.2, on a Compaq DPWS 500au running Digital Unix
v4.0E, with 64 mb of memory. Layout was *initially*:
   Disk 1. 4gb disk: unix system, etc + default swap partition
                     + news binaries, history, active, etc
   Disk 2. 9gb disk: spool, logs and tmp
   Disk 3. 9gb disk: second swap partition

Thinking that the problem was because I was using the systems disk, I
moved the history files to another disk. The layout is now:
   Disk 1. 4gb disk: unix system, etc + default swap partition
                     + news binaries, active, etc
   Disk 2. 9gb disk: spool, logs and tmp
   Disk 3. 9gb disk: second swap partition + history files
There are links (ln -s) between disk 1 and 3, so that inn can use active
and history. (I can't move the active files yet, because disk 1 is 
crossmounted for news access by rn, Simeon, ECSMail, etc).

I moved the service by:
   - copying the spool
   - copying active and newsgroups
   - building history
using traditional spool.

We take only a subset of the news hierarchies, ie the big8 and about 1000
others. The remember value is 14 days, and expiries are 1 to 9 days, so
that the history file is usually under 150mb, and the spool less than 
4gb. There are 2 incoming news feeds, and we don't feed anyone else.

Incoming news is fine, as is reading and posting, and so is
   news.daily noexpire

Disk space is OK, as are inodes and load average. Swap space is on 2
partitions, of 192mb and 128 mb, both of which are about 30% in use during
an expire. The machine is used for nothing else except news. I've tried
turning off incoming news (and news reading) during the expire.

Expire -v5 gives no more clues.

iostat and vmstat - I can't monitor during an expire, because it no longer
runs.

I've been following the thread about:
   Subject: Expire still CRAWLING (INN2.2/CNFS)
especially the bit about datasize. This is what "limit" gives for
username "news":

          New service                    Old service
   cputime         0:0-1            cputime         0:0-1
   filesize        0 kbytes         filesize        0 kbytes
   datasize        131072 kbytes    datasize        131072 kbytes
   stacksize       2048 kbytes      stacksize       2048 kbytes
   coredumpsize    0 kbytes         coredumpsize    0 kbytes
   memoryuse       55464 kbytes     memoryuse       250984 kbytes
   descriptors     4096             descriptors     4096

They are identical except for memoryuse, but I believe the old service
would have had a much lower value when it only had 64mb memory.

Anyway, I increased datasize to 1048576 kbytes, which is the system max,
but had to do it like this:
   - login as news
   - su (to root)
   - limit datasize 1048576
   - su news
     (the new value carried through)
   - news.daily

The result was that about 2000 entries were processed into history.n, in
about 20 minutes, then the process put itself to sleep, seemingly
repeating "sleep 600" over and over again.

                           ---------------

-- 
Pat Newby, IT and Computing Services (ITCS),
           University of East Anglia, Norwich, NR4 7TJ, UK.

Re: inn 2.2: a)Expiry 66 hrs, b)Can't malloc.
#38062
Author: bill davidsen
Date: Tue, 15 Jun 1999 00:00
32 lines
2057 bytes
In article <7k5g2k$vpi$1@cpca14.uea.ac.uk>,
News News <news@cpca14.uea.ac.uk> wrote:
| I moved our news service to a new machine about 2 weeks ago, and since
| then, expire has taken longer each time it is run - 66 hours for the
| last successful run. Now it no longer runs, but gives:
| 
|   expire begin Tue Jun 15 11:42:44 BST 1999: (-v1)
|       Can't malloc 65697408 bytes, Not enough space
|   expire end Tue Jun 15 11:42:55 BST 1999
|           all done Tue Jun 15 11:42:56 BST 1999
| 
| This malloc value is slowly increasing, seemingly as the history file 
| grows. It (history) is now about 460mb.
| 
| Can you have a look at what I've described below, and suggest what else
| I can look at please ?

The easy solution is to increase available virtual memory. You might
also see if you have some ill-considered mmap option enabled. I don't
know why you would get a malloc message out of mmap(), but it's
something to check.

Note! If this is a small memory machine you should be running tagged
hash. Otherwise various things will take a very long time.

-- 
bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
  The Internet is not the fountain of youth, but some days it feels like
the fountain of immaturity.


Re: inn 2.2: a)Expiry 66 hrs, b)Can't malloc.
#38221
Author: Russ Allbery
Date: Wed, 23 Jun 1999 00:00
50 lines
2809 bytes
News News <news@cpca14.uea.ac.uk> writes:

> I moved our news service to a new machine about 2 weeks ago, and since
> then, expire has taken longer each time it is run - 66 hours for the
> last successful run. Now it no longer runs, but gives:

>   expire begin Tue Jun 15 11:42:44 BST 1999: (-v1)
>       Can't malloc 65697408 bytes, Not enough space
>   expire end Tue Jun 15 11:42:55 BST 1999
>           all done Tue Jun 15 11:42:56 BST 1999

> This malloc value is slowly increasing, seemingly as the history file
> grows. It (history) is now about 460mb.

expire will malloc space equal to the size of the hash files, IIRC.  It's
currently trying to malloc more than the physical memory of your machine.

> The new service is inn 2.2, on a Compaq DPWS 500au running Digital Unix
> v4.0E, with 64 mb of memory. Layout was *initially*:

*Ouch*.  Can't you steal memory from somewhere else?  Even if you can get
INN to run in that much memory, expire is going to *crawl* because it's
going to be melting down your swap partitions.

If you're not already running with tagged hash, you can try that, but 64MB
is really not very much memory for a news server.  Particularly INN, which
makes lots of speed vs. memory tradeoffs in favor of speed.  I wouldn't
run a news server on less than 256MB of memory, and I'd prefer 512MB.

> We take only a subset of the news hierarchies, ie the big8 and about
> 1000 others. The remember value is 14 days, and expiries are 1 to 9
> days, so that the history file is usually under 150mb, and the spool
> less than 4gb. There are 2 incoming news feeds, and we don't feed anyone
> else.

If your peers are relatively prompt, try running innd with -c 7 (or change
artcutoff to 7 in inn.conf) and reducing your /remember/ value to 7.  It
sounds like that may as much as cut your history file size in half.

Given that it sounds like expire has been failing and you now have an
excessively large history file, I'd rebuild it from scratch with
makehistory after changing the above settings, to get it down to a
reasonable size.  Then see if it can manage.

But definitely find more memory *somewhere*.

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

Re: inn 2.2: a)Expiry 66 hrs, b)Can't malloc.
#38250
Author: News News
Date: Fri, 25 Jun 1999 00:00
60 lines
3315 bytes
Russ Allbery (rra@stanford.edu) wrote:

>News News <news@cpca14.uea.ac.uk> writes:
>
>> The new service is inn 2.2, on a Compaq DPWS 500au running Digital Unix
>> v4.0E, with 64 mb of memory.
>
>*Ouch*.  Can't you steal memory from somewhere else?  Even if you can get
>INN to run in that much memory, expire is going to *crawl* because it's
>going to be melting down your swap partitions.
>
>If you're not already running with tagged hash, you can try that,
  <snip>

bill davidsen <davidsen@tmr.com> has also suggested tagged hash (which
I should have picked up from the installation notes).

I rebuilt the complete system on Monday night, with tagged hash, and took
the opportunity to move everything onto 2 separate disks, away from the
systems disk.

Then I rebuilt history from the spool, set 20-day expiry times on almost
everything (because housekeeping hadn't run for nearly 2 weeks), and ran
news.daily.  It ran very quickly, and I've run it about twice a day since
then, trimming 2-3 days off the expiry times each time, to bring the spool
back to its normal state, and history back to around 150mb.

I've kept some figures, if they are of interest:

Date Run  Time      Time        Time       Time      Files     Time
          Expire    Expireover  Fastrm     Total     Deleted   Started
           h   m     h   m       h   m      h   m

22Jun   1     3m       14m      4h 15m     4h 35m    198,441   15:00
        2     3m       11m      3h 24m     3h 40m    230,042   23:05
23Jun   3     3m       20m      4h 16m     4h 43m    228,136   10:45
        4     3m       22m      5h 21m     5h 48m    265,845   16:00
24Jun   5     4m       21m      5h  3m     5h 30m    258,730    2:15
        6     6m       18m      1h  9m     1h 35m     53,245   10:30
        7     6m       22m         57m     1h 30m    122,945   23:10

(Rounding to nearest minute)

Today I've analysed the figures for incoming news, for all of June. If
anything, we're taking more than we were before, but that could be because
the machine is less busy serving news clients, as the students have gone
home. The people who have commented, though, have said that news reading
is faster than on the old machine. (I can't tell, as I use rn, which
always was fast). 

Regards,

Pat.
Pat Newby, IT and Computing Services (ITCS),
           University of East Anglia, Norwich, NR4 7TJ, UK.
-- 
Pat Newby, IT and Computing Services (ITCS),
           University of East Anglia, Norwich, NR4 7TJ, UK.

Re: inn 2.2: a)Expiry 66 hrs, b)Can't malloc.
#38289
Author: Russ Allbery
Date: Sat, 26 Jun 1999 00:00
31 lines
2036 bytes
News News <news@cpca14.uea.ac.uk> writes:

> bill davidsen <davidsen@tmr.com> has also suggested tagged hash (which I
> should have picked up from the installation notes).

> I rebuilt the complete system on Monday night, with tagged hash, and
> took the opportunity to move everything onto 2 separate disks, away from
> the systems disk.

> Then I rebuilt history from the spool, set 20-day expiry times on almost
> everything (because housekeeping hadn't run for nearly 2 weeks), and ran
> news.daily.  It ran very quickly, and I've run it about twice a day
> since then, trimming 2-3 days off the expiry times each time, to bring
> the spool back to its normal state, and history back to around 150mb.

Cool!  That's quite an endorsement for tagged hash; I'll remember that.
I'm surprised that it helped that much, but that's extremely good news.

> Today I've analysed the figures for incoming news, for all of June. If
> anything, we're taking more than we were before, but that could be
> because the machine is less busy serving news clients, as the students
> have gone home. The people who have commented, though, have said that
> news reading is faster than on the old machine. (I can't tell, as I use
> rn, which always was fast).

Sounds like really good news, though.  Glad it's working for you!

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

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