tin.org
Sign In Sign Up
Manage this list Sign In Sign Up

Keyboard Shortcuts

Thread View

  • j: Next unread message
  • k: Previous unread message
  • j a: Jump to all threads
  • j l: Jump to MailingList overview

tin-dev

Thread Start a new thread
Download
Threads by month
  • ----- 2026 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2025 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2024 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2023 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2022 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2021 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2020 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2019 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2018 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2017 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2016 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2015 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
tin-dev@tin.org

February 2016

  • 1 participants
  • 5 discussions
Re: [tin-dev] "tin: memory exhausted trying to allocate 4026531841 bytes in file ./newsrc.c line 1471"
by Urs Janßen 29 Feb '16

29 Feb '16
On Mon, Feb 29, 2016 at 04:44:48AM -0800, Ant wrote: > > > Thanks. How much RAM would that be? I am not doing binaries stuff in > > > there? Just wanted to access text groups to read and post. Pan and > > > nzbget will handle the binaries. > > just for the newsrc-data for alt.binaries.boneless (without ever reading > > that group) that would be ~1.9GB, for the full active that would be ~18GB. > Woah! That's nuts. :( Are you planning to fix this in Tin in the future? Even if one would change in data-structure which holds the newsrc (which articles are read/unread per group) into something less memory consuming (no longer a bitmap with 1 bit per article) or delay the bitmap setup till the group is actually read that won't address the problem with the ovewrview data (which is ~200-400 bytes per article in the group instead of 1 bit per article as within the newsrc). I have no plans to do something about that, but as the source is freely available... so if soemone delays the bitmap stuff till the group is read or turns the bitmap into a tree structure and stores the overview data compress in memory or the like I happy to accept such paches... urs -- "Only whimps use tape backup: _real_ men just upload their important stuff on ftp, and let the rest of the world mirror it ;)" - Linus
1 0
0 0
Re: [tin-dev] "tin: memory exhausted trying to allocate 4026531841 bytes in file ./newsrc.c line 1471"
by Urs Janßen 29 Feb '16

29 Feb '16
On Mon, Feb 29, 2016 at 04:05:59AM -0800, Ant wrote: > > looking at > > <https://www.newshosting.com/grouplist/grouplist.txt> > > there are a lot of huge groups on thier server - eg. 16449748650 articles > > (yes, 16 billion) in alt.binaries.boneless or 6307478254 in alt.binaries.cores > > so you def. want a handpciked newsrc or a system with lots! of ram. > > Thanks. How much RAM would that be? I am not doing binaries stuff in > there? Just wanted to access text groups to read and post. Pan and > nzbget will handle the binaries. just for the newsrc-data for alt.binaries.boneless (without ever reading that group) that would be ~1.9GB, for the full active that would be ~18GB. If you try to access one of the huge groups the numbers well get much worse (assuming a NOV entry of about 200 bytes (that is very optimisctic, 400 bytes is more realistic) per article that would be 3TB just for alt.binaries.boneless ,-)
1 0
0 0
Re: [tin-dev] "tin: memory exhausted trying to allocate 4026531841 bytes in file ./newsrc.c line 1471"
by Urs Janßen 29 Feb '16

29 Feb '16
On Sun, Feb 28, 2016 at 04:16:32PM -0800, Ant Dude wrote: > "tin -r -n" worked as it slowly (took a lot longer than usual) loaded up > my old tin v2.1.1. Also, only removing alt.binaries.boneless didn't fix > my issue. looking at <https://www.newshosting.com/grouplist/grouplist.txt> there are a lot of huge groups on thier server - eg. 16449748650 articles (yes, 16 billion) in alt.binaries.boneless or 6307478254 in alt.binaries.cores so you def. want a handpciked newsrc or a system with lots! of ram. urs -- "Only whimps use tape backup: _real_ men just upload their important stuff on ftp, and let the rest of the world mirror it ;)" - Linus
1 0
0 0
Re: [tin-dev] "tin: memory exhausted trying to allocate 4026531841 bytes in file ./newsrc.c line 1471"
by Urs Janßen 29 Feb '16

