From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 5F6D51381F3 for ; Sat, 22 Dec 2012 09:54:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 693FB21C021; Sat, 22 Dec 2012 09:54:15 +0000 (UTC) Received: from mx01.admin-box.com (mx01.admin-box.com [78.47.249.108]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7954B21C00A for ; Sat, 22 Dec 2012 09:53:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mx01.admin-box.com (Postfix) with ESMTP id E44B81400A6 for ; Sat, 22 Dec 2012 10:52:58 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mx01.admin-box.com Received: from mx01.admin-box.com ([127.0.0.1]) by localhost (mx01.admin-box.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TcypRrz9a9Ud for ; Sat, 22 Dec 2012 10:52:54 +0100 (CET) Received: from [130.149.240.154] (admin02.ziik.tu-berlin.de [130.149.240.154]) (Authenticated sender: daniel@troeder.de) by mx01.admin-box.com (Postfix) with ESMTPSA id 224051400A5 for ; Sat, 22 Dec 2012 10:52:54 +0100 (CET) Message-ID: <50D582F5.7090604@admin-box.com> Date: Sat, 22 Dec 2012 10:52:53 +0100 From: Daniel Troeder User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] disk accesses per subdirectory tree References: <1356097332.25001.1@numa-i> In-Reply-To: <1356097332.25001.1@numa-i> X-Enigmail-Version: 1.4.6 OpenPGP: id=BB9D4887; url=http://keyserver.ubuntu.com:11371/pks/lookup?search=0xBB9D4887&op=get Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigD2C33E0A8D16085ED9C0925E" X-Archives-Salt: 1548e00e-f9ca-46b9-9823-ad34ffe64a4f X-Archives-Hash: 1bc6c44eb33b12a94928159124354fcd This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigD2C33E0A8D16085ED9C0925E Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 21.12.2012 14:42, Helmut Jarausch wrote: > Hi, >=20 > I'd like to put some subdirectory trees (of / and of /usr and of /home)= > onto an SSD. > For that I'd like to count the disk accesses which go to a given > subdirectory tree > in some given time intervall. >=20 > Is there any utility which can measure this? >=20 > Many thanks for a hint, > Helmut. >=20 Just an idea: IMO it is not difficult to write a small program that uses inotify to do that. Just register those paths with inotify and count. I think there is also a inotify-using cron and a scriptable inotify client.... a little search: dev-haskell/hinotify dev-perl/Linux-Inotify2 dev-python/inotifyx dev-python/pyinotify dev-ruby/rb-inotify sys-fs/inotify-tools The last one... just opened the homepage: https://github.com/rvoicilas/inotify-tools/wiki and scrolled down to "inotifywatch" - I think you'll be able to do it with that :) Greetings, Daniel --=20 Get my PGP key at: * http://keyserver.ubuntu.com:11371/pks/lookup?op=3Dget&search=3D0x837FB8B5= BB9D4887 * $ gpg --recv-keys --keyserver keyserver.ubuntu.com 0xBB9D4887 --------------enigD2C33E0A8D16085ED9C0925E Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with undefined - http://www.enigmail.net/ iEYEARECAAYFAlDVgvUACgkQg3+4tbudSIf1gACfX2RjvKVUtwZrplY/k6+2TEm6 o3MAnAv8XR/CxmBEshyUBoBsThz1UA/I =AsSI -----END PGP SIGNATURE----- --------------enigD2C33E0A8D16085ED9C0925E--