Am 14.08.2012 10:21, schrieb Daniel Troeder:
> On 13.08.2012 16:53, Michael Hampicke wrote:
>> 2012/8/13 Daniel Troeder <dan...@admin-box.com
>>     3rd thought: purging old files with "find"? your cache system should
>>     have some kind of DB that holds that information.
>> 3: Well, it's a 3rd party application that - in theory - should take
>> care of removing old files. Sadly, it does not work as it's supposed to
>> be, While time passes the number of orphans grow :(
> There is also the possibility to write a really small daemon (less than
> 50 lines of C) that registers with inotify for the entire fs and
> journals the file activity to a sqlite-db.
> 
> A simple sql-query from a cron/bash script will then give you all the
> files to delete with paths.
> 
> It will probably be less work to write the daemon than to do 40
> fs-benchmarks - and the result will be the most efficient.
> 

That is an interesting idea, but I have never used inotify on such a
huge file base, I am not sure what impact that has in terms of cpu
cycles being used. But I am going to try this on some snowy winter
weekend :)

Reply via email to