🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by Hector Davie Wed, 22 Nov 2000 00:00
INN timehash and inodes
#49139
Author: Hector Davie
Date: Wed, 22 Nov 2000 00:00
14 lines
1344 bytes
Am I correct in thinking that if I use timehash as the storage method
in INN, then for each expiry group, the software will create (in the
course of time) 256*256 directories - so that if there are six
expiry schedules, 393216 inodes (and 192 Mb of disc space) will be
used up by these directories alone, irrespective of their contents?

-- 
  p_n__n__---- _____                 Hector Davie
 d ___--__|HH||     `---.  Ascom Hasler AG, Berne, Switzerland
 _T-------'__-|_________|         hector@tell.ascom.ch
'o=o ()()()-'  o=o`-'o=o       Phone: (+41) 031 999 28 86


Re: INN timehash and inodes
#49146
Author: rmtodd
Date: Wed, 22 Nov 2000 00:00
17 lines
1757 bytes
hector@tell.ascom.ch (Hector Davie) writes:

> Am I correct in thinking that if I use timehash as the storage method
> in INN, then for each expiry group, the software will create (in the
> course of time) 256*256 directories - so that if there are six
> expiry schedules, 393216 inodes (and 192 Mb of disc space) will be
> used up by these directories alone, irrespective of their contents?

If by 'expiry schedules' you mean different storage classes for timehash,
that sounds about right, yeah, though I usually went into the spool every 
couple months and nuked any empty directories by hand.  Shoudln't be too
difficult to write a little cron job to do it if all those extra 
directories are bothersome.  FYI, the 'in the course of time' there is 
approximately 194 days, i.e. that's how long it will take for all the 
possible directory combinations to be used. 

Re: INN timehash and inodes
#49201
Author: bill davidsen
Date: Tue, 28 Nov 2000 00:00
34 lines
2075 bytes
In article <8vg5rg$7vc$1@ascomax2.hasler.ascom.ch>,
Hector Davie <hector@tell.ascom.ch> wrote:
| Am I correct in thinking that if I use timehash as the storage method
| in INN, then for each expiry group, the software will create (in the
| course of time) 256*256 directories - so that if there are six
| expiry schedules, 393216 inodes (and 192 Mb of disc space) will be
| used up by these directories alone, irrespective of their contents?
| 
| -- 
|   p_n__n__---- _____                 Hector Davie
|  d ___--__|HH||     `---.  Ascom Hasler AG, Berne, Switzerland
|  _T-------'__-|_________|         hector@tell.ascom.ch
| 'o=o ()()()-'  o=o`-'o=o       Phone: (+41) 031 999 28 86
| 


  Seems so. You can always nuke the empty ones from cron.

nuken.sh
  cd $MySpool
  find . -type d -atime +2 -depth | xargs rmdir

  Note that rmdir only works on empty directories, you probably want to
redirect stderr to the bitbucket.

  There are much better ways to do this in terms of avoiding non-empty
directories, perl could search and see if there are entries in the
directory, etc, but the saving might be trivial.

-- 
  bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
Make the rules? I don't make the rules. I don't even FOLLOW the rules!

Re: INN timehash and inodes
#49213
Author: bill davidsen
Date: Wed, 29 Nov 2000 00:00
26 lines
2027 bytes
In article <903dm9$41m$1@selene.doeblitz.net>,
Ralf =?iso-8859-1?Q?D=F6blitz?=  <doeblitz@gmx.de> wrote:

| If you specify "-empty" find will only report empty directories.
| Unfortunately this does not work well with "-depth" on my system.

  I don't know about the mix of options, but you need multiple passes (I
think two) with -empty, since removing the empty subdirectories may
leave a directory empty, but it won't be empty on initial scan. Trying
to remove all directories not accessed in a few days, in depth order, is
inefficient, but should handle the "a/b/c" case, where no files are
involved.

  I do assume that if a directory is not accessed in days there's
nothing in it. For news that's probably valid.

  If expire produces a file deletion list for fastrm, the filename could
be trimmed and the list of directories sorted, uniq'd, and used as a
list of directories to try and remove. Lot's of better ways, I have no
idea how expire works on anything but traditional and CNFS.

-- 
  bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
Make the rules? I don't make the rules. I don't even FOLLOW the rules!

Re: INN timehash and inodes
#49216
Author: Ralf Döblitz
Date: Wed, 29 Nov 2000 00:00
23 lines
1816 bytes
bill davidsen <davidsen@tmr.com> wrote:
[...]
>nuken.sh
>  cd $MySpool
>  find . -type d -atime +2 -depth | xargs rmdir
>
>  Note that rmdir only works on empty directories, you probably want to
>redirect stderr to the bitbucket.
>
>  There are much better ways to do this in terms of avoiding non-empty
>directories, perl could search and see if there are entries in the
>directory, etc, but the saving might be trivial.

If you specify "-empty" find will only report empty directories.
Unfortunately this does not work well with "-depth" on my system.

Ralf
-- 
Ralf D�blitz   *   Schapenstr. 6   *   38104 Braunschweig   *   Germany
Phone: +49-531-2361223    Fax: +49-531-2361224   mailto:doeblitz@gmx.de
Homepage: http://www.escape.de/users/selene/

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