From owner-freebsd-questions Wed Mar 28 11:25:39 2001 Delivered-To: freebsd-questions@freebsd.org Received: from beta.root-servers.ch (beta.root-servers.ch [195.49.33.19]) by hub.freebsd.org (Postfix) with SMTP id 7F2DF37B71F for ; Wed, 28 Mar 2001 11:25:33 -0800 (PST) (envelope-from gabriel_ambuehl@buz.ch) Received: (qmail 77789 invoked from network); 28 Mar 2001 19:25:31 -0000 Received: from dclient106-69.hispeed.ch (HELO work.root.li) (62.2.106.69) by beta.root-servers.ch with SMTP; 28 Mar 2001 19:25:31 -0000 Date: Wed, 28 Mar 2001 21:27:29 +0200 From: Gabriel Ambuehl X-Mailer: The Bat! (v1.51) Educational Organization: BUZ Internet Services X-Priority: 3 (Normal) Message-ID: <76379504027.20010328212729@buz.ch> To: freebsd-questions@FreeBSD.ORG Subject: List of changed files MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG -----BEGIN PGP SIGNED MESSAGE----- Hello, I'm currently working on some sort of filesystem replication for our webservers but got the following problem: scanning (i.e. recursively going through the whole filesystem and see what files have a new modtime) the whole filesystem for files with changed modtime just isn't fast enough. Given some hundred thousand files on one partition, this takes way too long as the system seems to be reading all the data from the disk and there appears to be no real caching that would speed up subsequent scans (which makes some sense, as the cache would have to be HUGE). So there has to be another possibility to get to the data I need (i.e. what files did change and when). Since the kernel is responsible for FS, it would make sense to have him log all writes to every file on a given filesystem so one could simply parse the logfile and act accordingly without having the need to scan the entire filesystem. Is there any facility for this sort of info (I thought spy: http://people.freebsd.org/~abial/spy/ might be an option as I could log all calls to open but couldn't get it to compile on 4.3 RC1)? Best regards, Gabriel -----BEGIN PGP SIGNATURE----- Version: PGP 6.0.2i iQEVAwUBOsItEsZa2WpymlDxAQFbSwf+MWiY/4a2Roh/0n00WORCYXm4jxrnjwqp aplIWTCnojEzy4Hz4+ItbpPHe/8m+KtBLrwW7W9dR/3Zt9BQU2d/UEwV/Mc+PhM4 gPE756PhpjiDMnDTFiVoKFOypnYtr4seqqpa5IIPD0phTwve0qwRSej4450YFB0W BV8OBZu06ZoQJedx++nDnt56uyJk8TUBfYwEV1lr4Uo8jtR213ePO9pYX1T1aC26 LI2ISoy4WuNqH6/MQGRv3WpVweQSo469+239q9He3S8ra/2hf1u0yEFljWYXimCz Qq5s4w7GOtFsO8y4ba4imgbS3GcQ+G/2YgplpFWAfgUTNBJutcasUw== =Y5DI -----END PGP SIGNATURE----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message