gnome 2.16.1, hald, and openfiles...
Paul Dokas
dokas at oitsec.umn.edu
Fri Nov 10 15:23:42 UTC 2006
Jeffrey Racine wrote:
> No hald running...
>
> sysctl kern.openfiles
> kern.openfiles: 1208
> sleep 10
> sysctl kern.openfiles
> kern.openfiles: 1208
>
> hald running...
>
> hald
> sysctl kern.openfiles
> kern.openfiles: 1233
> sleep 10
> sysctl kern.openfiles
> kern.openfiles: 1240
> sleep 20
> sysctl kern.openfiles
> kern.openfiles: 1252
>
> Looks like something is failing to close files, and any suggestions most
> welcome.
>
> -- Jeff
I just found the same thing here after upgrading to Gnome 2.16. The culprit
here is hald-addon-storage:
# ps -aux | fgrep hal
haldaemon 669 0.0 0.4 5156 3764 ?? Ss 8:35AM 0:00.88 /usr/local/sbin/hald
root 670 0.0 0.2 3836 2212 ?? I 8:35AM 0:00.04 hald-runner
root 675 0.0 0.2 2912 1592 ?? S 8:35AM 0:00.24 hald-addon-storage: /dev/acd0 (hald-addon-storage)
root 677 0.0 0.2 2912 1592 ?? S 8:35AM 0:00.22 hald-addon-storage: /dev/acd1 (hald-addon-storage)
% fstat | egrep '^root' | awk '{ print $2 }' | sort | uniq -c | sort -nr
585 hald-addon-storage
% fstat | egrep '^root' | awk '{ print $2 }' | sort | uniq -c | sort -nr
606 hald-addon-storage
% fstat | fgrep hald-addon | less
root hald-addon-storage 677 root / 2 drwxr-xr-x 512 r
root hald-addon-storage 677 wd /usr/local 800768 drwxr-xr-x 2560 r
root hald-addon-storage 677 text /usr/local 801129 -r-xr-xr-x 6208 r
root hald-addon-storage 677 0 /dev 22 crw-rw-rw- null r
root hald-addon-storage 677 1 /dev 22 crw-rw-rw- null rw
root hald-addon-storage 677 2 /dev 22 crw-rw-rw- null rw
root hald-addon-storage 677 3* local stream c2f1b834 <-> c2f1bb7c
root hald-addon-storage 677 4 /dev 150 crw------- xpt0 rw
root hald-addon-storage 677 5 /dev 150 crw------- xpt0 rw
root hald-addon-storage 677 6 /dev 150 crw------- xpt0 rw
root hald-addon-storage 677 7 /dev 150 crw------- xpt0 rw
root hald-addon-storage 677 8 /dev 150 crw------- xpt0 rw
root hald-addon-storage 677 9 /dev 150 crw------- xpt0 rw
root hald-addon-storage 677 10 /dev 150 crw------- xpt0 rw
root hald-addon-storage 677 11 /dev 150 crw------- xpt0 rw
root hald-addon-storage 677 12 /dev 150 crw------- xpt0 rw
root hald-addon-storage 677 13 /dev 150 crw------- xpt0 rw
root hald-addon-storage 677 14 /dev 150 crw------- xpt0 rw
root hald-addon-storage 677 15 /dev 150 crw------- xpt0 rw
root hald-addon-storage 677 16 /dev 150 crw------- xpt0 rw
root hald-addon-storage 677 17 /dev 150 crw------- xpt0 rw
root hald-addon-storage 677 18 /dev 150 crw------- xpt0 rw
root hald-addon-storage 677 19 /dev 150 crw------- xpt0 rw
root hald-addon-storage 677 20 /dev 150 crw------- xpt0 rw
root hald-addon-storage 677 21 /dev 150 crw------- xpt0 rw
.
.
.
root hald-addon-storage 677 253 /dev 150 crw------- xpt0 rw
root hald-addon-storage 677 254 /dev 150 crw------- xpt0 rw
root hald-addon-storage 677 255 /dev 150 crw------- xpt0 rw
root hald-addon-storage 677 256 /dev 150 crw------- xpt0 rw
root hald-addon-storage 677 257 /dev 150 crw------- xpt0 rw
root hald-addon-storage 677 258 /dev 150 crw------- xpt0 rw
root hald-addon-storage 677 259 /dev 150 crw------- xpt0 rw
root hald-addon-storage 677 260 /dev 150 crw------- xpt0 rw
So, after a _lot_ of googling, I created the following file, restarted hald
and the problem has gone away.
% cat /usr/local/share/hal/fdi/preprobe/20thirdparty/10-memory-slots.fdi
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
<device>
<match key="block.device" string="/dev/acd0">
<merge key="storage.media_check_enabled" type="bool">false</merge>
</match>
</device>
<device>
<match key="block.device" string="/dev/acd1">
<merge key="storage.media_check_enabled" type="bool">false</merge>
</match>
</device>
<device>
<match key="block.device" string="/dev/cd0">
<merge key="storage.media_check_enabled" type="bool">false</merge>
</match>
</device>
<device>
<match key="block.device" string="/dev/cd1">
<merge key="storage.media_check_enabled" type="bool">false</merge>
</match>
</device>
</deviceinfo>
I've also got some problems with rhythmbox not started due to dbus assertions,
but that's best left for another email.
Paul
--
Paul Dokas dokas at oitsec.umn.edu
======================================================================
Don Juan Matus: "an enigma wrapped in mystery wrapped in a tortilla."
More information about the freebsd-gnome
mailing list