Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Laggy GUI applications with kernel 3.2.0
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Voltago
Advocate
Advocate


Joined: 02 Sep 2003
Posts: 2593
Location: userland

PostPosted: Thu Jan 12, 2012 8:17 pm    Post subject: Laggy GUI applications with kernel 3.2.0 Reply with quote

So after using linux-2.6.39 for ages, I recently upgraded to linux-3.2.0-gentoo-r1 and ran into a problem that is rather hard to diagnose: After an uptime of two, three hours, the GUI of some (not all!) applications starts to get unresponsive and laggy. First, firefox and thunderbird are affected, and KDE's plasma desktop a little later. The applications just freeze up for 10-20s, then behave normally for a short time, then freeze up again. There doesn't seem to be any uncommonly high CPU usage going on at the time, and no unusual memory usage.
Has anybody witnessed similar behaviour in recent kernels?
Back to top
View user's profile Send private message
avx
Advocate
Advocate


Joined: 21 Jun 2004
Posts: 2152

PostPosted: Thu Jan 12, 2012 9:01 pm    Post subject: Reply with quote

For me, Opera sometimes has these short-time freezes, too. Don't know if it's related to the kernel or an Opera-bug, though.
_________________
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
Back to top
View user's profile Send private message
Voltago
Advocate
Advocate


Joined: 02 Sep 2003
Posts: 2593
Location: userland

PostPosted: Thu Jan 12, 2012 10:37 pm    Post subject: Reply with quote

Actually in my case it's rather short-time-unfreeze. I'm positive that what I'm seeing is somehow kernel-related (it might be a userland bug somewhere that shows up with the new kernel). Does reverting to an older kernel make your freezes go away?
Back to top
View user's profile Send private message
avx
Advocate
Advocate


Joined: 21 Jun 2004
Posts: 2152

PostPosted: Fri Jan 13, 2012 4:46 am    Post subject: Reply with quote

Hard to tell, I've got no way to forcefully reproduce this, yet. Besides, here Opera is the only GUI-application on this box, everything else runs fine, sorry.

Now that I've finally got WLAN on this machine - only took a year, damn Broadcom - I'd rather not downgrade and lay out all the cables again :twisted:

BTW, this is my notebook I'm complaining about, my desktop doesn't have this problem(as of now).
_________________
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3922
Location: Hamburg

PostPosted: Fri Jan 13, 2012 12:31 pm    Post subject: Reply with quote

Hhm, I observed a similar behaviour with newer kernel - and dunno how to reproduce it. But sometimes it is related to my wlan which suddenly stops working w/o any messages ...
Back to top
View user's profile Send private message
Voltago
Advocate
Advocate


Joined: 02 Sep 2003
Posts: 2593
Location: userland

PostPosted: Sat Feb 11, 2012 2:47 pm    Post subject: Reply with quote

For the record, my troubles were apparently caused by one of the kernel boot parameters
Code:
i915.i915_enable_fbc=1 i915.lvds_downclock=1

which are supposed to lower power consumption for Intel integrated graphics.
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3922
Location: Hamburg

PostPosted: Sat Feb 11, 2012 4:07 pm    Post subject: Reply with quote

Voltago wrote:
For the record, my troubles were apparently caused by one of the kernel boot parameters
Code:
i915.i915_enable_fbc=1 i915.lvds_downclock=1

which are supposed to lower power consumption for Intel integrated graphics.
For me there were only few power consumptions tips useful.
One is to use the patch of kernel 3.2.5 (or 3.0.20) - that saves ~3 W. Beside that these helped me :
Code:
 $ sudo cat /etc/local.d/power.start
#!/bin/sh
#

#
#       power saving
#
F=/sys/devices/system/cpu/cpufreq/ondemand/ignore_nice_load
if [[ ! -f $F ]]; then
        echo "module acpi_cpufreq not loaded ?!"
        modprobe acpi_cpufreq
fi
echo 1 > $F || echo "$F doesn't exist !"

/usr/sbin/ethtool -s eth0 wol d
/usr/sbin/hciconfig hci0 down
/sbin/iwconfig wlan0 power on
echo 3000 > /proc/sys/vm/dirty_writeback_centisecs
Back to top
View user's profile Send private message
Voltago
Advocate
Advocate


Joined: 02 Sep 2003
Posts: 2593
Location: userland

PostPosted: Sat Feb 11, 2012 6:00 pm    Post subject: Reply with quote

Thanks, Toralf. By the way, I noticed that by default my system has
Code:
linux ~ # cat /proc/sys/vm/dirty_writeback_centisecs
60000

600 seconds for dirty_writeback seems a bit high. Should I be alarmed?
Back to top
View user's profile Send private message
nikulinpi
n00b
n00b


Joined: 12 Jan 2007
Posts: 37

PostPosted: Sat Mar 17, 2012 4:34 pm    Post subject: Reply with quote

Same problem! I bet it should be related to some kind of cgroups nastiness
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3922
Location: Hamburg

PostPosted: Sat Mar 17, 2012 5:46 pm    Post subject: Reply with quote

Voltago wrote:
Thanks, Toralf. By the way, I noticed that by default my system has
Code:
linux ~ # cat /proc/sys/vm/dirty_writeback_centisecs
60000

600 seconds for dirty_writeback seems a bit high. Should I be alarmed?
Did you installed app-laptop/laptop-mode-tools ?
Back to top
View user's profile Send private message
nikulinpi
n00b
n00b


Joined: 12 Jan 2007
Posts: 37

PostPosted: Sat Mar 17, 2012 9:37 pm    Post subject: Reply with quote

http://www.linuxquestions.org/questions/linux-kernel-70/extremely-sluggish-system-with-newest-kernels-under-high-memory-load-933664/
Back to top
View user's profile Send private message
nikulinpi
n00b
n00b


Joined: 12 Jan 2007
Posts: 37

PostPosted: Sat Mar 17, 2012 10:03 pm    Post subject: Reply with quote

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=594923
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum