LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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-18-2003, 03:43 AM   #1
guygriffiths
Member
 
Registered: Jun 2003
Location: Reading, UK
Distribution: Debian 3.0, LFS
Posts: 524

Rep: Reputation: 37
Unusually slow computer


I am running Debian 3.01 with KDE 3.1.2, and my computer seems unusually slow, especially when using Konqueror as a file browser. Sometimes it will take a good 45 seconds to read the contents of a directory, despite the fact that ls can do it instantly. It also seems to take a long time to start applications such as mozilla & open office.
I have a 2Ghz athlon, with 1GB of RAM, so I'd expect things to be much faster.
Does anyone know:
a) Why this is
b) If it's fixable
c) If so, how?

Thanks,
Guy
 
Old 09-18-2003, 06:03 AM   #2
BigNate
Member
 
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719

Rep: Reputation: 30
KDE and Konq are not the lightest apps in the world but that is way to slow.

open Konq and select a dir to browse and then open a terminal and and run:

$top

Post the output.

BTW ls will always be faster as there is no gui to render.
 
Old 09-18-2003, 06:18 AM   #3
Xing
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: RH 9, RH 8, RH 7.3,Slackware
Posts: 123

Rep: Reputation: 15
type "top" on ur console and check the program garnering highest memory in it's functioning...

then write killall "name of the program" and ur computer will be faster.
but that cannot be the only reason for your computer to be slow..
sometimes, even bad hardware configuration also leads to excessive CPU time usage and hence a slow system... so u have to try various options...

Regards
Xing
 
Old 09-18-2003, 06:21 AM   #4
BigNate
Member
 
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719

Rep: Reputation: 30
well if top shows that the program using up tons of resources is the browser itself simply killing it is not a good enough answer. Post the output and we'll look at it to see if shows up anything.
 
Old 09-18-2003, 07:05 AM   #5
guygriffiths
Member
 
Registered: Jun 2003
Location: Reading, UK
Distribution: Debian 3.0, LFS
Posts: 524

Original Poster
Rep: Reputation: 37
Thanks. I am at work now, but I'll try it when I get home, and post it tomorrow.
 
Old 09-18-2003, 09:55 AM   #6
footfrisbee
Member
 
Registered: Apr 2003
Distribution: Debian Sarge
Posts: 259

Rep: Reputation: 30
I suspect that the slowness of the computer is not due to the desktop environment. You should try checking the speed of the IDE bus with the program "hdparm" and make sure that your drive is running in UDMA mode (I assume your motherboard and drive both support since it is new).

Also you unfortunately picked two poor "benchmarking" programs (mozilla and openoffice) to measure the speed of your system. Mozilla has always been slow (Firebird is getting much faster), and OpenOffice is inherently slow to start up since it must run a virtual machine. The performance of other programs such as Abiword, the Gimp, or Xine may be a better test. I don't have any experience with Konqueror, but a quick Google shows a possible problem with the Qt version. Maybe that's the deal.
 
Old 09-18-2003, 10:36 AM   #7
andrewlkho
Member
 
Registered: Jul 2003
Location: London
Posts: 548

Rep: Reputation: 31
another thing to try if Konqueror is taking ages to start up is this:
start konqueror from an xterm, and see if it seems to hang on any particular thing.
 
Old 09-18-2003, 11:45 AM   #8
natma
LQ Newbie
 
Registered: May 2003
Location: France
Posts: 7

Rep: Reputation: 0
do an "strace" of a running slow process, using "-p PID"

install sysstat
 
Old 09-18-2003, 01:24 PM   #9
digital abuzer
LQ Newbie
 
Registered: Sep 2003
Location: saint louis
Distribution: Slackware
Posts: 13

Rep: Reputation: 0
yea, its prolly not using dma and using PIO. get rid of kde and use Gnome, 1.4 just came out!
 
Old 09-18-2003, 01:25 PM   #10
digital abuzer
LQ Newbie
 
Registered: Sep 2003
Location: saint louis
Distribution: Slackware
Posts: 13

Rep: Reputation: 0
note: mozilla 1.4 and 1.5 beat the shit out of ie 6 in loading times.
 
Old 09-19-2003, 05:08 AM   #11
guygriffiths
Member
 
Registered: Jun 2003
Location: Reading, UK
Distribution: Debian 3.0, LFS
Posts: 524

