LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 05-28-2008, 09:40 PM   #1
vmelkon
Member
 
Registered: Feb 2007
Location: Canada
Distribution: Kubuntu 22.04
Posts: 549

Rep: Reputation: 83
Copying file and CPU usage


Hello,

Is it normal that when I copy a file, the CPU usage goes to 100% while the copy is taking place?
I have Kubuntu 7.04 and also Suse 10.0 on different machines. Perhaps it is not making use of DMA transfer?
The only drivers I updated on both are the graphics drivers.
The Kubuntu machine stays up to date with online updates.

Anyone want to know system spec or it doesn't matter?
 
Old 05-28-2008, 10:54 PM   #2
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
For large files, copy will always be slow and take a lot of CPU time - even worse when copying over a slow or busy network, when swapping is happening, and when the source disk is being accessed by numerous other programs.
 
Old 05-29-2008, 04:35 AM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
What filesystem are you using ?

Also, what's the output of:
Code:
hdparm /dev/hda
where '/dev/hda' is the device node of your HDD.

Also I disagree with pinniped, on my computer copying even huge files does not use very much CPU time at all. However, I use JFS not ext3 like most people.

Last edited by H_TeXMeX_H; 05-29-2008 at 04:37 AM.
 
Old 05-29-2008, 08:38 AM   #4
vmelkon
Member
 
Registered: Feb 2007
Location: Canada
Distribution: Kubuntu 22.04
Posts: 549

Original Poster
Rep: Reputation: 83
On Suse 10.0
#hdparm /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 = 256 (on)
geometry = 38792/16/63, sectors = 39102336, start = 0
========================================
Yes, I have used ext3 on both machines. I don't remember is JFS was offered when I installed Suse 10.0
 
Old 05-29-2008, 02:34 PM   #5
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Well, it's reporting that DMA is on
Code:
using_dma = 1 (on)
So, that's not the problem.

I know, most distros offer only ext3 as the filesystem. That's too bad, cuz it's performance is not as good as JFS or XFS. JFS is good for me because it is known for low CPU usage.
 
Old 05-30-2008, 06:34 AM   #6
vmelkon
Member
 
Registered: Feb 2007
Location: Canada
Distribution: Kubuntu 22.04
Posts: 549

Original Poster
Rep: Reputation: 83
Quote:
Originally Posted by H_TeXMeX_H View Post
Well, it's reporting that DMA is on
Code:
using_dma = 1 (on)
So, that's not the problem.

I know, most distros offer only ext3 as the filesystem. That's too bad, cuz it's performance is not as good as JFS or XFS. JFS is good for me because it is known for low CPU usage.
Perhaps I will chose JFS or XFS next time if I do a reinstall.
Thanks for the info.
 
Old 05-30-2008, 03:52 PM   #7
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Sure, no problem. If anyone else knows more and has other explanations, feel free to add them. I'm not an expert you know.
 
Old 05-30-2008, 06:16 PM   #8
grizly
Member
 
Registered: Nov 2006
Location: Melbourne Australia
Distribution: Centos, RHEL, Debian, Ubuntu, Mint
Posts: 128

Rep: Reputation: 16
run copy using nice, I love nice processes!

Quote:
$nice cp file1 file2 /destination
Will automatically renice the copy by 10 points! Works great in scripts as well!
 
  


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
/proc/stat file problem for cpu usage arunka Programming 3 04-23-2014 01:08 PM
Hi Percentage of CPU usage in copying or writing large files kaplan71 Fedora 8 09-14-2006 04:02 PM
getting realtime info on memory usage-cpu and harddrive usage steering Linux - Newbie 5 03-03-2005 08:43 PM
Cpu usage while copying files from DVD TheCondor389 SUSE / openSUSE 2 01-07-2005 12:16 PM
how to determine cpu usage, memory usage, I/O usage by a particular user logged on li rags2k Programming 4 08-21-2004 04:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

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