Starting hal daemon incredibly decrease my hard drive
performance
Kay Sievers
kay.sievers at vrfy.org
Mon Nov 1 10:08:36 PST 2004
On Mon, 2004-11-01 at 18:39 +0100, Alexis Muller wrote:
> On Mon, 2004-11-01 at 12:01 -0500, David Zeuthen wrote:
> [...]
> > Not sure, it doesn't happen for me and I haven't got any reports from
> > either Fedora or Ubuntu users about this so I'm not convinced hal is
> > causing this to happen. FWIW, we don't even poll these drives anymore as
> > hal as of 0.2.98 or something respects the /sys/block/hda/removable
> > file.
>
> I've just try with 0.2.98, i've the same problem.
> I've also try to compile hal with no optimization (CFLAGS="") but also
> the same :-(
>
> I've done my tests with no other program or daemon running (except
> dbus).
>
> The problem not happened with my external hard drive (firewire)
>
> > If you find out what is causing this please let us know.
>
> I don't know exactly who works hald...
> Have you any idea what other tests can i do ? Older kernel ?
No idea. I can't believe as well that this is caused by hald.
Please look with:
[root at pim ~]# lsof -p 29989
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
hald 29989 root cwd DIR 3,2 4096 2 /
hald 29989 root rtd DIR 3,2 4096 2 /
hald 29989 root txt REG 3,2 211048 3149715 /usr/sbin/hald
hald 29989 root mem REG 3,2 108332 3817500 /lib/ld-2.3.3.so
...
and:
[root at pim ~]# strace -s 1000 -p 29989
Process 29989 attached - interrupt to quit
gettimeofday({1099332125, 636651}, NULL) = 0
gettimeofday({1099332125, 636962}, NULL) = 0
poll([{fd=6, events=POLLIN}, {fd=13, events=POLLIN|POLLPRI}, {fd=9, events=POLLIN}, {fd=10, events=POLLIN}, {fd=8, events=POLLIN}], 5, 1329) = 0
gettimeofday({1099332126, 968549}, NULL) = 0
open("/dev/hdc", O_RDONLY|O_NONBLOCK|O_EXCL|O_LARGEFILE) = 3
ioctl(3, CDROM_DRIVE_STATUS, 0x7fffffff) = 1
close(3) = 0
time(NULL) = 1099332127
gettimeofday({1099332127, 27646}, NULL) = 0
poll([{fd=6, events=POLLIN}, {fd=13, events=POLLIN|POLLPRI}, {fd=9, events=POLLIN}, {fd=10, events=POLLIN}, {fd=8, events=POLLIN}], 5, 1940) = 0
gettimeofday({1099332128, 972347}, NULL) = 0
open("/dev/hdc", O_RDONLY|O_NONBLOCK|O_EXCL|O_LARGEFILE) = 3
ioctl(3, CDROM_DRIVE_STATUS, 0x7fffffff) = 1
close(3) = 0
time(NULL) = 1099332129
...
if hald is doing something with your device.
Kay
_______________________________________________
hal mailing list
hal at freedesktop.org
http://freedesktop.org/mailman/listinfo/hal
More information about the Hal
mailing list