Processors Motherboards Chipsets Memory Graphics Cards Storage Cases and Cooling Mobile Systems Displays Shows and Expos
Latest Sponsors

Powered By
Newegg
Tyan Motherboards
Corsair Memory
Western Digital Hard Drives
Red Hat Linux

PC Perspective Forums Sponsor

Go Back   PC Perspective Forums > Software > Linux
User Name
Password
Register FAQ Rules Members List iTrader Search Today's Posts Mark Forums Read

Linux Thinking of giving Linux a try, or got a Linux related question then this is the place to be. Did we mention PCPer runs on Linux!

Reply
 §   #1  
Old 03-23-2005, 09:44 AM
Jackal
F.A.B
 
Profile
Joined: Dec 2000
Location: Out there, just read my posts
My System
Status: ( Offline )
Posts: 5,447
System Seems sluggish

Hi Everybody,

Running the latest FC3, and it just seems sluggish to me, whenever I goto launch an app. there is a few second delay (1-3), ESPECIALLY if I'm running Xine.

I've looked for places to "tweak" the kernel in KDE, but can't find anything useful, any Ideas?

Also how can I check to see if my drives are using DMA 5/6 respectively etc....

TIA!
__________________
Comm-Net
Reply With Quote
 §   #2  
Old 03-23-2005, 09:49 AM
Harryc's Avatar
Harryc
Linux is Addictive
 
Profile
Joined: Mar 2001
My System
Status: ( Offline )
Posts: 8,085
Re: System Seems sluggish

First you must know which device is your CDROM or DVDROM drive, then to see which level is active;

Code:
hdparm -i /dev/hdc
To see if DMA is on or off;

Code:
hdparm /dev/hdc
Change hdc to your device. This will tell you your current DMA mode. To find the device ID's for your hard drives; (as root)

Code:
fdisk -l
To enable DMA if it is off;

Code:
hdparm -d1 /dev/hdc
http://www.tldp.org/HOWTO/Ultra-DMA-8.html
__________________

Last edited by Harryc : 03-23-2005 at 09:59 AM.
Reply With Quote
 §   #3  
Old 03-23-2005, 09:57 AM
Jackal
F.A.B
 
Profile
Joined: Dec 2000
Location: Out there, just read my posts
My System
Status: ( Offline )
Posts: 5,447
Re: System Seems sluggish

Quote:
Originally Posted by Harryc
First you must know which device is your CDROM or DVDROM drive, then to see which level is active;

Code:
hdparm -i /dev/hdc
To see if DMA is on or off;

Code:
hdparm /dev/hdc
Change hdc to your device. This will tell you your current DMA mode. To find the device ID's for your hard drives; (as root)

Code:
fdisk -l

Cool, thank you, both disks are dma5/6 respectively, wonder why my box seems so slugish?!
Reply With Quote
 §   #4  
Old 03-23-2005, 11:03 AM
jpmoney
Corporate IT Sellout
 
Profile
Joined: Aug 2001
Location: Austin, TX
My System
Status: ( Offline )
Posts: 561
Re: System Seems sluggish

Because its running Bloatora. OK, that was wrong and I'm only mostly kidding, but by the time you get KDE loaded and a few apps, anything with less than 512M of ram is going to be sluggish. How much RAM is in the box?

I'd start turning off unnecessary services like NFS, isdn, etc. I know you've been diving head-first into Linux from your other posts, so I'm going to assume you know how to use chkconfig unless you ask, and then of course we'll be very happy to explain further =).

To really "tweak" the kernel, you'll have to recompile it. Its really not that hard as long as you know your hardware (and since you're here, I don't think thats a big streach). The kernel has great help included (mostly), so its at least worth a try. You also have the ability to have multiple kernels available for boot, so should you really bork your system, you can always boot to your old, good, kernel as long as you have configured your boot loader properly. Again with the "let us know if you need more detail".

And finally, how is the output of a basic speed test from hdparm?
Code:
# hdparm -tT /dev/hda
__________________
- JP Money -
alyson (Hannigan) [XP/Gentoo]
Athlon 64 3200+ | Shuttle SN85G4 | 1GB PC3200 | BFG 6800 OC | Dell FP1800 18" LCD
milla (Jovovich) [Gentoo Linux]
Sony PCG-Z1A
liz (Phair) [FreeBSD 5.3-RELEASE web/mail server]
Athlon t-bird 1.4 Ghz | Gigabyte 7DXR | 2 GB PC2100 | Adaptec 29160 | 36 GB Seagate Cheetah 10K
Reply With Quote
 §   #5  
Old 03-23-2005, 11:19 AM
Ned Slider's Avatar
Ned Slider
Moderator
Moderator
 
Profile
Joined: Jul 2001
Location: UK
Age: 41
My System
Status: ( Offline )
Posts: 20,197
Re: System Seems sluggish

My FC3 install isn't that heavily tweaked and after a clean boot and login to KDE, free -m shows only 88MB RAM used (I only have 256MB installed atm). I have turned off all unnecessary services though and it's quite a minimal machine. But I agree with JP, it's not the snapiest of systems.

Do you leave the system running overnight? There are a stack of cronjobs that run at 4.00am including prelink which may improve the speed of opening apps once it's had a chance to run. Also, I think if they're not run overnight at their predefined times then they probably run at first boot so that may make the system feel sluggish for 5 minutes or so when first turned on.

Ned
__________________

~ Want to try Linux - check out the PC Perspective Linux FAQ ~
~ Please take some time to read the Forum Rules ~
~ Feed the spamb0tz, don't mail me here: C3B0tz917328@nirvana.admins.ws ~

Reply With Quote
 §   #6  
Old 03-23-2005, 12:20 PM
Jackal
F.A.B
 
Profile
Joined: Dec 2000
Location: Out there, just read my posts
My System
Status: ( Offline )
Posts: 5,447
Re: System Seems sluggish

for starters, my system is an Athlon XP 2500+ (Barton O/C to 2.2 gig.), 512 meg. RAM.

no I've not recently left it on overnight.

[root@thebeast conf.d]# hdparm -tT /dev/hda

/dev/hda:
Timing cached reads: 1152 MB in 2.00 seconds = 574.94 MB/sec
Timing buffered disk reads: 80 MB in 3.04 seconds = 26.31 MB/sec

It's not DAWG slow mind you, but whenever I launch any app, I get the hourglass spinning for 1-3 seconds.

Mind you, and ran that test with Xine playing Alien, a browser open, and Kopete running and connected, also email open.
Reply With Quote
 §   #7  
Old 03-23-2005, 07:08 PM
Provicemo
Fill in the _____
 
Profile
Joined: Sep 2002
Location: In and out of Detroit
My System
Status: ( Offline )
Posts: 1,556
Re: System Seems sluggish

Well KDE isn't exactly known for speed (ahem, bloated).

The gentoo wiki has a very good hdparm guide

If I recall fedora runs prelink as a cron job, but if it doesn't you might want to look into that.
__________________

"Well, let's just say, 'if your VCR is still blinking 12:00,you don't want Linux.'"
- Bruce Perens, Former Debian Project Leader
Reply With Quote
 §   #8  
Old 03-23-2005, 09:28 PM
jimmybgood
Registered User
 
Profile
Joined: Aug 2003
Location: American Desert Southwest
Status: ( Offline )
Posts: 313
Re: System Seems sluggish

Well, for starters, that's an old, slow hard drive. Mine is three years old, totally standard and 50% faster. Second KDE is really slow. There are about a zillion and a half things going on and interacting with each other to do - well I don't know. Try XFCE. Third, the fc3 kernel is slow. It's loaded down with SElinux hooks that nobody understands and most people just turn off, but they're still there slowing things down. It also has the 4G/4G patch, which does allow one to use 4 gigs of ram, but you don't have, and it requires the kernel to do what's called a context switch every time it it switches between kernel and user space memory accesses.

And if Xine slows you down, get rid of it. Compile your own version of mplayer, with run-time cpu detection disabled. Don't worry, you'll have compiled in cpu optimization.
__________________
Testing - Please Ignore!
Reply With Quote
 §   #9  
Old 03-23-2005, 09:56 PM
Jackal
F.A.B
 
Profile
Joined: Dec 2000
Location: Out there, just read my posts
My System
Status: ( Offline )
Posts: 5,447
Re: System Seems sluggish

well, I will say this Gnome seemed quite a bit snappier than KDE, remember I'm a noob here, C. Negus' book recommends KDE, so that, combined with a really don't care for the new look of Gnome in FC3, is why I switched, I may just switch back since it seemed a bit quicker.

