Article View: news.software.nntp
Article #49201Re: INN timehash and inodes
From: bill davidsen
Date: Tue, 28 Nov 2000 00:00
Date: Tue, 28 Nov 2000 00:00
34 lines
2075 bytes
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!
Technical Details
Message-ID:
<901cue$31i6$1@newssvr06-en0.news.prodigy.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<8vg5rg$7vc$1@ascomax2.hasler.ascom.ch>Show Full Headers
Complete Article Headers
Message-ID: <901cue$31i6$1@newssvr06-en0.news.prodigy.com> Subject: Re: INN timehash and inodes Date: Tue, 28 Nov 2000 00:00:00 +0000 From: davidsen@tmr.com (bill davidsen) References: <8vg5rg$7vc$1@ascomax2.hasler.ascom.ch> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 698873145 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr06-en0.news.prodigy.com 975451918 99910 192.168.190.236 (28 Nov 2000 22:51:58 GMT) Organization: TMR Associates, Schenectady NY NNTP-Posting-Date: 28 Nov 2000 22:51:58 GMT Newsgroups: news.software.nntp Originator: davidsen@darkstar.prodigy.com