xfce-mcs-manager -> suggest signal poll interval == 1s

Kok, Auke sofar at foo-projects.org
Fri May 25 06:13:20 CEST 2007


Brian J. Tarricone wrote:
> On Thu, 24 May 2007 17:05:23 -0700 Kok, Auke wrote:
>> Brian J. Tarricone wrote:
>> Top causes for wakeups:
>>   62.1% ( 9.0)       <interrupt> : ide1
>>    6.9% ( 1.0)       xfce4-panel : schedule_timeout (process_timeout)
>>    6.9% ( 1.0)   xfce4-mixer-plu : schedule_timeout (process_timeout)
>>    4.1% ( 0.6)       <interrupt> : libata
>>    3.4% ( 0.5)   hald-addon-stor : do_nanosleep (hrtimer_wakeup)
>>    3.4% ( 0.5)     <kernel core> : queue_delayed_work_on
>> (delayed_work_timer_
>>    2.8% ( 0.4)         xfdesktop : schedule_timeout
>> (process_timeout)
>>    1.4% ( 0.2)     <kernel core> : page_writeback_init
>> (wb_timer_fn)
>>    1.4% ( 0.2)            Thunar : schedule_timeout
>> (process_timeout)
>>    1.4% ( 0.2)             orage : schedule_timeout
>> (process_timeout)
>> ---
> 
> Any idea what xfdesktop is doing?  I know it stat()s menu.xml every 10
> seconds to check for changes (which it doesn't do anymore with Jannis'
> menu on trunk). But if Thunar is doing something every 5 seconds, it
> should have a higher percent than xfdesktop at once per 10 seconds.  I
> don't recall xfdesktop doing anything more frequently than 10s, but I
> could be forgetting something.

Here's an strace of my xfdesktop of about ~ 10 seconds, sorry about the word 
wrap.... several polls going on, fd/3/6/7/8/9 are sockets, fd/4/5 are pipes.

I can see several things that Thunar or other components can handle better and 
sind signals instead of polls (why does xfdesktop not just select() for a 
trash-notification? doesn't the menu already monitor the 
/usr/share/applications/ folders? etc...)

hth,

Auke

---

gettimeofday({1180066040, 41035}, NULL) = 0
read(3, 0x80a0a88, 4096)                = -1 EAGAIN (Resource temporarily 
unavailable)
gettimeofday({1180066040, 41258}, NULL) = 0
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=9, 
events=POLLIN|POLLPRI}, {fd=6, events=POLLIN}, {fd=8 
                      , events=POLLIN}, {fd=7, events=POLLIN}], 6, 4521) = 0
gettimeofday({1180066044, 561780}, NULL) = 0
read(3, 0x80a0a88, 4096)                = -1 EAGAIN (Resource temporarily 
unavailable)
gettimeofday({1180066044, 561974}, NULL) = 0
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=9, 
events=POLLIN|POLLPRI}, {fd=6, events=POLLIN}, {fd=8 
                      , events=POLLIN}, {fd=7, events=POLLIN}], 6, 0) = 0
lstat64("/home/ahkok/.local/share/Trash/files", {st_mode=S_IFDIR|0700, 
st_size=36864, ...}) = 0
read(3, 0x80a0a88, 4096)                = -1 EAGAIN (Resource temporarily 
unavailable)
gettimeofday({1180066044, 562728}, NULL) = 0
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=9, 
events=POLLIN|POLLPRI}, {fd=6, events=POLLIN}, {fd=8 
                      , events=POLLIN}, {fd=7, events=POLLIN}], 6, 5000) = 0
gettimeofday({1180066049, 563024}, NULL) = 0
lstat64("/home/ahkok/.local/share/Trash/files", {st_mode=S_IFDIR|0700, 
st_size=36864, ...}) = 0
read(3, 0x80a0a88, 4096)                = -1 EAGAIN (Resource temporarily 
unavailable)
gettimeofday({1180066049, 563350}, NULL) = 0
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=9, 
events=POLLIN|POLLPRI}, {fd=6, events=POLLIN}, {fd=8 
                      , events=POLLIN}, {fd=7, events=POLLIN}], 6, 156) = 0