Yeah my HDD's are aging no doubt, I'd like to get a trio of 74 Gig Raptors - but then again I'd like the fastest proc. available, 3 Gig's of RAM, the fastest Video Adapter, etc...,etc...., there's this strange thing called money that you have to have to get these things, which I have none of. !
Reply With Quote
 §   #10  
Old 03-23-2005, 11:02 PM
Provicemo
Fill in the _____
 
Profile
Joined: Sep 2002
Location: In and out of Detroit
My System
Status: ( Offline )
Posts: 1,556
Re: System Seems sluggish

I wouldn't worry about the system specs, my system is nothing is to get excited about and I'm happy with its preformance.

I'm optimized to hell and back, but firefox still takes 2.5secs to open. If I wanted those 2.5 secs of my life back I'd start using links2 or dillo. But I think thats as good as I'll get so I'll live.

And if the slowdown if specifically with xine, I'd tweak xine's settings. Maybe try different playback drivers and see what happens.
Reply With Quote
 §   #11  
Old 03-23-2005, 11:25 PM
Jackal
F.A.B
 
Profile
Joined: Dec 2000
Location: Out there, just read my posts
My System
Status: ( Offline )
Posts: 5,447
Re: System Seems sluggish

well, I think you some it up well, my system whilst running winxp or win2K is very quick, but I've tweaked them till they scream, I've no clue how to tweak Linux, so therein, most likely, lies the problem.
Reply With Quote
 §   #12  
Old 03-24-2005, 12:14 AM
Jackal
F.A.B
 
Profile
Joined: Dec 2000
Location: Out there, just read my posts
My System
Status: ( Offline )
Posts: 5,447
Re: System Seems sluggish

Ok, wierdness here, I logon, and choose Gnome as my session and my screen is back to 800X600. I think no big deal, and go to change it, it tells me to logoff and restart XServer, so I choose logoff, pick Gnome again, and I'm still at 800X600?

Then I go back into KDE and it's back to my normal 1280X1024 but I get some garbage, looks like "snow", at the top of my screen, and the taskbar is missing. I move the mouse, the snow goes away, taskbar appears, but when I move the mouse to the edges of the screen, my desktop moves slightly?!?! I had to adjust my monitor to get it centered again?

Also, while in Gnome, the update alert icon, said there were updates, so I hit it, it fetches headers, then tells me there are no updates?

Back in KDE same thing, except it goes and gets/installs them?

Kooky!
Reply With Quote
 §   #13  
Old 03-24-2005, 02:05 AM
Jackal
F.A.B
 
Profile
Joined: Dec 2000
Location: Out there, just read my posts
My System
Status: ( Offline )
Posts: 5,447
Re: System Seems sluggish

well, I got that figured out, had to set "screen resolution", as well as "Display", so back in Gnome, things seem snappier, somewhat, and resolution is where it should be.
Reply With Quote
 §   #14  
Old 03-24-2005, 01:10 PM
Jackal
F.A.B
 
Profile
Joined: Dec 2000
Location: Out there, just read my posts
My System
Status: ( Offline )
Posts: 5,447
Re: System Seems sluggish

Well, everything "seems" to be ok now, glxgears is working, no crashes or lockups, seems zippy, I know I've got a bunch of stuff running that I don't need, i.e. samba, sendmail, to name a couple. I've managed to figure out how to get a minor webpage up and running as evidenced by my signature working, I did get one goofy error on startup, when starting httpd it would say something about it never working as an alias at line XXX was different, than before or something. The file was /etc/httpd/conf/httpd.conf, I simply vi'd it and remarked the line, was Alias /manual /var/www/manual, it had a paragraph saying to change it to Serverroot /manual, or just comment it out, so I commented it out, since server root is /var/www/html but it has no "manual" file?

Anyway, another step in the right direction to canning winblows, now major projects are getting my outlook *.pst file w/all my saved emails in linux, and being able to actually work, I tried creating business cards with multiple openoffice programs, and it was like a child and a crayon, terrible, no use to me at all, had to go back into winblows and use publisher, same for fliers.

Oh well, baby steps I guess.
Reply With Quote
 §   #15  
Old 03-24-2005, 01:23 PM
Provicemo
Fill in the _____
 
Profile
Joined: Sep 2002
Location: In and out of Detroit
My System
Status: ( Offline )
Posts: 1,556
Re: System Seems sluggish

Maybe try gLabels for business cards
Reply With Quote
Reply



Go Back   PC Perspective Forums > Software > Linux

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 10:17 PM.


Powered by vBulletin
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© PC Perspective 2000 - Present