[Pkg-xfce-devel] Bug#478566: Bug#478566: Bug#478566: thunar: thunar runs amok on /proc, wasting lots of CPU time
Yves-Alexis Perez <corsac at debian.org> writes:
>> Speculation: If something like this happens with more files on a
>> slow machine (like my VIA C7-based machine at home), this could
>> well explain a high level of CPU activity and Thunar becoming
>> unresponsive and unusable.
>
> Oh and btw, here it's still perfectly usable.
On my machina at wotk, it was still usable, too.
> One thing I assume is that gamin file monitoring watch thoses files
> if they were once accessed, and report that to thunar.
Good point.
In the strace output, I noticed that the filenames that were accessed
regularly were being transmitted back and forth between thunar and
gamin on a regular basis.
> As those files are refreshed regularly, that's why you see them
> beeing accessed regularly by thunar.
Seems to make sense.
> This may be a problem in gamin which shouldn't look at /proc files.
Mhm.
,----[ gamin-0.1.9/server/gam_excludes.c ]
| static char *static_excludes[] = {
| #ifdef HAVE_LINUX
| "/media/*",
| "/mnt/*",
| "/dev/*",
| "/proc/*",
| #endif
| NULL
| };
`----
I verified that HAVE_LINUX is defined during a normal build of the
package and the four strings do appear in the gam_server binary I have
installed.
After enabling logging gam_server it looks as if those exclude
patterns are not honored at all.
Strange.
-Hilko
Reply to: