[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Monitoring disk access



On Fri, 02 Aug 2002, Vincent Bernat wrote:

> I am trying to spot the application which are regularly using the disk,
> waking it up from sleep and eating unnecessary my battery. Is there
> some program which could log (on a tmpfs of course ! ;-) ) any disk
> access with timestamp, file (well if it doesn't work at filesystem
> level, that doesn't hurt) and PID of the application for every disk
> access ?

Things I remember from doing the same on my Laptop:
  - use "noatime" in /etc/fstab
  - Silence syslogd by adding SYSLOGD="-m 0" in /etc/init.d/sysklogd
  - Change /etc/cron.d/exim to prevent exim from running the queue every
    15 minutes (mind the consequences!)
  - increase the default-lease-time on the DHCP server

> Moreover, the Battery Powered Linux HOWTO is quite old, is there some
> other documents about all this. For example, how to instruct Linux to
> keep the data in cache longer ?

Dont't. Actually, Linux will not prune the read cache unless it needs
the memory anyway, and it is usually better to write anything to the
disk immediately because otherwise you are just waiting for the disk to
spin down so that the write will spin it up again :-(

Walter



Reply to: