Gentoo Archives: gentoo-user

From: Daniel Troeder <daniel@×××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Fast file system for cache directory with lot's of files
Date: Tue, 14 Aug 2012 08:25:56
Message-Id: 502A0AA2.9030607@admin-box.com
In Reply to: Re: [gentoo-user] Fast file system for cache directory with lot's of files by Michael Hampicke
1 On 13.08.2012 16:53, Michael Hampicke wrote:
2 > 2012/8/13 Daniel Troeder <daniel@×××××××××.com
3 > 3rd thought: purging old files with "find"? your cache system should
4 > have some kind of DB that holds that information.
5 > 3: Well, it's a 3rd party application that - in theory - should take
6 > care of removing old files. Sadly, it does not work as it's supposed to
7 > be, While time passes the number of orphans grow :(
8 There is also the possibility to write a really small daemon (less than
9 50 lines of C) that registers with inotify for the entire fs and
10 journals the file activity to a sqlite-db.
11
12 A simple sql-query from a cron/bash script will then give you all the
13 files to delete with paths.
14
15 It will probably be less work to write the daemon than to do 40
16 fs-benchmarks - and the result will be the most efficient.

Replies

Subject Author
Re: [gentoo-user] Fast file system for cache directory with lot's of files Neil Bothwick <neil@××××××××××.uk>
Re: [gentoo-user] Fast file system for cache directory with lot's of files Michael Hampicke <gentoo-user@××××.biz>