Fedora This forum is for the discussion of the Fedora Project. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-14-2006, 01:35 PM
|
#1
|
Member
Registered: Nov 2003
Posts: 810
Rep:
|
Hi Percentage of CPU usage in copying or writing large files
Hi there --
I have Fedora Core 3 running on a Dell Dimension 9150 with 2 GB of RAM and I have noticed that whenever I copy or write a large file, the system slows down tremendously. Specifcally,
other applications and even moving the mouse take a much longer time to accomplish.
I ran the top command to see if I could localize the problem. I noticed that the wa field in top had percentages in the double digits when the copying or writing occurred while the swap field did not have any percentage of activity.
My first question is what is the wa field, and secondly what do I need to do to correct this problem? Thanks.
|
|
|
09-14-2006, 01:54 PM
|
#2
|
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
|
That's I/O wait. It usually means that DMA is disabled on the drive. You can check with (for example):
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 set DMA on:
hdparm -d1 /dev/hda
|
|
|
09-14-2006, 02:08 PM
|
#3
|
Member
Registered: Nov 2003
Posts: 810
Original Poster
Rep:
|
Hi there --
Thanks for your reply. I tried running the hdparm command as root from runlevel 3, but I got
the error message: OPERATION NOT PERMITTED. Do I need to run in single-user mode to make the
change or is there something else to do? Thanks.
|
|
|
09-14-2006, 02:14 PM
|
#4
|
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
|
Do you have an IDE hard drive, or is it SCSI?
|
|
|
09-14-2006, 02:20 PM
|
#5
|
Member
Registered: Nov 2003
Posts: 810
Original Poster
Rep:
|
The drive in question is IDE. I confirmed this in following manner:
I did a df command and the drive appeared as /dev/hda
I then ran fdisk and confirmed there as well the hardware path was /dev/hda.
|
|
|
09-14-2006, 02:24 PM
|
#6
|
Member
Registered: Nov 2003
Posts: 810
Original Poster
Rep:
|
Hold everything --
I just found out from the user of the system, that the drives are SATA and not the standard PATA drives. If memory serves me correctly, there is a specific command or argument for these types of drives. Correct?
|
|
|
09-14-2006, 02:33 PM
|
#7
|
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
|
SATA drives generally don't need configuration (alway use DMA). However, check your BIOS - some configuration options (sometimes labeled "enhanced IDE" or similar) actually kill I/O performance on Linux. While you are at it, make sure you have the current Dell BIOS for that machine.
|
|
|
09-14-2006, 02:39 PM
|
#8
|
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
|
Another possible issue... The most recent FC3 kernel is 2.6.12 based. There were many SATA changes after that. You should consider upgrading to FC5 (use a re-spin to avoid having to download a ton of maintenance).
|
|
|
09-14-2006, 04:02 PM
|
#9
|
Member
Registered: Nov 2003
Posts: 810
Original Poster
Rep:
|
Hi there --
I did do a check previous in the system BIOS and there was no reference to the Enhanced IDE performance. I'll double-check to make sure. The notion of upgrading the OS to Fedora Core 5
is probably the avenue that will be taken. Thanks for the information.
|
|
|
All times are GMT -5. The time now is 12:27 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|