LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices



Reply
 
Search this Thread
Old 03-03-2006, 01:57 PM   #1
towsonu2003
Member
 
Registered: May 2005
Distribution: Ubuntu 6.06
Posts: 129

Rep: Reputation: 15
Question how to diagnose computer slowing down problem


This is a hp pavilion zv5120us, 100GB hdd, 1GB RAM, Ati Radeon Mobility 9000 IGP (using open source ati driver), Intel Celeron 2.8GHz. I have up-to-date Ubuntu 5.10 now for about 5 months installed to this.

Quickly to the question: What are the common steps to diagnose why a computer will slow down with time in Linux?

More info: in the last months, I felt a decrease on overall desktop system responsiveness. Firefox waits a second or two before getting my mouse click such as switching to other tabs and so on, OpenOffice and Liferea does the same thing. And, well, that's all I use... Qemu is slow, naturally, and Calculator is fine Yesterday, I booted from the live cd for a rootkit scan, and the live system was much faster than my installation (although it's not supposed to be).

Possible culprits: I suspect either a wrong configuration or a bug in the video drivers, or a bug or wrong configuration on CPU usage (cpu does not support any configuration though, such as throttling and so on; and powernowd doesn't work with this one). It looks like CPU doesn't know how much it will work for the programs: launching Internet Explorer or loading pages with it in qemu takes 100% CPU, Firefox eats 50-70% CPU (and sometimes 100%)... The file system fragmentation may be? 1% in / and 8-12% in /home.

What are your thoughts? Any output you'd like? Thanks a lot.
 
Old 03-03-2006, 02:18 PM   #2
geeman2.0
Member
 
Registered: Feb 2005
Location: Ontario, Canada
Distribution: Gentoo, Slackware
Posts: 345

Rep: Reputation: 30
You can use the "top" command to show which processes are currently eating up the most CPU.
A single buggy daemon could be eating up a ton of your CPU power, slowing everything else down.
 
Old 03-03-2006, 02:25 PM   #3
towsonu2003
Member
 
Registered: May 2005
Distribution: Ubuntu 6.06
Posts: 129

Original Poster
Rep: Reputation: 15
every application that is doing some processing on the desktop (as opposed to the background applications) eat cpu during the time they are processing. So if firefox is loading a (especially javascripted or multimedia) page, it will eat the most (50-80%), if OOo is doing stuff, it will eat that cpu etc. No constant variable... except doing a process and having access to cpu?

What other steps would you reccommend?
 
Old 03-04-2006, 02:12 AM   #4
towsonu2003
Member
 
Registered: May 2005
Distribution: Ubuntu 6.06
Posts: 129

Original Poster
Rep: Reputation: 15
bumping this
 
Old 03-04-2006, 05:03 PM   #5
towsonu2003
Member
 
Registered: May 2005
Distribution: Ubuntu 6.06
Posts: 129

Original Poster
Rep: Reputation: 15
gtk? cairo?

can what I'm experiencing be related to this: http://ubuntuforums.org/showthread.php?p=792816

Although mine is also related to time spent using OS.
 
Old 03-05-2006, 02:50 AM   #6
WoofDeF
Member
 
Registered: Jan 2005
Distribution: Debian3.1, DamnSmallLinux, FC4
Posts: 70

Rep: Reputation: 15
1. I would probably start looking at whatever programs I'd installed since starting to experience the slowdown, and uninstall them and see if I couldn't identify one of those as the culprit.

2. A slowdown might be a physical memory problem? Check eg vmstat - I'm not sure how to interpret the output (google).

3. Disable any unneeded deamons (sendmail etc).

4. Are you quite sure your cpu does not support some type of frequency scaling - check google? If so you might have somehow developed a problem with that. What does cat /proc/cpu say your speed is while doing cpu-intensive tasks (eg ripping a dvd) - it should move into top gear.

Cpu scaling won't work unless the appropriate module is loaded (unless it is already compiled into the kernel- not sure what Ubuntu does). Assuming the cpufreq daemon is running, does

# modprobe cpufreq_ondemand
# echo "ondemand" >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

make any difference?

Powernowd won't work unless the scaling_governor is set to "userspace".

5. Gnome and KDE are notoriously sluggish in any case (the coming new version of kde is supposedly going to be leaner and faster). I'm considering ditching these fat bloated cows in favour of eg fluxbox.

Last edited by WoofDeF; 03-05-2006 at 03:05 AM.
 
Old 03-05-2006, 10:22 AM   #7
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
Another typical problem is: do you have DMA enabled on your drive? Check
Code:
hdparm
to check/set it.
 
Old 03-05-2006, 06:43 PM   #8
towsonu2003
Member
 
Registered: May 2005
Distribution: Ubuntu 6.06
Posts: 129

Original Poster
Rep: Reputation: 15
@woofdef
1. I only install packages from the ubuntu repos. except firefox 1.5 that I just extracted to /opt/firefox (bc. it is far more usable than the one that comes with ubuntu). I'd prefer to skip this step if it's okay for you).

2. I had troubles understanding the output of vmstat, but I'll try the memory test during my next boot (wouldn't that check for physical memory problems?)

3. done bf this started to happen

4. as far as I know (and powernowd reports -tried it a while ago using an ubuntu forum howto-), this cpu doesn't support scaling. the frequency seems to be at 2.8GHz at all times.

5. I tried xfce4 (from ubuntu repositories, called xubuntu-desktop) and fluxbox (latest version compiled from source). fluxbox is fast as it is supposed to be (but I need more time with it), xfce4 is slow when it is drawing stuff (open xfce menu, firefox, like in gnome, small hangs of 0.5 - 1 second), which makes me even more suspicious abut that gtk / cairo link I posted previously. the post says that ubuntu switched to cairo too early as an investment. in that case, I wouldn't have any hopes but to change the distro (but winmodem doesn't work with anything else ) or maybe wait for the new version (which I plan to install anyway).

@scuzzman

hdram says dma is enabled on this hard disk. the problem seems to be related to cpu usage (or gtk? cairo? X? video drivers?) though.

PS. I just changed my xorg.conf from ati to radeon with a couple of options enabled. fps increased according to glxgears (by ~200-300) on the average, but sluggishness is still there.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Long URLs - Slowing computer down? Rick Harvey General 3 12-20-2005 07:13 AM
Strange X-Login problem how do I diagnose? davidcrawley Linux - Software 7 09-30-2004 12:42 PM
diagnose problems toddncl Linux - Laptop and Netbook 0 07-14-2004 11:39 AM
How to diagnose a hardware problem? bhashman Linux - Hardware 4 02-24-2004 12:11 AM
diagnose partition conehead Linux - Software 1 08-27-2003 03:58 AM


All times are GMT -5. The time now is 12: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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration