Article View: news.software.nntp
Article #14061Re: Memory allocation problems on expireover
From: Joe Greco
Date: Tue, 14 Jan 1997 00:00
Date: Tue, 14 Jan 1997 00:00
47 lines
2348 bytes
2348 bytes
In article <5be57u$7gk$1@inet-prime.comshare.com>,
Mike Pelletier <mikep@comshare.com> wrote:
>I'm having some difficulty with expireover under INN 1.5. Occasionally
>I'll check the overview directory and find a bunch of bloated overview
>files, and when I run expireover by hand, it comes to a group like
>biz.jobs.offered, goes through tens of thousands of articles, and
>eventually croaks saying "unable to malloc 92372428 bytes". This number
>is invariably the exact size of the .overview file. I'm able to handle
>certain of these by increasing the datasize and memory usage limits, but
>92MB is just a little outside the envelope.
>
>Question 1 - why does expireover need to allocate all this memory?
>Question 2 - is there some way to have it check for this kind of limit
> and take a different approach to building the .overview file
> if it can't get enough memory allocated to work on it?
mumble mumble mumble... darn buggy software... mumble mumble mumble... :-)
% cat /usr/local/src/news/misc/fixover
#! /bin/sh -
active=/usr/local/news/active
nov=/nov
overview=.overview
expireover=/usr/local/news/bin/expireover
count=`wc -l < "${active}"`
sofar=0
while read i j; do
sofar=`expr "${sofar}" + 1`
printf "%6s of %6s: %s ... " "${sofar}" "${count}" "${i}"
sunews rm -f "${nov}"/`echo "${i}" | tr '.' '/'`/${overview}
echo "${i}" | sunews csh -f -c "unlimit; ${expireover} -a -s -f -"
printf "\n"
done < ${active}
%
works for me. (Guess what I am running this morning).
There seems, from my not thoroughly analyzed point of view, to be some
deficiencies that happen if you get things like dead symlinks.
... JG
Technical Details
Message-ID:
<5bg7fv$fk4@earth.alpha.net>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-mailReferences:
<5be57u$7gk$1@inet-prime.comshare.com>Show Full Headers
Complete Article Headers
Message-ID: <5bg7fv$fk4@earth.alpha.net> Subject: Re: Memory allocation problems on expireover Date: Tue, 14 Jan 1997 00:00:00 +0000 From: jgreco@ns.sol.net (Joe Greco) References: <5be57u$7gk$1@inet-prime.comshare.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.mbox.zip!not-for-mail X-Deja-AN: 209732865 Distribution: inet Sender: joegreco@earth.execpc.com Organization: sol.net Network Services - Milwaukee, WI Newsgroups: news.software.nntp