LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-11-2006, 01:08 PM   #1
Hacker X
Member
 
Registered: Jun 2006
Location: Urbana, Illinois, US
Distribution: Zenwalk, Vector
Posts: 76

Rep: Reputation: 15
Unhappy Why is my machine so slow?


The old machine was a 233MHz P-II with 64MB RAM.
It used to run W98/IE, no virusware.
It wasn't fast, but menus and other popups generally appeared in a basically natural way, so I didn't feel like I was waiting for them all the time. All I had to do was track down and delete a virus once in a while.

Now I have a 500MHz K6-2 with 128MB RAM running Slackware(Zenwalk)/XFCE/Firefox.

It's DOG SLOW.

Firefox menus are slow, saving files is slow, Thunderbird newsreader is slow.
So the cpu is twice as fast, twice as much RAM, with OS, desktop, and browser that are all supposedly faster, and yet the mouse motion is still more herky-jerky than with the old M$ system.

I have too much confidence in *nix software to believe this is normal. Is there some misconfiguration that's creating a bottleneck somewhere? Would a different kernel help? This crappy performance is very frustrating, and I would very much like to fix it. Any help or ideas are welcome.

Last edited by Hacker X; 09-11-2006 at 01:12 PM.
 
Old 09-11-2006, 01:18 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
The same thing happened to me when I first installed OpenSuSE v10.1 a few days ago. When I first installed it the GUI ran unbelievably slow. I fixed it but I'm not sure exactly what happened. I have an ATI Radeon 8500 AIW card so I ran the installation for the drivers from ATI. The computer ran MUCH faster after that. The interesting thing is that /etc/X11/xorg.conf isn't really set correctly to run the ATI driver. I'm not going to change it, though. I don't need OpenGL or hardware acceleration so I'm leaving it as it is. I'm running the 2.6.16 kernel.
 
Old 09-11-2006, 01:21 PM   #3
DotHQ
Member
 
Registered: Mar 2006
Location: Ohio, USA
Distribution: Red Hat, Fedora, Knoppix,
Posts: 548

Rep: Reputation: 33
Could you post stats from top or uptime? Top will show what resources are being used, top processes and load average all on one screen. It updates every 10 or 15 seconds automatically.

