🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
9 messages
9 total messages Started by D. Stussy Thu, 26 Mar 2009 23:06
INN, traditional overview method, and zero length overview files.
#80456
Author: D. Stussy
Date: Thu, 26 Mar 2009 23:06
17 lines
2008 bytes
Does INN really need to make zero length files for the traditional overview
format?  If the groups are actually empty, why does it need overview data?

Although some systems may prefer to reserve the inodes (or directory
entries), is this actually necessary?  I'd like to see an option where
these are NOT created when INN starts and expireover actually removes
zero-length files (and empty directories).  Is this feasable?

[I have also noticed that I have alot of empty groups in my active file
which I plan to purge if they are unmoderated and actually have a zero
count.  Every one of those groups takes 2 inodes (for .DAT and .IDX files),
plus any for the directory path generated by the first character of each
group element (which may be shared with other groups).  This wastes alot of
inodes - and I actually ran out of inodes on the filesystem that had the
overview, despite having 12G of allocable space for data leftover.]

Re: INN, traditional overview method, and zero length overview files.
#80457
Author: Russ Allbery
Date: Fri, 27 Mar 2009 00:53
20 lines
1952 bytes
"D. Stussy" <spam@bde-arc.ampr.org> writes:

> Does INN really need to make zero length files for the traditional
> overview format?  If the groups are actually empty, why does it need
> overview data?
>
> Although some systems may prefer to reserve the inodes (or directory
> entries), is this actually necessary?  I'd like to see an option where
> these are NOT created when INN starts and expireover actually removes
> zero-length files (and empty directories).  Is this feasable?

There's no basic technical reason why that couldn't be done, but it
simplified the code to not have to worry about that case, which is why it
currently works the way it does.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: INN, traditional overview method, and zero length overview files.
#80458
Author: D. Stussy
Date: Fri, 27 Mar 2009 02:11
30 lines
2395 bytes
"Russ Allbery" <rra@stanford.edu> wrote in message
news:87myb7dbvw.fsf@windlord.stanford.edu...
> "D. Stussy" <spam@bde-arc.ampr.org> writes:
> > Does INN really need to make zero length files for the traditional
> > overview format?  If the groups are actually empty, why does it need
> > overview data?
> >
> > Although some systems may prefer to reserve the inodes (or directory
> > entries), is this actually necessary?  I'd like to see an option where
> > these are NOT created when INN starts and expireover actually removes
> > zero-length files (and empty directories).  Is this feasable?
>
> There's no basic technical reason why that couldn't be done, but it
> simplified the code to not have to worry about that case, which is why it
> currently works the way it does.

That I understand, but on the flip side, I also don't like resource
hogs....  ;-)

