LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 08-04-2009, 02:08 AM   #1
ack_iix
Member
 
Registered: Jan 2009
Location: Tangerang, Indonesia
Distribution: Slackware64-current
Posts: 61

Rep: Reputation: 17
High CPU load on I/O operation


Currently I've been using Slackware64-Current since it is first released, and one thing I noticed is file operation (copy, move) from my hard drive (ext4) to external USB drive (NTFS), even copying data from DVD to my hard drive would heavily load my CPU (almost 100%).

I've checked DMA settings, and here's the result:
Code:
/dev/hda:
 multcount     = 16 (on)
 IO_support    =  0 (default)
 unmaskirq     =  0 (off)
 using_dma     =  1 (on)
 keepsettings  =  0 (off)
 readonly      =  0 (off)
 readahead     = 256 (on)
 geometry      = 16383/255/63, sectors = 156301488, start = 0
Code:
/dev/hdb:
 IO_support    =  0 (default)
 unmaskirq     =  0 (off)
 using_dma     =  1 (on)
 keepsettings  =  0 (off)
 readonly      =  0 (off)
 readahead     = 256 (on)
 HDIO_GETGEO failed: Inappropriate ioctl for device
My machine is using a Intel dual core E2160 clocked at 3 GHz, and file operation putting heavy load on both core is kind of strange.

I'm using stock kernel from Slackware64-Current, anybody using a custom build kernel (2.6.30.x) having this problem? If this problem gone in the new kernel then I'm going to build & install a new kernel.

Thanks.

Last edited by ack_iix; 08-04-2009 at 02:21 AM.
 
Old 08-04-2009, 07:05 PM   #2
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 89
The machine I use to test Slackware64 is also a dual core 3GHz box and cpu load is very low...
Just a wild guess: how much memory does your machine have?

Another question: Does this only happen copying to external drives?
Copying on your local drives works w/o problems?
 
Old 08-06-2009, 10:26 AM   #3
ack_iix
Member
 
Registered: Jan 2009
Location: Tangerang, Indonesia
Distribution: Slackware64-current
Posts: 61

Original Poster
Rep: Reputation: 17
Thanks for your reply, my machine has 4 GB of RAM, and after more file copy-move testing the highest CPU load occurred when copy or move files to external HDD. Do you ever have similar experience like this?
 
Old 08-06-2009, 11:21 AM   #4
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 89
Never happened to me...
I use external drives as well, but w/o problems. BTW: I also have 4GB on that machine.

Do you have anything "special" configured, like LVM, software-RAID, encrypted filesystem, etc.?

Is your drive really IDE? (since it is mounted as /dev/hda and not /dev/sda)
 
Old 08-06-2009, 12:23 PM   #5
disturbed1
Senior Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,133
Blog Entries: 6

Rep: Reputation: 223Reputation: 223Reputation: 223
Quote:
Originally Posted by ack_iix View Post
My machine is using a Intel dual core E2160 clocked at 3 GHz, and file operation putting heavy load on both core is kind of strange.

I'm using stock kernel from Slackware64-Current, anybody using a custom build kernel (2.6.30.x) having this problem? If this problem gone in the new kernel then I'm going to build & install a new kernel.

Thanks.

Check that you are using the correct chipset driver(s) and not generic drivers. Which file system are you using? File systems can cause some overhead, but should not cause 100% spikes.

If you are using the huge kernel, this could be the case. For my systems, using the huge kernel has resulted in using the generic-ide adapter, with ~22 MB/s throughput with 99% CPU. Using the generic kernel with an intrid or compiling my own gives me ~75 MB/s and 2-5% CPU.
 
Old 08-06-2009, 05:12 PM   #6
ack_iix
Member
 
Registered: Jan 2009
Location: Tangerang, Indonesia
Distribution: Slackware64-current
Posts: 61

Original Poster
Rep: Reputation: 17
My hard drive is IDE, connected to JMB368 IDE controller on Abit IP35-E mainboard and it's using the pata_jmicron module. All partition is formatted as ext4 and my external USB HDD is formatted with NTFS. I use the generic kernel not the huge one. I've heard rumors about the JMicron controller causing some performance problem, and yes not only the CPU usage is insane, copying lots of file could take very long, which in my opinion indicates low transfer rate.

I've even tried compile a custom 2.6.30.4 kernel based on the config from Slackware64 generic kernel, still no progress though. Please share your advice or experience regarding the JMB368 IDE on Linux.

Thanks.

Last edited by ack_iix; 08-06-2009 at 05:38 PM.
 
Old 08-06-2009, 07:25 PM   #7
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 89
Since the high cpu load happens when copying from or to the external drive, let's investigate that.

Check with 'lsusb -v' the information about your external drive and post it here.
 
Old 08-06-2009, 08:52 PM   #8
disturbed1
Senior Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,133
Blog Entries: 6

Rep: Reputation: 223Reputation: 223Reputation: 223
Quote:
Originally Posted by ack_iix View Post
I've even tried compile a custom 2.6.30.4 kernel based on the config from Slackware64 generic kernel, still no progress though. Please share your advice or experience regarding the JMB368 IDE on Linux.

Thanks.
Code:
03:00.0 IDE interface: JMicron Technologies, Inc. JMB368 IDE controller (prog-if 85 [Master SecO PriO])
Kernel driver in use: pata_jmicron
The driver is provided by libata, and listed as /dev/sd$. If you use the older driver, this controller will be listed as /dev/hd$. I currently have my optical drives connected to this controller - with out using libata burning a disc faster than 8x was not possible, also had high CPU usage. IDE drives connected to this chipset while not using the correct drivers exhibit the same problems you have.

If you compiled your own kernel I'm sure you read this. Why didn't you use the libata driver as suggested?
Quote:
Basic support for the JMicron ATA controllers. For full support
use the libata drivers.
Quote:
Since the high cpu load happens when copying from or to the external drive, let's investigate that.

Check with 'lsusb -v' the information about your external drive and post it here.
Have to agree If the problem is only with an externel drive. But if you are using a JMicron chipset without the correct drivers, other problems could arise as well.
 
Old 08-08-2009, 06:13 AM   #9
ack_iix
Member
 
Registered: Jan 2009
Location: Tangerang, Indonesia
Distribution: Slackware64-current
Posts: 61

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by disturbed1 View Post
The driver is provided by libata, and listed as /dev/sd$. If you use the older driver, this controller will be listed as /dev/hd$. I currently have my optical drives connected to this controller - with out using libata burning a disc faster than 8x was not possible, also had high CPU usage. IDE drives connected to this chipset while not using the correct drivers exhibit the same problems you have.
Thanks for the suggestion, re-compiled my kernel today so the JMicron use the new driver. The drive is recognized as /dev/sda and now my CPU load on copy operation is much better.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
cc1plus high CPU load - 99% ?? Bluesuperman Programming 1 05-12-2006 12:49 PM
High Xorg 6.8.2 CPU Load Corporal Linux - Software 0 12-27-2005 02:11 AM
High load - but CPU 99% idle? Boss Hoss Linux - Hardware 6 05-24-2004 04:39 AM
Why am I getting ?high? CPU load? pnh73 Linux - General 15 10-21-2003 10:36 AM
Help! very high CPU load by squid cash_05 Linux - Networking 0 10-08-2003 07:05 AM


All times are GMT -5. The time now is 05:01 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration