🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
5 messages
5 total messages Started by lee Mon, 22 Oct 2007 13:16
[NGET] bad_alloc with large newsgroup
#209121
Author: lee
Date: Mon, 22 Oct 2007 13:16
32 lines
1770 bytes
When I create or update a cache for an extremely large binary newsgroup
I get the following error:

"caught std exception St9bad_alloc".

This happen just at the end - after an hour of running and leaves me
with nothing.

If I do control-c just before the end, it accepts the signal and creates
for me a 'almost' complete cache of the ng headers.

Similarly, if I retrieve, using "-g", I get the same error, leaving me
with nothing.

But if I retrieve using "-G", i.e. don't get NEW headers for the cache,
 it works smoothly.

I'm using nget v0.27 on Slackware 10.1.

The dimensions I'm talking about is an ng with 30million articles, my
cache.gz is 78M large, nget reports it as having:
 "4886722 parts, 28918 files", which doesn't tie in with the 30million
articles which slrn shows me - but it IS a v.large ng.

I realise that I may have left out some info that you need - so please ask.

I think that nget is very useful - unfortunately there is a very little
documentation - i hope an nget expert reads this ng!

TIA

Lee
Re: [NGET] bad_alloc with large newsgroup
#209131
Author: lee
Date: Mon, 22 Oct 2007 13:24
14 lines
1084 bytes
On 2007-10-22, lee <empty@void.org> wrote:
>
> I realise that I may have left out some info that you need - so please ask.
>
Famous last words...

I forgot to say that I have tested this scenario with a small text only ng
and I got NO problems.

Thus, I suspect that size does matter..

TIAA

Lee
Re: [NGET] bad_alloc with large newsgroup
#209155
Author: Mark Blain
Date: Mon, 22 Oct 2007 21:35
14 lines
1648 bytes
lee <empty@void.org> wrote in news:slrnfhpa28.7of.empty@void.org:

> When I create or update a cache for an extremely large binary
> newsgroup I get the following error:
> 
> "caught std exception St9bad_alloc".

In the dim dark past I used the Win32 versions of both nget and newsplex, 
but never for groups anywhere near that large.  There are nget forums tied 
to its sourceforge page, but activity there looks pretty low.
https://sourceforge.net/forum/?group_id=3121

The closest thing to an answer I found in a direct search was this:
http://archive.netbsd.se/?ml=port-amd64&a=2005-12&t=1605306
Re: [NGET] bad_alloc with large newsgroup
#209221
Author: lee
Date: Wed, 24 Oct 2007 03:30
50 lines
2927 bytes
Thanks for the links Mark.

They were useful pointers (memory) but it is a bit out of my league to 
fiddle with kernel parameters.

Instead I have shuffled around my partitions and allocated a much larger
swap partition (8gb) instead of the previous 750mb.

After another long download to create the cache, nget simply "died"
without bringing any error and of course without creating any cache.

It is right at the end when it is sorting the cache that it has problems.
TOP showed that the old swap partition was full - so now it has plenty
of room there.

Unfortunately, nget, like slrn does not use any temp files - they
rely on memory.

With the huge binary ng's that now exists nget has its problems - 
though it is only a problem when one first starts using a ng. Once the
cache has been created it is from then on just a matter of updating it -
and now with the large swap it no longer crashes.

I've had similar problems with slrn with these groups - it just 
calmly announces that it is going to "kill" itself when it has nearly
finished scoring, scoring and linking the headers.

With slrn one has to hence limit the number of heads one loads at one
time - I keep it to 500,000.

With nget I shall just have to cancel it with control-c after it has
been running a certain amount of time - it seems to
accept that (it calls it signal 2) and then goes on to successfully
terminate with the headers that it has already downloaded.

Thus nget should ask, like slrn does, how many headers one wants to
download to the cache - rather than attempting to download the whole lot.

Again - thanks for the links.

Lee

On 2007-10-22, Mark Blain <mblain2@yahoo.com> wrote:
> In the dim dark past I used the Win32 versions of both nget and newsplex, 
> but never for groups anywhere near that large.  There are nget forums tied 
> to its sourceforge page, but activity there looks pretty low.
> https://sourceforge.net/forum/?group_id=3121
>
> The closest thing to an answer I found in a direct search was this:
> http://archive.netbsd.se/?ml=port-amd64&a=2005-12&t=1605306
Re: [NGET] bad_alloc with large newsgroup
#209237
Author: Sano
Date: Wed, 24 Oct 2007 11:44
67 lines
3441 bytes
- lee <empty@void.org> - wrote in
news:slrnfhtggc.7ud.empty@void.org: 

> Thanks for the links Mark.
> 
> They were useful pointers (memory) but it is a bit out of my
> league to fiddle with kernel parameters.
> 
> Instead I have shuffled around my partitions and allocated a much
> larger swap partition (8gb) instead of the previous 750mb.
> 
> After another long download to create the cache, nget simply
> "died" without bringing any error and of course without creating
> any cache. 
> 
> It is right at the end when it is sorting the cache that it has
> problems. TOP showed that the old swap partition was full - so now
> it has plenty of room there.
> 
> Unfortunately, nget, like slrn does not use any temp files - they
> rely on memory.

>From a recent post:

XNews on a winbox-

1.2 millions headers is roughly 314MB, so if one d/led _all_ the 22 
million in ohmster's example .divx ng, that might touch 6GB of headers. 
No?



> With the huge binary ng's that now exists nget has its problems - 
> though it is only a problem when one first starts using a ng. Once
> the cache has been created it is from then on just a matter of
> updating it - and now with the large swap it no longer crashes.
> 
> I've had similar problems with slrn with these groups - it just 
> calmly announces that it is going to "kill" itself when it has
> nearly finished scoring, scoring and linking the headers.
> 
> With slrn one has to hence limit the number of heads one loads at
> one time - I keep it to 500,000.
> 
> With nget I shall just have to cancel it with control-c after it
> has been running a certain amount of time - it seems to
> accept that (it calls it signal 2) and then goes on to
> successfully terminate with the headers that it has already
> downloaded. 
> 
> Thus nget should ask, like slrn does, how many headers one wants
> to download to the cache - rather than attempting to download the
> whole lot. 
> 
> Again - thanks for the links.
> 
> Lee
> 
> On 2007-10-22, Mark Blain <mblain2@yahoo.com> wrote:
>> In the dim dark past I used the Win32 versions of both nget and
>> newsplex, but never for groups anywhere near that large.  There
>> are nget forums tied to its sourceforge page, but activity there
>> looks pretty low. https://sourceforge.net/forum/?group_id=3121
>>
>> The closest thing to an answer I found in a direct search was
>> this: http://archive.netbsd.se/?ml=port-amd64&a=2005-12&t=1605306
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