All we need is something like (pseudocode):

  if (_OPTION_ and (size(file) == 0) unlink(filename);

in a few key spots during the expireover process.

I just counted my unmoderated empty (as in zero article count highmark) and
found 88,424 of them (142249 total groups)!  That will free over 170,000
inodes.

Re: INN, traditional overview method, and zero length overview files.
#80484
Author: D. Stussy
Date: Sun, 29 Mar 2009 22:12
22 lines
2271 bytes
"Russ Allbery" <rra@stanford.edu> wrote in message
news:87myb7dbvw.fsf@windlord.stanford.edu...
> "D. Stussy" <spam@bde-arc.ampr.org> writes:
> > Does INN really need to make zero length files for the traditional
> > overview format?  If the groups are actually empty, why does it need
> > overview data?
> >
> > Although some systems may prefer to reserve the inodes (or directory
> > entries), is this actually necessary?  I'd like to see an option where
> > these are NOT created when INN starts and expireover actually removes
> > zero-length files (and empty directories).  Is this feasable?
>
> There's no basic technical reason why that couldn't be done, but it
> simplified the code to not have to worry about that case, which is why it
> currently works the way it does.

I have noticed alot of bitching in the logs by "expireover" saying "can't
add 0 to _pathname_" where pathname is a zero-length traditional overview
file I deleted.  Can we get rid of this (or optionally disable it - same
option as suggested) in INN 2.5.0 before the final -rc version?

Re: INN, traditional overview method, and zero length overview files.
#80485
Author: Russ Allbery
Date: Sun, 29 Mar 2009 22:42
17 lines
1868 bytes
"D. Stussy" <spam@bde-arc.ampr.org> writes:

> I have noticed alot of bitching in the logs by "expireover" saying
> "can't add 0 to _pathname_" where pathname is a zero-length traditional
> overview file I deleted.  Can we get rid of this (or optionally disable
> it - same option as suggested) in INN 2.5.0 before the final -rc
> version?

Randomly deleting files out of the overview database isn't supported by
the current version of INN and I doubt this is something that we're going
to change for the 2.5.0 release.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: INN, traditional overview method, and zero length overview files.
#80488
Author: D. Stussy
Date: Sun, 29 Mar 2009 23:06
30 lines
2742 bytes
"Russ Allbery" <rra@stanford.edu> wrote in message
news:8763hst0ha.fsf@windlord.stanford.edu...
> "D. Stussy" <spam@bde-arc.ampr.org> writes:
> > I have noticed alot of bitching in the logs by "expireover" saying
> > "can't add 0 to _pathname_" where pathname is a zero-length traditional
> > overview file I deleted.  Can we get rid of this (or optionally disable
> > it - same option as suggested) in INN 2.5.0 before the final -rc
> > version?
>
> Randomly deleting files out of the overview database isn't supported by
> the current version of INN and I doubt this is something that we're going
> to change for the 2.5.0 release.

OK, but it's not "random."  It's the zero-length files, and I have a
feeling that expireover is erroring on trying to open them (since I deleted
them), but will NOT be writing anything to them (thus they remain
zero-length even if they did exist*), so should that really be an error
worth logging?  Now, if the overview files should not be zero length
because the active file says there are articles, that's different - that
should remain a reportable error.

* - If this weren't so, there would never be any zero-length traditional
overview .IDX/.DAT files after expireover had run once, let alone on any
server running for a year or more.

I guess we're from two different schools of thought:  You prefer to reserve
resources (and the code currently does that), while I don't like wasting
resources that are going unused.

Re: INN, traditional overview method, and zero length overview files.
#80489
Author: Russ Allbery
Date: Sun, 29 Mar 2009 23:24
26 lines
2419 bytes
"D. Stussy" <spam@bde-arc.ampr.org> writes:

> I guess we're from two different schools of thought:  You prefer to
> reserve resources (and the code currently does that), while I don't like
> wasting resources that are going unused.

It's really not a philosophical difference.  The code was simpler if empty
groups weren't handled differently as a special case, so I wrote it that
way.  It never entered my mind that someone would have a server with
thousands or tens of thousands of empty groups.  Mostly I just didn't
think about handling them specially.

I don't mind doing something about it.  I'm not going to do the work,
since I don't think it's very important, but certainly someone could.

You should not be surprised, however, that if you go behind INN's back and
delete a bunch of files that you don't think it should need, it isn't
going to be happy with that, and it's not going to be a high priority to
support.  It's not the right solution; whatever time might be invested in
this should go into solving it the right way.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: INN, traditional overview method, and zero length overview files.
#80516
Author: Julien ÉLIE
Date: Sat, 04 Apr 2009 11:16
19 lines
2059 bytes
Hi D. Stussyn

> I guess we're from two different schools of thought:  You prefer to reserve
> resources (and the code currently does that), while I don't like wasting
> resources that are going unused.

Then do not waste 62% of your active file with empty newsgroups :)
(88 424 out of 142 249)

Anyway, I have just added your report to Trac:
    http://inn.eyrie.org/trac/ticket/128

-- 
Julien ÉLIE

« Rien n'est plus agaçant que de ne pas se rappeler ce dont on ne parvient
  pas à se souvenir et rien n'est plus énervant que de se souvenir de ce qu'on
  voudrait parvenir à oublier. » (Pierre Dac) 
Re: INN, traditional overview method, and zero length overview files.
#80518
Author: D. Stussy
Date: Sat, 04 Apr 2009 18:23
19 lines
1820 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:gr7fm1$g0b$1@news.trigofacile.com...
> > I guess we're from two different schools of thought:  You prefer to
reserve
> > resources (and the code currently does that), while I don't like
wasting
> > resources that are going unused.
>
> Then do not waste 62% of your active file with empty newsgroups :)
> (88 424 out of 142 249)

I have since purged most of them.

> Anyway, I have just added your report to Trac:
>     http://inn.eyrie.org/trac/ticket/128

Thanks.

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