uptime will show how long the system has been up, and load averages at that moment in time. Load averages will tell if your system is really working or not. The load average rule of thumb is 2.0 and below is okay. Sustained periods above that and your system will show signs of a slow down. (load average is synonymous with a line at a movie theatre. With 2 in line you'll get farily quick service. The more you get above 2 the longer your wait will be. Only load average represents the processes waiting in line for CPU service.)
 
Old 09-11-2006, 01:25 PM   #4
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
128MB RAM is a little light these days. When you run top, what processes are consuming the most CPU, and memory (hit 'M' to sort by memory usage). Firefox with a typical set of plugins and extensions typically uses 50+MB resident, 150MB total memory. I'd say RAM is probably the bottleneck.

Comparing Win98 to Linux on that hardware is not really comparable. Compare Vista, since the functionality is approximately comparable. Yes, operating systems have gotten quite bloated. The reason is because of the incredible drop in the cost of processing, memory and storage.

I still remember buying for my home computer: 16K of RAM for $275, 10MB HD for $1000 and a 200KIP computer for $2000. For many computers, 512MB of RAM is under $50 these days. Unless you are doing embedded system design (and even many of those have more resource than your machine), it's not worth spending the time fighting to optimize for a constrained environment.
 
Old 09-11-2006, 07:18 PM   #5
Hacker X
Member
 
Registered: Jun 2006
Location: Urbana, Illinois, US
Distribution: Zenwalk, Vector
Posts: 76

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by DotHQ
Could you post stats from top or uptime?
Quote:
Originally Posted by macemoneta
When you run top, what processes are consuming the most CPU, and memory (hit 'M' to sort by memory usage). Firefox with a typical set of plugins and extensions typically uses 50+MB resident, 150MB total memory.
firefox 41%
X 13-15%
misc. other apps 6% or less

OR

firefox 33%
thunderbird 21%
X 12%
etc.

Quote:
128MB RAM is a little light these days.
I'd say RAM is probably the bottleneck.
So that's a bigger problem than the cpu?
top says there's about 5-7MB free memory, 111M used out of 118M total.
Load is around 1 or less.

Quote:
Comparing Win98 to Linux on that hardware is not really comparable. Compare Vista, since the functionality is approximately comparable. Yes, operating systems have gotten quite bloated.
Okay, that's an answer. But does that mean compiling a new kernel would help?

Quote:
Unless you are doing embedded system design (and even many of those have more resource than your machine), it's not worth spending the time fighting to optimize for a constrained environment.
My finances are somewhat constrained right now. Are there any smaller browsers or other options? Is the desktop a non-issue?

Last edited by Hacker X; 09-11-2006 at 07:42 PM.
 
Old 09-11-2006, 07:29 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927
Quote:
Originally Posted by Hacker X
firefox 41%
X 13-15%
misc. other apps 6% or less

OR

firefox 33%
thunderbird 21%
X 12%
etc.
Are you playing flash-animations or something? That CPU consumption
seems quite inappropriate, even on a machine with those specs.


Quote:
Originally Posted by Hacker X
So that's a bigger problem than the cpu?
top says there's about 5-7MB free memory, 111M used out of 118M total.
Load is around 1 or less.
That, too, is too high. Can you post the output of top -b -n 1 here?
Also check for errors in /var/log/ and dmesg.


Quote:
Originally Posted by Hacker X
Okay, that's an answer. But does that mean compiling a new kernel would help?
You may find SOME improvement ... one other thing you may look at
is whether DMA is enabled or not.



Cheers,
Tink
 
Old 09-11-2006, 07:30 PM   #7
DotHQ
Member
 
Registered: Mar 2006
Location: Ohio, USA
Distribution: Red Hat, Fedora, Knoppix,
Posts: 548

Rep: Reputation: 33
nevermind ....i was to slow.

Last edited by DotHQ; 09-11-2006 at 07:32 PM.
 
Old 09-11-2006, 09:34 PM   #8
Hacker X
Member
 
Registered: Jun 2006
Location: Urbana, Illinois, US
Distribution: Zenwalk, Vector
Posts: 76

Original Poster
Rep: Reputation: 15
0123456789

Last edited by Hacker X; 09-11-2006 at 09:52 PM.
 
Old 09-11-2006, 09:48 PM   #9
Hacker X
Member
 
Registered: Jun 2006
Location: Urbana, Illinois, US
Distribution: Zenwalk, Vector
Posts: 76

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Hacker X
firefox 41%
X 13-15%
misc. other apps 6% or less
Quote:
Originally Posted by Tinkster
Are you playing flash-animations or something?
That's % memory.

Quote:
Can you post the output of top -b -n 1 here?
Code:
top - 21:15:52 up 11:37,  2 users,  load average: 0.63, 0.66, 0.57
Tasks:  67 total,   1 running,  65 sleeping,   1 stopped,   0 zombie
Cpu(s): 24.2% us,  3.1% sy,  1.3% ni, 70.6% id,  0.6% wa,  0.3% hi,  0.0% si
Mem:    117748k total,   112508k used,     5240k free,      292k buffers
Swap:   249976k total,    92032k used,   157944k free,    27012k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 1998 root      15   0 46892  18m 3388 S  5.3 15.7 101:10.63 X
 2962 dan       16   0  2212 1000  760 R  5.3  0.8   0:00.09 top
 2039 dan       15   0 10120 2632 2176 S  1.8  2.2  19:45.64 xfce4-cpugraph-
 2109 dan       15   0  140m  51m  13m S  1.8 44.6  53:49.09 firefox-bin
Quote:
Also check for errors in /var/log/ and dmesg.
Interesting. So are hackers watching this forum? I've never seen this before, and I checked /var/log/messages several times a couple months ago when I was debugging pppd/chat.

This is only a sample. There are about 30-40 attempts total:
Code:
Sep 11 20:03:49 zenwalk sshd[2790]: Failed password for invalid user admin from 202.57.35.38 port 47669 ssh2
Sep 11 20:03:55 zenwalk sshd[2794]: Invalid user admin from 202.57.35.38
Sep 11 20:03:55 zenwalk sshd[2794]: Failed password for invalid user admin from 202.57.35.38 port 48635 ssh2
Sep 11 20:04:00 zenwalk sshd[2798]: Invalid user admin from 202.57.35.38
Sep 11 20:04:01 zenwalk sshd[2798]: Failed password for invalid user admin from 202.57.35.38 port 50402 ssh2
Sep 11 20:04:06 zenwalk sshd[2802]: Invalid user admin from 202.57.35.38
Sep 11 20:04:06 zenwalk sshd[2802]: Failed password for invalid user admin from 202.57.35.38 port 51370 ssh2
Sep 11 20:04:11 zenwalk sshd[2806]: Invalid user admin from 202.57.35.38
Sep 11 20:04:11 zenwalk sshd[2806]: Failed password for invalid user admin from 202.57.35.38 port 52330 ssh2
Nothing else that I would recognize, but that's not saying much.

Quote:
You may find SOME improvement ... one other thing you may look at is whether DMA is enabled or not.
Could you explain what that is?
 
Old 09-11-2006, 09:57 PM   #10
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Half your memory is in swap. That will slow you down rather considerably. To check for DMA (direct memory access) on your disk drive, as root:

Code:
# hdparm -v /dev/hda

/dev/hda:
 multcount    = 16 (on)
 IO_support   =  1 (32-bit)
 unmaskirq    =  1 (on)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    = 4096 (on)
 geometry     = 16383/255/63, sectors = 156301488, start = 0
To enable it:

hdparm -d1 /dev/hda
 
Old 09-11-2006, 10:14 PM   #11
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927
Quote:
Originally Posted by Hacker X
That's % memory.


Code:
top - 21:15:52 up 11:37,  2 users,  load average: 0.63, 0.66, 0.57
Tasks:  67 total,   1 running,  65 sleeping,   1 stopped,   0 zombie
Cpu(s): 24.2% us,  3.1% sy,  1.3% ni, 70.6% id,  0.6% wa,  0.3% hi,  0.0% si
Mem:    117748k total,   112508k used,     5240k free,      292k buffers
Swap:   249976k total,    92032k used,   157944k free,    27012k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 1998 root      15   0 46892  18m 3388 S  5.3 15.7 101:10.63 X
 2962 dan       16   0  2212 1000  760 R  5.3  0.8   0:00.09 top
 2039 dan       15   0 10120 2632 2176 S  1.8  2.2  19:45.64 xfce4-cpugraph-
 2109 dan       15   0  140m  51m  13m S  1.8 44.6  53:49.09 firefox-bin
Code:
  2109 dan       15   0  140m  51m  13m S  1.8 44.6  53:49.09 firefox-bin
That is indeed a memory issue. firefox is using (trying to use) 140MB of
128MB ... that explains the performance and the CPU usage.

Quote:
Interesting. So are hackers watching this forum? I've never seen this before, and I checked /var/log/messages several times a couple months ago when I was debugging pppd/chat.
They may - but that wouldn't give them your IP; that's just a random ssh
attack. If you don't like them filling up your logs, have a look at this post




Cheers,
Tink
 
Old 09-11-2006, 10:18 PM   #12
Hacker X
Member
 
Registered: Jun 2006
Location: Urbana, Illinois, US
Distribution: Zenwalk, Vector
Posts: 76

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by macemoneta
Half your memory is in swap. That will slow you down rather considerably. To check for DMA (direct memory access) on your disk drive, as root:
Yes, it's on.
 
Old 09-13-2006, 02:02 AM   #13
Hacker X
Member
 
Registered: Jun 2006
Location: Urbana, Illinois, US
Distribution: Zenwalk, Vector
Posts: 76

Original Poster
Rep: Reputation: 15
Thanks for all the help.
 
  


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
Slow machine; mysql ShuGos Linux - Software 0 06-15-2005 04:22 AM
Another slow machine issue... Twisted385 Linux - Newbie 18 02-17-2005 09:24 PM
Best filesystem for a slow machine. failure_man Slackware 3 11-26-2004 10:05 AM
RH9 slow for my machine Thom_Redhat Linux - General 3 12-22-2003 03:15 PM
Is my machine too slow for RH9 GaryOswald Linux - Software 10 08-12-2003 11:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:23 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