Re: NNTPC: Expire - weird behavior

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ben C. O. Grimm wrote:

> Sorry to bother you once more, but I *really* do not understand this.
> I'm running NNTPcache 2.4.0b2, and it just won't stop expiring.
> This is the cache area:
> Filesystem   1K-blocks  Used   Avail     Capacity iused   ifree   %iused
> /dev/da1s1e  17369075   88295  15891254  1%       4168    4336822 0%
> 
> Settings in nntpcache.config:
> minFilesFreePercent 30 (start expire when 70% of inodes in use)
> minBlocksFreePercent 5 (start expire when 95% of 1k blocks in use)

You intended the following :

minFilesFreePercent 70
minBlocksFreePercent 95  (i'd propose < 95% here, we use even 70%
                          because we have seen users that very quickly
			  filled our 8 GB cache. With 70% we mostly
			  start expiring soon enough.)

The comments should read:

minFilesFreePercent xx : start expire when more than xx% of inodes are
                         in use, and do not stop expiring until below xx%

minBlocksFreePercent xx : start expire when more than xx% of blocks are
                         in use, and do not stop expiring until below xx%

> Jan  3 22:02:23 newsreader2 nntpcache-expire[5066]: expire.c:212:
> usedblocks = 8.5%, usedinodes = 0.1%, maxArtAge = 57s, expire ended

This shows you that expire finally stops on the failsafe feature: don't
try to expire articles that are only one minute old.


[Index of Archives]     [Yosemite]     [Yosemite Campsites]     [Bugtraq]     [Linux]     [Trn]

Powered by Linux