Thread View: news.software.nntp
2 messages
2 total messages
Started by Mike Pelletier
Mon, 13 Jan 1997 00:00
Memory allocation problems on expireover
Author: Mike Pelletier
Date: Mon, 13 Jan 1997 00:00
Date: Mon, 13 Jan 1997 00:00
20 lines
1401 bytes
1401 bytes
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? Thanks for any suggestions you can offer! -Mike Pelletier.
Re: Memory allocation problems on expireover
Author: 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
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