LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
LinkBack Search this Thread
Old 12-24-2007, 08:50 AM   #1
designator
Member
 
Registered: Jun 2003
Location: Santa Barbara
Distribution: OpenSuSe 11.4
Posts: 97

Rep: Reputation: 15
Exclamation Slow disk makes machine unusable


I have a couple of old 120GB IDE Western Digital disks in my computer connected to a controller with JMicron 363 chipset. Problem is, they are insanely slow. They are formatted with ext3. 1% reserved.
Code:
hdparam -t /dev/hdc
/dev/hdc:
 Timing buffered disk reads:    4 MB in  3.64 seconds =   1.10 MB/sec
This wouldn't really be a problem, but any sort of io access to either disk brings my computer to a crawl. Reading slows it down to basically unusable, and writing just kills it.

I usually connect to this machine remotely and any attempt to write to either drive kills all ssh sessions (along with any other network services like NAT,) and prevents me from reconnecting for about 15-20 mins.

When I am finally able to reconnect there is nothing in the logs that shows any sort of errors.

These disks are old, but I expect them to perform at least a little better than cd-roms :-) It would also be really nice if there was a way to background rw access so that it doesn't dominate the computer.

Any ideas welcome! I'd love to hear that it is just some dumb setting I need to change and I'll get 50MB/s out of them :-)

Happy holidays.

Last edited by designator; 12-24-2007 at 08:52 AM. Reason: Adding fs info
 
Old 12-24-2007, 09:25 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
Is DMA enabled for these drives??? hdparmd /dev/hdc

See: http://www.linuxdevcenter.com/pub/a/...29/hdparm.html
 
Old 12-24-2007, 10:11 PM   #3
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,230
Blog Entries: 5

Rep: Reputation: 185Reputation: 185
Are you sure the issue isn't with the controller and not the drives ? The Jmicron controller has been a royal pain in the past..

https://bugs.launchpad.net/ubuntu/+s....15/+bug/57502

http://forums.gentoo.org/viewtopic-t...ighlight-.html


I've installed Linux on drives older than the 120GB drives you mentioned and never had a perfomance issue as severe as you describe.
 
Old 12-26-2007, 02:38 AM   #4
designator
Member
 
Registered: Jun 2003
Location: Santa Barbara
Distribution: OpenSuSe 11.4
Posts: 97

Original Poster
Rep: Reputation: 15
Well, I did recently move the drives from HighPoint RocketRAID controller, but they have been causing similar problems before, I just never bothered to test the transfer rate because I used them for archiving old stuff I didn't really care for - so not much access. Also, I had 3 of these in RAID 0, so they had to work at least a little faster. Now I want to compress the data on them so basically read whole drive, the write compressed data back to the entire drive.

Drives are not in RAID right now.

Unfortunately, I'm about 150 miles away from this machine so I don't have the convenience of rebooting in single user mode if I mess up hdparam settings, but I'll definitely play around with those next time I can log in locally. Thanks for the link!

DMA is off:
Code:
/sbin/hdparm /dev/hdc

/dev/hdc:
 multcount    = 16 (on)
 IO_support   =  0 (default 16-bit)
 unmaskirq    =  0 (off)
 using_dma    =  0 (off)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    = 256 (on)
 geometry     = 16383/255/63, sectors = 234441648, start = 0
 
Old 12-30-2007, 12:28 PM   #5
designator
Member
 
Registered: Jun 2003
Location: Santa Barbara
Distribution: OpenSuSe 11.4
Posts: 97

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Lenard View Post
Is DMA enabled for these drives??? hdparmd /dev/hdc

See: http://www.linuxdevcenter.com/pub/a/...29/hdparm.html
Thanks again for that link. My IO-Wait is still around 70%, but transfer rate improved greatly and now that it doesn't lock the interrupts -- it doesn't kill network connections.

Code:
/sbin/hdparm -t /dev/hdd

/dev/hdd:
 Timing buffered disk reads:  150 MB in  3.01 seconds =  49.91 MB/sec

Last edited by designator; 12-30-2007 at 12:32 PM. Reason: Adding extra hdparm data
 
  


Reply

Tags
disk, io


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unallocated hard disk space now unusable!!!320 GB SATA riodeuno Slackware 6 08-25-2007 12:20 AM
copying to my usb2.0 disk makes system realy slow and takes up to 90% cpu Sammael Linux - Hardware 0 08-21-2006 05:18 AM
system-config-network tool unusable + very slow boot anax93 Linux - Wireless Networking 3 07-26-2006 12:46 PM
Suspend to Disk failed, now machine's CPU usage makes machine unusable tisource Linux - General 2 09-11-2005 05:20 PM
linux makes NIC unusable in windows taylorpendley Linux - Networking 5 08-13-2005 04:03 PM


All times are GMT -5. The time now is 05:45 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
Open Source Consulting | Domain Registration