LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-27-2012, 05:58 PM   #1
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Overheating probably because X eats my CPU on Slackware-current, when I run 'terminal' in XFCE


Hi everybuddies,

I run Slackware-current, up to date at time of writing.

on this system:
Code:
bash-4.2# lspci -k|grep -A3 VGA
01:00.0 VGA compatible controller: nVidia Corporation G84M [Quadro NVS 140M] (rev a1)
        Subsystem: Lenovo ThinkPad T61
        Kernel driver in use: nouveau
        Kernel modules: nouveau, nvidiafb
bash-4.2# uname -a
Linux darkstar 3.2.21-smp #2 SMP Sun Jun 24 12:03:13 CDT 2012 i686 Intel(R) Core(TM)2 Duo CPU     T7500  @ 2.20GHz GenuineIntel GNU/Linux
as soon as I startx under XFCE I have an overheating of my laptop and I get a very slow visual feedback whilst typing in a terminal.

I suspect X being guilty as 'top' says that it use around 100% of the CPU.

But when I use KDE or Fluxbox these symptoms don't appear and X use less than 5% of the CPU.

EDIT This is partially wrong. In fact this seem to occur only if I launch a "terminal" not an "xterm". And X use around 25% of the CPU even in Fluxbox if I launch a terminal. I also noticed that under Fluxbox X use around 50% if I launch 2 "terminal" and 75% if I launch 3 "terminal".

Last edited by Didier Spaier; 06-27-2012 at 06:13 PM.
 
Old 06-27-2012, 06:32 PM   #2
jamesf
Member
 
Registered: Dec 2004
Location: USA
Distribution: Slackware 12, Slackware64 14.2
Posts: 236
Blog Entries: 1

Rep: Reputation: 57
I noticed something very similar in my newly-updated -current installation.

I'm running the nouveau driver, no xorg.conf, and a hyper-threading P4.

Top without X running shows a few percent usage, normal stuff.

Top with X running, using XFCE, shows X getting somewhere around 22% to 25% CPU all the time.

Top, with X running, XFCE, and XFCE Terminal shows 33% to 36% all the time. With the added benefit of typed characters showing about a .5 second lag before showing up. I can type a command and sit back and watch the letters appear.

I didn't have time to test other WM/DEs yet. Thanks for letting me know it isn't just I with the problem!

EDIT: More investigation shows: Running XFCE and htop in terminal, X gets about 33% CPU. Running htop in xterm X gets about 1% to 2% CPU, but mostly 0% CPU. Seems Terminal is the sole culprit. Also, with Terminal and Firefox open flash video goes into "slideshow mode." Close Terminal and video plays normally. Use an xterm and video plays normally.

Last edited by jamesf; 06-27-2012 at 10:41 PM.
 
Old 06-28-2012, 03:48 AM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
I've had this with the nouveau driver that comes with Slackware 13.37, and it went away with recent git versions of mesa, libdrm, and the nouveau driver (both kernel and Xorg modules). It's true that it always happens with Terminal and not with xterm. I think it may be the way Terminal renders text, try using a mono font.
 
Old 06-28-2012, 04:00 AM   #4
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Original Poster
Rep: Reputation: Disabled
@H_TeXMeX_H: I usually use xterm so that's no so big an issue for myself. But I will upgrade some parts of the X stack (though it be pretty up to date in -current) and let know to PV and RW if I come up with good results.
 
Old 06-28-2012, 04:18 AM   #5
BrZ
Member
 
Registered: Apr 2009
Distribution: Slackware
Posts: 543

Rep: Reputation: 121Reputation: 121
It is happening here too: "/usr/bin/X :0 -auth /home/brz/.serverauth.xxxxx". Without kms I have Terminal using 100% of CPU power. With kms around 49-55%. Current x86_64 (pure), using AMD/ATI open driver and, aside Kernel 3.4.4; the system is pristine -current.
 
Old 06-28-2012, 04:53 AM   #6
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Original Poster
Rep: Reputation: Disabled
@BrZ: Interesting. So it's not only with the "nouveau" driver. Still I will try to update relevant parts of the X stack but also see what happens with the closed source "nvidia" driver.
 
Old 06-28-2012, 06:05 AM   #7
mario
Member
 
Registered: Dec 2009
Distribution: Slackware
Posts: 32

Rep: Reputation: 20
I can confirm this aswell on a i5 cpu with integrated intel gpu, at first I thought it was related to i915 module, but after seeing this post and closing Terminal (which unfortunatly I always have running) everything returns to normal. I did strace on Terminal, and there is alot of "POLLIN" going on there, but for now I fixed it by using a different terminal emulator. :^)
 
