You are not logged in.
Hi everyone!
My system is being very slow. It is a Dell Latitude D830 with 2GB RAM and 2GHz CPU. It has a total HD size of 110GB, with 16GB free, if that matters. It used to be quite speedy, but has lately been slow as hell. I haven't changed anything major. I Syu'd to see if that would somehow fix the problem, but no dice. I use Gnome and Metacity.
Whenever it is being slow, I'll look at top. In the past, I could have firefox, amarok, pidgin, and a terminal open at the same time and there would be no slowness. Now, just having one app open hogs all the CPU for some reason. If I have almost nothing open, but I move my mouse too much or minimize a window, Xorg or metacity or nautilus will suddenly jump to the top of top.
This is driving me nuts and I can't tell what it is. The text is lagging as I type right now. Opening my home folder in nautilus takes a solid 5 seconds. Does anyone have any suggestions of stuff I could try?
Thanks!
Offline
For starters, try running memtest to see if it's a problem with the ram.
Also, check the hard drive.
Offline
check your video driver, how does your computer respond when you're in a tty instead of graphical x? do you have compiz enabled?
Last edited by litemotiv (2010-06-22 07:49:34)
ᶘ ᵒᴥᵒᶅ
Offline
Maybe check I/O activity with something like htop or iotop?
Offline
For starters, try running memtest to see if it's a problem with the ram.
Also, check the hard drive.
Ok, I got memtest86+ from the repositories, but now I need to learn how to do both of these things.
Offline
check your video driver, how does your computer respond when you're in a tty instead of graphical x? do you have compiz enabled?
My video driver is nvidia. But that's a good point, maybe something I should have pointed out: right now firefox is thrashing with 90% CPU and Xorg with 20% (it's a dual core so it can add up to 200%), but if I switch to the virtual console, firefox drops to a reasonable 15-30% and Xorg to basically nothing (1-5%) very quickly.
I don't use compiz. I did once and it slowed me down a ton.
Offline
This is very weird. It's suddenly being exactly like it used to be, perfect and speedy. It just randomly gets ok. But I don't see it staying like this for long.
Offline
Check if your run into swap, or run out of space on one of your partitions. For firefox, try with a new profile to check if that got borked.
Offline
htop (really cool by the way!) says swap is untouched. I only really have one partition, I think... I'll check the firefox thing!
Offline
Ok, I got memtest86+ from the repositories, but now I need to learn how to do both of these things.
You need to run memtest from a live cd, or usb.
Offline
Declan wrote:Ok, I got memtest86+ from the repositories, but now I need to learn how to do both of these things.
You need to run memtest from a live cd, or usb.
what does memtest have to do with a laggy pc? i've never heard of that.
ᶘ ᵒᴥᵒᶅ
Offline
Well, I created a new profile for firefox. I can't say I've really noticed much difference. Also, I doubt it's just firefox, because the problem of one program suddenly taking up all the CPU can happen for any program, it seems. Here are a few weird screenshots:
First, here's a really light program hogging all the CPU:
But if you look, it's actually not taking up that much ram. So I went further down the list (these ones were taken at different times, only the one with amarok was taken at the same time as the wicd one):
or
I don't know if this one is supposed to be here, but I can't imagine what would need this many instances of it:
So if you look, they aren't using much CPU but are using most of the ram. What does this mean? Should I worry about them? Why the hell are there like 8 firefox's or amarok's anyway?
Offline
they arent separate instances, just threads. you can hide them in the options.
Offline
Ah, ok. But what can this be? It's basically seems like it chooses a random program, then it just starts thrashing like crazy.333
Offline
does it happen with console programs also?
try switching to a tty, and run a console program like a music player (cmus, moc, mpd, etc ..) or irssi etc.
Offline
Check your CPU and memory usage before starting X. I had such problem using incorrect video driver.
Offline
does it happen with console programs also?
try switching to a tty, and run a console program like a music player (cmus, moc, mpd, etc ..) or irssi etc.
It seems not to, but if the program is running in X and I switch to tty1 and check out top, it's still using a lot.
Offline
Check your CPU and memory usage before starting X. I had such problem using incorrect video driver.
Hmmm, how can I do this? It logs me straight into X. Take it out of .xinitrc?
Offline
Hmmm, how can I do this? It logs me straight into X. Take it out of .xinitrc?
You can append
3
to your kernel arguments in grub.
This'll take you straight to runlevel 3.
Note: To do it temporarily, edit the grub menu at boot-up, not the menu.lst file.
Last edited by x33a (2010-07-04 14:18:10)
Offline
Declan, install somehow (or download?) memtest, then put memtest86+.bin file in /boot and then in menu.lst append this:
title MEMTEST
kernel /boot/memtest86+.bin
Then check your memory directly from the GRUB menu. I advice you to do it through the night because the check takes a lot of time.
Hope your problem will resolve soon.
Offline
Declan, install somehow (or download?) memtest, then put memtest86+.bin file in /boot and then in menu.lst append this:
title MEMTEST
kernel /boot/memtest86+.binThen check your memory directly from the GRUB menu. I advice you to do it through the night because the check takes a lot of time.
Hope your problem will resolve soon.
Ok, I'm going to try this tonight. I'll tell you how it goes.
I was also told by someone who had the same problem once to move .gconf/ and .gconfd/ and .gnome2/ and .gnome2_private/ (rename them actually). I tried this. It was nice and quick for a little while, but now all I have open is firefox and a terminal, and it's lagging when I type or minimize a window.
Offline
So I ran memtest. Seems like there were no errors:
Any other ideas?
Offline
Any other ideas?
the most important thing to find out is if this happens in a shell, so boot into failsafe mode without any X running and test extensively. it's important to know whether this is a core, X or gnome problem.
if it doesn't happen in a shell, another thing to try is to install a second window manager temporarily, for instance openbox. since that won't use all the heavy background gnome processes it might be easier to find the cause.
your only option is to rule out causes one by one, start with no programs running and see what happens when you 'do stuff' under different circumstances. keep monitoring in htop, you can also install the 'sysstat' package from community which has some more tools to debug i/o and performance problems.
Last edited by litemotiv (2010-07-09 15:55:17)
ᶘ ᵒᴥᵒᶅ
Offline
Declan wrote:Any other ideas?
the most important thing to find out is if this happens in a shell, so boot into failsafe mode without any X running and test extensively. it's important to know whether this is a core, X or gnome problem.
If I had to guess, I suspect it's an X problem. The fact that it was being slow at the gdm screen makes me think that. What can I do to test?
if it doesn't happen in a shell, another thing to try is to install a second window manager temporarily, for instance openbox. since that won't use all the heavy background gnome processes it might be easier to find the cause.
I've actually wondered: What are all those "heavy background gnome processes"?
your only option is to rule out causes one by one, start with no programs running and see what happens when you 'do stuff' under different circumstances. keep monitoring in htop, you can also try iostat to see if there is any i/o problem.
What can I run from a virtual console to "do stuff" ?
I'm all -Syu'd up, by the way.
Offline
If I had to guess, I suspect it's an X problem. The fact that it was being slow at the gdm screen makes me think that. What can I do to test?
try out without gdm (run openbox straight from the console, see the openbox wiki page for information)
I've actually wondered: What are all those "heavy background gnome processes"?
gnome uses a lot of different libraries, including for instance the sessions handling (consolekit) that you encountered earlier.
by the way, you 3rd screenshot seems to imply that you are running a lot of kde stuff too, so that's even more background processes.
What can I run from a virtual console to "do stuff" ?
I'm all -Syu'd up, by the way.
well not that much, you can run irssi to chat or w3m to browse some webpages, playing some music with moc like x33a suggested could be a good test too.
ᶘ ᵒᴥᵒᶅ
Offline