gettimeofday({1180066049, 719715}, NULL) = 0
stat64("/home/ahkok/.config/xfce4/desktop/menu.xml", {st_mode=S_IFREG|0644, 
st_size=771, ...}) = 0
stat64("/usr/share/gnome/apps//Internet", {st_mode=S_IFDIR|0755, st_size=4096, 
...}) = 0
stat64("/usr/share/gnome/apps/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("//usr/share/gnome/apps/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/usr/share/applnk//Internet", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/usr/share/applications/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/ahkok/.local/share/applications/", {st_mode=S_IFDIR|0700, 
st_size=4096, ...}) = 0
stat64("//usr/share/applications/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("//usr/share/gnome/apps//Internet", {st_mode=S_IFDIR|0755, st_size=4096, 
...}) = 0
stat64("//usr/share/applnk//Internet", {st_mode=S_IFDIR|0755, st_size=4096, 
...}) = 0
stat64("/usr/share/applnk/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("//usr/share/applnk/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/ahkok/.kde/share/applnk", {st_mode=S_IFDIR|0700, st_size=4096, 
...}) = 0
stat64("/usr/etc/xdg/xfce4/kiosk/kioskrc", 0xbfc8d3fc) = -1 ENOENT (No such file 
or directory)
stat64("/usr/etc/xdg/xfce4/kiosk/xfdesktop.kioskrc", 0xbfc8d41c) = -1 ENOENT (No 
such file or directory)
stat64("/home/ahkok/.config/xfce4/desktop/menu.xml", {st_mode=S_IFREG|0644, 
st_size=771, ...}) = 0
read(3, 0x80a0a88, 4096)                = -1 EAGAIN (Resource temporarily 
unavailable)
gettimeofday({1180066049, 722462}, NULL) = 0
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=9, 
events=POLLIN|POLLPRI}, {fd=6, events=POLLIN}, {fd=8 
                      , events=POLLIN}, {fd=7, events=POLLIN}], 6, 4841) = 0
gettimeofday({1180066054, 563769}, NULL) = 0
lstat64("/home/ahkok/.local/share/Trash/files", {st_mode=S_IFDIR|0700, 
st_size=36864, ...}) = 0
read(3, 0x80a0a88, 4096)                = -1 EAGAIN (Resource temporarily 
unavailable)
gettimeofday({1180066054, 564246}, NULL) = 0
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=9, 
events=POLLIN|POLLPRI}, {fd=6, events=POLLIN}, {fd=8 
                      , events=POLLIN}, {fd=7, events=POLLIN}], 6, 5000) = 0
gettimeofday({1180066059, 563749}, NULL) = 0
read(3, 0x80a0a88, 4096)                = -1 EAGAIN (Resource temporarily 
unavailable)
gettimeofday({1180066059, 564028}, NULL) = 0
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=9, 
events=POLLIN|POLLPRI}, {fd=6, events=POLLIN}, {fd=8 
                      , events=POLLIN}, {fd=7, events=POLLIN}], 6, 0) = 0
lstat64("/home/ahkok/.local/share/Trash/files", {st_mode=S_IFDIR|0700, 
st_size=36864, ...}) = 0
read(3, 0x80a0a88, 4096)                = -1 EAGAIN (Resource temporarily 
unavailable)
gettimeofday({1180066059, 564720}, NULL) = 0
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=9, 
events=POLLIN|POLLPRI}, {fd=6, events=POLLIN}, {fd=8 
                      , events=POLLIN}, {fd=7, events=POLLIN}], 6, 154) = 0
gettimeofday({1180066059, 718811}, NULL) = 0
read(3, 0x80a0a88, 4096)                = -1 EAGAIN (Resource temporarily 
unavailable)
gettimeofday({1180066059, 719075}, NULL) = 0
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=9, 
events=POLLIN|POLLPRI}, {fd=6, events=POLLIN}, {fd=8 
                      , events=POLLIN}, {fd=7, events=POLLIN}], 6, 0) = 0
stat64("/home/ahkok/.config/xfce4/desktop/menu.xml", {st_mode=S_IFREG|0644, 
st_size=771, ...}) = 0
stat64("/usr/share/gnome/apps//Internet", {st_mode=S_IFDIR|0755, st_size=4096, 
...}) = 0
stat64("/usr/share/gnome/apps/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("//usr/share/gnome/apps/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/usr/share/applnk//Internet", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/usr/share/applications/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/ahkok/.local/share/applications/", {st_mode=S_IFDIR|0700, 
st_size=4096, ...}) = 0
stat64("//usr/share/applications/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("//usr/share/gnome/apps//Internet", {st_mode=S_IFDIR|0755, st_size=4096, 
...}) = 0
stat64("//usr/share/applnk//Internet", {st_mode=S_IFDIR|0755, st_size=4096, 
...}) = 0
stat64("/usr/share/applnk/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("//usr/share/applnk/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/ahkok/.kde/share/applnk", {st_mode=S_IFDIR|0700, st_size=4096, 
...}) = 0
stat64("/usr/etc/xdg/xfce4/kiosk/kioskrc", 0xbfc8d3fc) = -1 ENOENT (No such file 
or directory)
stat64("/usr/etc/xdg/xfce4/kiosk/xfdesktop.kioskrc", 0xbfc8d41c) = -1 ENOENT (No 
such file or directory)
stat64("/home/ahkok/.config/xfce4/desktop/menu.xml", {st_mode=S_IFREG|0644, 
st_size=771, ...}) = 0
read(3, 0x80a0a88, 4096)                = -1 EAGAIN (Resource temporarily 
unavailable)
gettimeofday({1180066059, 721194}, NULL) = 0
poll( <unfinished ...>
Process 3938 detached



More information about the Xfce4-dev mailing list