Strange Thunar CPU idling phenomenon

I'm using XFCE's filemanager Thunar and am witnessing something strange when using xmonad. I would like to know if this is a problem with xmonad, or with my system. So if anyone uses Thunar could you please check if this happens? I tried this with my own config, but it happens with no config (=default one) as well. Steps to reproduce: 1. Start xmonad. 2. Start Thunar. 3. Move Thunar to a different workspace. 4. Observe Thunar's idling CPU state in htop or similar. On my PC it is now idling at 3-7%. 5. Switch to workspace where Thunar now is and change Thunar to a different directory. 6. Check CPU idling again. It is now 0% as expected. Strange thing is that just focusing Thunar on the second workspace isn't enough; you have to change the directory. I have no idea what causes this strange behavior. I tried other (tiling) window managers and they all start idling Thunar at 0% as expected. Anybody have an insight?

semdornus:
I'm using XFCE's filemanager Thunar and am witnessing something strange when using xmonad. I would like to know if this is a problem with xmonad, or with my system. So if anyone uses Thunar could you please check if this happens?
I tried this with my own config, but it happens with no config (=default one) as well.
Steps to reproduce:
1. Start xmonad. 2. Start Thunar. 3. Move Thunar to a different workspace. 4. Observe Thunar's idling CPU state in htop or similar. On my PC it is now idling at 3-7%. 5. Switch to workspace where Thunar now is and change Thunar to a different directory. 6. Check CPU idling again. It is now 0% as expected.
Strange thing is that just focusing Thunar on the second workspace isn't enough; you have to change the directory. I have no idea what causes this strange behavior. I tried other (tiling) window managers and they all start idling Thunar at 0% as expected.
Anybody have an insight?
Hmm. Very interesting. The app must be polling for something, or spinning. Maybe it doesn't like being unmapped. -- Don

On 2/20/08, Don Stewart
Hmm. Very interesting. The app must be polling for something, or spinning. Maybe it doesn't like being unmapped.
I thought about that, seeing it uses fam/gamin for file file modification monitoring. But in it that case shouldn't it just use as much CPU after the directory change?

semdornus:
On 2/20/08, Don Stewart
wrote: Hmm. Very interesting. The app must be polling for something, or spinning. Maybe it doesn't like being unmapped.
I thought about that, seeing it uses fam/gamin for file file modification monitoring. But in it that case shouldn't it just use as much CPU after the directory change?
Spencer, any ideas? It might well be a bug in the app of course, since they may not have thought about whatever corner case xmonad is triggering. -- Don

On Wed, Feb 20, 2008 at 02:22:02PM +0900, semdornus wrote:
I'm using XFCE's filemanager Thunar and am witnessing something strange when using xmonad. I would like to know if this is a problem with xmonad, or with my system. So if anyone uses Thunar could you please check if this happens?
I tried this with my own config, but it happens with no config (=default one) as well.
Steps to reproduce:
1. Start xmonad. 2. Start Thunar. 3. Move Thunar to a different workspace. 4. Observe Thunar's idling CPU state in htop or similar. On my PC it is now idling at 3-7%. 5. Switch to workspace where Thunar now is and change Thunar to a different directory. 6. Check CPU idling again. It is now 0% as expected.
Strange thing is that just focusing Thunar on the second workspace isn't enough; you have to change the directory. I have no idea what causes this strange behavior. I tried other (tiling) window managers and they all start idling Thunar at 0% as expected.
Anybody have an insight?
Can you elaborate on which other WMs you've tried? Cheers, Spencer Janssen

* On Wednesday, February 20 2008, Spencer Janssen wrote:
Can you elaborate on which other WMs you've tried?
Sure, I've now tried xmonad, dwm and awesome in combination with the file managers Thunar, pcmanfm and emelfm2. dwm and awesome don't have this behaviour at all with any of the file managers. I know awesome was derived from dwm, but recently it's strongly diverging so I tried that one as well anyway. xmonad with Thunar does as described, pcmanfm has the same behaviour although the intial idling is lower; it goes between 0 and 1%. After I change the directory in pcman it idles at 0%, just like Thunar. Although emelfm2 also uses fam/gamin it doesn't display this behaviour at all. I haven't tried other WMs/FMs yet since I don't want to pull in anything too big and traditional WM's are probably not comparable in this aspect anyway. If someone has Thunar and can check it that would be great. I'm interested to see if it's really my system or xmonad who does this.

On Wed, Feb 20, 2008 at 07:27:22PM +0900, semdornus@gmail.com wrote:
* On Wednesday, February 20 2008, Spencer Janssen wrote:
Can you elaborate on which other WMs you've tried?
Sure,
I've now tried xmonad, dwm and awesome in combination with the file managers Thunar, pcmanfm and emelfm2.
dwm and awesome don't have this behaviour at all with any of the file managers. I know awesome was derived from dwm, but recently it's strongly diverging so I tried that one as well anyway.
One major difference between xmonad and dwm is that xmonad unmaps non-visible windows (standard WM behavior), while dwm merely moves them offscreen. I'm not sure whether awesome unmaps windows too.
xmonad with Thunar does as described, pcmanfm has the same behaviour although the intial idling is lower; it goes between 0 and 1%. After I change the directory in pcman it idles at 0%, just like Thunar. Although emelfm2 also uses fam/gamin it doesn't display this behaviour at all.
I haven't tried other WMs/FMs yet since I don't want to pull in anything too big and traditional WM's are probably not comparable in this aspect anyway. If someone has Thunar and can check it that would be great. I'm interested to see if it's really my system or xmonad who does this.
Yep, I think it will help if someone else could reproduce this. Also, testing with other, more traditional, window managers might help. Cheers, Spencer Janssen

Nobody using Thunar? Maybe I'm just using the wrong tool... Anybody have good alternatives for a graphical file manager? Btw openbox also doesn't have the problem described.
participants (4)
-
Don Stewart
-
semdornus
-
semdornus@gmail.com
-
Spencer Janssen