Latency spikes caused by Xfce?
- steinbeisser
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 0
29 Nov 2015 17:09 #66016
by steinbeisser
Latency spikes caused by Xfce? was created by steinbeisser
Hi,
as i am new here in the forum i will begin with a short story about myself. I am using linuxcnc for more than a year now. The latency numbers my old computer gave me weren't that good and so i recently got obsessed by the idea to get sub 4k latency. I spent hours reading posts here and comparing the machines listed on the latency-test wiki-page.
I saw that the asus p5b deluxe mainboard has very good results, but it has no parallel port (i am software stepping).
So i concluded that the ga-p35-ds4 is the best fit for me, as it also has a parallel port. I bought the board, and now i spent the whole weekend playing around with kernel parameters, irq affinity and so on.
Ok, enough background about me.
What i discovered today is, that the latency-test gives me way worse results with Xfce than with i3 as windowmanager.
With xfce i get irregular spikes of 17k and sometimes even higher.
I was able to reproduce this by opening the "root-terminal" from the menu. This root-terminal asks you for your password on startup. While doing so, it pulls of a fancy graphical effect, that dims your screen. And at that moment, the huge latency spike appears.
So i thought, it has something to do with this graphical effect, i figured that it might help to use a very simple windowmanager.
Thats how i got the idea to try i3.
And the result of this long story is:
i3 windowmanager gives me a solid latency of about 7k while running 5x glxgears, 1080p movie in vlc and surfing the web with firefox for almost 4 hours.
Has anyone an idea about why there is this difference between xfce and i3?
as i am new here in the forum i will begin with a short story about myself. I am using linuxcnc for more than a year now. The latency numbers my old computer gave me weren't that good and so i recently got obsessed by the idea to get sub 4k latency. I spent hours reading posts here and comparing the machines listed on the latency-test wiki-page.
I saw that the asus p5b deluxe mainboard has very good results, but it has no parallel port (i am software stepping).
So i concluded that the ga-p35-ds4 is the best fit for me, as it also has a parallel port. I bought the board, and now i spent the whole weekend playing around with kernel parameters, irq affinity and so on.
Ok, enough background about me.
What i discovered today is, that the latency-test gives me way worse results with Xfce than with i3 as windowmanager.
With xfce i get irregular spikes of 17k and sometimes even higher.
I was able to reproduce this by opening the "root-terminal" from the menu. This root-terminal asks you for your password on startup. While doing so, it pulls of a fancy graphical effect, that dims your screen. And at that moment, the huge latency spike appears.
So i thought, it has something to do with this graphical effect, i figured that it might help to use a very simple windowmanager.
Thats how i got the idea to try i3.
And the result of this long story is:
i3 windowmanager gives me a solid latency of about 7k while running 5x glxgears, 1080p movie in vlc and surfing the web with firefox for almost 4 hours.
Has anyone an idea about why there is this difference between xfce and i3?
Please Log in or Create an account to join the conversation.
- Todd Zuercher
-
- Offline
- Platinum Member
-
Less
More
- Posts: 4976
- Thank you received: 1373
29 Nov 2015 18:31 #66025
by Todd Zuercher
Replied by Todd Zuercher on topic Latency spikes caused by Xfce?
Sounds like some more experimentation is due. Have you tried any other desktops? (I'm not a big fan of xfce to start with.)
Please Log in or Create an account to join the conversation.
29 Nov 2015 21:16 #66056
by BigJohnT
Replied by BigJohnT on topic Latency spikes caused by Xfce?
I tried Xfce on LinuxMint 17.2 with RTAI kernel and it was buggy so I switched to Mate and liked it better. Try OpenBox for a no frills DM.
JT
JT
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 18500
- Thank you received: 6176
30 Nov 2015 01:27 #66077
by tommylight
Replied by tommylight on topic Latency spikes caused by Xfce?
So far the only good thing about xfce is that i can run it on some hdd-less HP terminals with a amd 1GHz processor and 512MB of ram, wayyy more usable than it was with Ubuntu 10.04 and Gnome.
Get a older dell optiplex, they are perfect for running Linuxcnc with latency of 800 to 1200.
Regards,
Tom
Get a older dell optiplex, they are perfect for running Linuxcnc with latency of 800 to 1200.
Regards,
Tom
Please Log in or Create an account to join the conversation.
- steinbeisser
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 0
30 Nov 2015 09:31 - 30 Nov 2015 09:32 #66093
by steinbeisser
Replied by steinbeisser on topic Latency spikes caused by Xfce?
I haven't tried any other desktopmanagers yet. I am planing to give lxde and openbox a try. I can do that on friday.
I also ordered the asus p5b deluxe with a parallel PCIe card. I hope i can reproduce the 3500ns latency results from the wiki page.
@tommylight: There are several optiplex on the wiki list but they are nowhere near 1800ns. More like 18000ns
I also ordered the asus p5b deluxe with a parallel PCIe card. I hope i can reproduce the 3500ns latency results from the wiki page.
@tommylight: There are several optiplex on the wiki list but they are nowhere near 1800ns. More like 18000ns
![:( :(](/media/kunena/emoticons/sad.png)
Last edit: 30 Nov 2015 09:32 by steinbeisser.
Please Log in or Create an account to join the conversation.
Time to create page: 0.066 seconds