On 21.12.2012 14:42, Helmut Jarausch wrote:
> Hi,
> 
> 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.
> 
> Is there any utility which can measure this?
> 
> Many thanks for a hint,
> Helmut.
> 
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

-- 
Get my PGP key at:
*
http://keyserver.ubuntu.com:11371/pks/lookup?op=get&search=0x837FB8B5BB9D4887
* $ gpg --recv-keys --keyserver keyserver.ubuntu.com 0xBB9D4887

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to