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 13:57:23
Message-Id: 502A5889.8070506@admin-box.com
In Reply to: Re: [gentoo-user] Fast file system for cache directory with lot's of files by Neil Bothwick
1 On 14.08.2012 11:46, Neil Bothwick wrote:
2 > On Tue, 14 Aug 2012 10:21:54 +0200, Daniel Troeder wrote:
3 >
4 >> There is also the possibility to write a really small daemon (less than
5 >> 50 lines of C) that registers with inotify for the entire fs and
6 >> journals the file activity to a sqlite-db.
7 >
8 > sys-process/incron ?
9 Uh... didn't know that one! ... very interesting :)
10
11 Have you used it?
12 How does it perform if there are lots of modifications going on?
13 Does it have a throttle against fork bombing?
14 must-read-myself-a-little.....
15
16 A incron line
17 # sqlite3 /file.sql 'INSERT filename, date INTO table'
18 would be inefficient, because it spawn lots of processes, but it would
19 be very nice to simply test out the idea. Then a
20 # sqlite3 /file.sql 'SELECT filename FROM table SORTBY date < date-30days'
21 or something to get the files older than 30 days, and voilá :)

Replies

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