Article View: news.software.nntp
Article #38033inn 2.2: a)Expiry 66 hrs, b)Can't malloc.
From: News News
Date: Tue, 15 Jun 1999 00:00
Date: Tue, 15 Jun 1999 00:00
104 lines
4889 bytes
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.
Technical Details
Message-ID:
<7k5g2k$vpi$1@cpca14.uea.ac.uk>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-mailShow Full Headers
Complete Article Headers
Message-ID: <7k5g2k$vpi$1@cpca14.uea.ac.uk> Subject: inn 2.2: a)Expiry 66 hrs, b)Can't malloc. Date: Tue, 15 Jun 1999 00:00:00 +0000 From: news@cpca14.uea.ac.uk (News News) 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: 489824853 X-Trace: cpca14.uea.ac.uk 929448852 1780 139.222.130.14 (15 Jun 1999 12:14:12 GMT) Organization: University of East Anglia, Norwich NR4 7TJ, UK NNTP-Posting-Date: 15 Jun 1999 12:14:12 GMT Newsgroups: news.software.nntp X-Complaints-To: news@uea.ac.uk