LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 09-14-2006, 01:35 PM   #1
kaplan71
Member
 
Registered: Nov 2003
Posts: 809

Rep: Reputation: 39
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.
 
Old 09-14-2006, 01:54 PM   #2
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
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
 
Old 09-14-2006, 02:08 PM   #3
kaplan71
Member
 
Registered: Nov 2003
Posts: 809

Original Poster
Rep: Reputation: 39
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.
 
Old 09-14-2006, 02:14 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
Do you have an IDE hard drive, or is it SCSI?
 
Old 09-14-2006, 02:20 PM   #5
kaplan71
Member
 
Registered: Nov 2003
Posts: 809

Original Poster
Rep: Reputation: 39
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.
 
Old 09-14-2006, 02:24 PM   #6
kaplan71
Member
 
Registered: Nov 2003
Posts: 809

Original Poster
Rep: Reputation: 39
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?
 
Old 09-14-2006, 02:33 PM   #7
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
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.
 
Old 09-14-2006, 02:39 PM   #8
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
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).
 
Old 09-14-2006, 04:02 PM   #9
kaplan71
Member
 
Registered: Nov 2003
Posts: 809

Original Poster
Rep: Reputation: 39
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.
 
  


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
Copying large files to FAT32 sketch7 Linux - General 11 10-22-2007 10:13 AM
ps -aux CPU usage percentage depdiver Linux - General 1 02-25-2006 02:02 AM
Cpu usage while copying files from DVD TheCondor389 SUSE / openSUSE 2 01-07-2005 12:16 PM
Samba hangs up at copying many large files ogcu Linux - Networking 1 05-19-2004 01:29 AM
Error copying large files from cdrom patrickyeo Linux - Hardware 1 11-03-2002 06:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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