Original Poster
Rep: Reputation: 37
I may have narrowed down the cause of things.
I don't have internet access at home, so I ran top this morning whilst looking in Konqueror. I tried looking in directories which had previously caused problems due to having many files (eg. /usr/bin) and they seemed to read fairly quickly. I ran top, and couldn't see konqueror on there - nothing was using more than 5% of CPU or memory.
Anyway, I copied the output, and created a text file. I then inserted a floppy disk, and went into Konqueror. It was only looking at my home directory, which currently doesn't have a link to the floppy drive, but it started going ridiculously slowly, and as time progressed, it listed additional copies of all of the files in my home directory, like so:
At first it would list:

projects
music
top.txt

And then a little later:

projects
projects
music
music
top.txt
top.txt

and then:

projects
projects
projects
music
music
music
top.txt
top.txt
top.txt

and so on, up to about 5 copies, when it waited for about 20 secs and then went back to normal.
I only properly set up autofs a couple of days ago, and the worst problems have been occurring since then.

Having said that, it was still having some problems previous to this, but only on very large directories which would maybe take 10-15 seconds to read.

My autofs settings are as follows:

auto.master:
/auto/cdrom /etc/auto.cdrom --timeout=10
/auto/cdrw /etc/auto.cdrw --timeout=10
/auto/floppy /etc/auto.floppy --timeout=1

auto.cdrom:
cdrom -fstype=iso9660,ro :/dev/cdrom

auto.cdrw:
cdrw -fstype=iso9660,rw :/dev/hdd

auto.floppy
floppy -fstype=auto,defaults,user,suid :/dev/fd0


and I then used the commands:

ln -s /auto/floppy/floppy /mnt/floppy
ln -s /auto/cdrom/cdrom /mnt/cdrom
ln -s /auto/cdrw/cdrw /mnt/cdrw


I was using a tutorial from:
http://www.linuxgazette.com/issue24/nielsen.html
to do this. I didn't use the script there though.

The CD drives seem to be working fine, but the floppy seems to be a cause of these problems (or at least a contributing one).
When I then tried using the console to copy the file top.txt to the floppy (cp top.txt /mnt/floppy) I first didn't have permission, and then when I tried as root, it didn't activate the drive at all, but still listed the file as residing in /mnt/floppy. I could manually umount it, to no effect.

SO...
The upshot is that I don't have the output of top, but instead I have a whole host of other problems. If mozilla and openoffice are slow anyway, that's fine, most things work at a reasonable speed, apart from Konqueror.
If anyone can help with this, I would be most grateful
Guy

P.S Sorry for the massive length of this post
 
Old 09-21-2003, 11:04 AM   #12
R3N3G4D3
LQ Newbie
 
Registered: Apr 2003
Distribution: Ubuntu 7.04, RedHat 4.4
Posts: 22

Rep: Reputation: 15
When I first started with linux, everything took at least 10 seconds to open. However, recompiling the kernel made everything work instantaneously. If you haven't recompiled your kernel yet, maybe that's the cause.
 
Old 09-21-2003, 01:48 PM   #13
php
Member
 
Registered: Jun 2001
Location: USA
Distribution: Slackware
Posts: 827

Rep: Reputation: 30
see if you have dma turned on by running 'hdparm' as root ie. hdparm /dev/hda
 
Old 09-21-2003, 03:45 PM   #14
quantumechanix
Member
 
Registered: Jan 2003
Posts: 47

Rep: Reputation: 15
i agree with the dma prob. try the hdparm as hackers_ suggests.

as root, type:

hdparm -tT /dev/hda

and post the output here.

note: some systems have the hdparm prog in /sbin so, if you get a command not found, cd into /sbin and type: "./hdparm -tT /dev/hda"

Last edited by quantumechanix; 09-21-2003 at 06:54 PM.
 
Old 09-21-2003, 04:45 PM   #15
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
On my system. When my internet connection is down, my system starts getting slower. If I do ifdown eth0. Everything is much faster. I need to fix my system one of these days.

Lite kernel version will help a lot on some systems. You may want to compile it for a 486 so that the kernel is not huge. You will still have support for your processor if you include the optimizations for the software.

The filesystem also has something to do with it. ext3 is limited to how many files you can have in a directory before it decreases your system's performance. reiserfs, xfs and jfs are good alternatives.
 
  


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
computer is slow blackman890 Mandriva 6 12-04-2004 09:14 AM
Unusually Poor ATi Performance 2uantuM Linux - Hardware 13 11-02-2004 09:30 AM
Why is my computer so SLOW? Kairelyn Linux - Newbie 7 09-17-2004 04:57 PM
Slow old computer javax Linux - General 16 11-05-2002 12:22 AM
Unusually high load subhasis_ray Linux - General 5 09-17-2002 09:28 AM

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

All times are GMT -5. The time now is 10:56 PM.

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