29 Feb '16
On Sun, Feb 28, 2016 at 04:16:32PM -0800, Ant Dude wrote: > > > tin: memory exhausted trying to allocate 4026531841 bytes in file > > > ./newsrc.c line 1471 > > looks like there is at least one group in the active fil which has a LOT > > of articles in it (i.e. alt.binaries.boneless). remove that group from > > your newsrc and use the -n cmd.line option and/or use the -G cmd.line > > flag (in case of such huge groups: don't use negative args for -G). > > Rats. I have to go through my ~/.newsrc. :( There's no way to tell Tin > to ignore all big newsgroups' numbers? no, currnetly there is no way to tell tin to ignore big newsgroups (where starts big?). > > > I got the same results with a brand new compiled v2.3.2 binary from its > > > ftp://ftp.tin.org/pub/news/clients/tin/unstable/tin-2.3.2.tar.gz source > > > as well. Is there a way around this? :( > > > > yes, strip those useless (at least for traditional text newsreaders) groups > > from your newsrc and use -n > > "tin -r -n" worked as it slowly (took a lot longer than usual) loaded up with -n you very like also want strip_newsrc=ON in tinrc or do something like mv ~/.newsrc ~/.newsrc.bak && awk '/:/{print}' < ~/.newsrc.bak > ~/.newsrc to remove all not subscribed groups from your newsrc. -n is just a win if the newsrc is "small" (~ <= 100 groups) > my old tin v2.1.1. Also, only removing alt.binaries.boneless didn't fix > my issue. there might be other huge groups in the active (but that's by far the biggest known group). If tin is compiled with debug support -D 1 and/or -D 5 and inspecting ${TMPDIR:-"/tmp"}/NNTP and ${TMPDIR:-"/tmp"}/BITMAP afterwards (be aware that the NNTP-file may hold your password in plaintext, setting $TMPDIR to sa "safe" location is highly recommended) could be useful to find such groups (in BITMAP look for huge min=/max= differences in Active (and Newsrc) lines or in NNTP look for huge high/low watermark differences in the active lines (groupname highmark lowmark flag). Or fetch a copy of the servers active file "manually" and inspect that. script foo nc news.server.example 119 << EOF mode reader authinfo user username authinfo pass password list quit EOF exit awk '{print $2-$3" "$1}' < foo | sort -nr | head urs -- "Only whimps use tape backup: _real_ men just upload their important stuff on ftp, and let the rest of the world mirror it ;)" - Linus
1 0
0 0
Re: [tin-dev] "tin: memory exhausted trying to allocate 4026531841 bytes in file ./newsrc.c line 1471"
by Urs Janßen 28 Feb '16

28 Feb '16
On Sun, Feb 28, 2016 at 01:40:01PM -0800, Ant Dude wrote: > I am using my remote friend's very old PowerPC box with his Debian PPC: > Its Kernel says "... 3.0.0-1-powerpc64 #1 SMP Sat Aug 27 21:04:49 UTC > 2011 ppc64 GNU/Linux". With his default Tin package installed, it shows: > > tin 2.1.1 release 20120623 ("Mulindry") [UNIX] (c) Copyright 1991-2012 > Iain Lea. > Connecting to news.newshosting.com... > NNRP unlimited.newshosting.com Service Ready - support(a)newshosting.com > (fx11.iad) > Server expects authentication. > Authorized for user: [deleted] > Reading keymap file... > Reading input history file... > Reading mail active file... > Reading global attributes file... > Reading attributes file... > Reading groups from active file.../ > tin: memory exhausted trying to allocate 4026531841 bytes in file > ./newsrc.c line 1471 looks like there is at least one group in the active fil which has a LOT of articles in it (i.e. alt.binaries.boneless). remove that group from your newsrc and use the -n cmd.line option and/or use the -G cmd.line flag (in case of such huge groups: don't use negative args for -G). > I got the same results with a brand new compiled v2.3.2 binary from its > ftp://ftp.tin.org/pub/news/clients/tin/unstable/tin-2.3.2.tar.gz source > as well. Is there a way around this? :( yes, strip those useless (at least for traditional text newsreaders) groups from your newsrc and use -n urs -- "Only whimps use tape backup: _real_ men just upload their important stuff on ftp, and let the rest of the world mirror it ;)" - Linus
1 0
0 0

HyperKitty Powered by HyperKitty version 1.3.12.