Old 06-28-2012, 06:09 AM   #8
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
terminal using 3% and X using 6% on 64-current with nvidia binary blob. 9-10% load is way too high for just a terminal app. I'm just in the process of running the xfce slackbuild against all the latest updates to see if a rebuild resolves it.

update: nope, if anything it made it use more cpu. I suppose it might be one of the dependencies at fault, or it could be a bug that a rebuild just won't sort out.

Last edited by GazL; 06-28-2012 at 06:20 AM.
 
Old 06-28-2012, 08:15 AM   #9
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,783

Rep: Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460
Just FYI, there is a problem in kernel's load average calculation with CONFIG_NO_HZ=y https://lkml.org/lkml/2012/6/22/186. But if your computer is really overheating, it must be something else.
 
Old 06-28-2012, 08:45 AM   #10
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Original Poster
Rep: Reputation: Disabled
Update: on the #xfce channel on irc.freenode.net I have been told that xfce.4.10 will be included in Slackware 14, so I will wait till it shows in -current's Changelog before looking at that again.

Meanwhile I was told to disable Composite extension with 'xfwm4-tweaks-settings → compositing' and/or disabling the Composite extension in /etc/X11/xorg.conf, or set XLIB_SKIP_ARGB_VISUALS=1 in my environment prior to starting X. I didn't see very big decrease in CPU usage after that but maybe some of you guys & gals could try as well?

Last edited by Didier Spaier; 06-28-2012 at 08:48 AM.
 
Old 06-28-2012, 09:58 AM   #11
BrZ
Member
 
Registered: Apr 2009
Distribution: Slackware
Posts: 543

Rep: Reputation: 121Reputation: 121
Question

Xfce is fine here, the bug only hit when I open Terminal and, as it eat my CPU, the temperature increase a lot. No problems with xterm and Konsole.
 
Old 06-28-2012, 11:56 AM   #12
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
It might be just a bug in Terminal. Either way I'm using a different terminal now (and removed XFCE), so I can't test it.
 
Old 06-29-2012, 06:34 AM   #13
BrZ
Member
 
Registered: Apr 2009
Distribution: Slackware
Posts: 543

Rep: Reputation: 121Reputation: 121
Talking

Built Terminal 4.8 with rworkman script and no more issues. Just changed the doc variable to keep things sane. Current64 is going perfect.
 
Old 07-01-2012, 12:09 PM   #14
mario
Member
 
Registered: Dec 2009
Distribution: Slackware
Posts: 32

Rep: Reputation: 20
Some updates, firefox and thunderbird are now also doing it
When i strace them, they report ALOT of these:

recvfrom(4, 0x7f38e86a9074, 4096, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=5, events=POLLIN}, {fd=4, events=POLLIN}, {fd=18, events=POLLIN}, {fd=15, events=POLLIN}], 4, 0) = 0 (Timeout)

Nevermind, this was just that leap second bug, but strace still shows above mentioned errors, any ideas on that one?

Last edited by mario; 07-01-2012 at 12:30 PM.
 
Old 07-07-2012, 06:16 PM   #15
lanir
LQ Newbie
 
Registered: Aug 2011
Posts: 17

Rep: Reputation: Disabled
I'm running into something similar. I hadn't noticed the extra CPU usage until I looked for it. Mainly I noticed that keeping the XFCE Terminal open would cause it to continue to use more and more RAM. It increases slowly but I left it up for a few days at one point and it ate up around 8gb until I closed it.

The CPU thing was a bit odd actually. I opened a konsole and a Terminal window. If I run top in the konsole window, everything looks normal. Run top in the Terminal and X jumps to 50% CPU usage and stays that way for a minute or so after quitting top. I tried turning off compositing and setting a solid background in the preferences for Terminal. That didn't seem to have any effect. It doesn't appear that text updates in Terminal have anything to do with it as I do not get the same behavior when using less and scrolling through a large file. That's about all I have, not sure where to look from there. I'll probably continue using konsole for a few days then build Terminal 4.8 using the links above (thanks for that BTW).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot add new items to XFCE Panels in slackware -current el_jauzaa Slackware 1 02-08-2011 04:06 PM
broken xfce desktop after upgrade to slackware-current Gustav 4 Slackware 9 08-06-2009 05:52 PM
CPU Overheat Warning when opening terminal (CPU is not overheating) Virtuality Linux - Newbie 4 05-30-2007 04:10 AM
slackware current : xfce splash screen hangs xorg carboncopy Slackware 1 04-18-2007 02:33 PM
cpu overheating problem on slackware 10.0 linux.slackware Slackware 14 05-14-2005 03:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration