LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 12-22-2011, 03:19 AM   #1
opteronfx
LQ Newbie
 
Registered: Dec 2011
Posts: 2

Rep: Reputation: Disabled
Question Sata IO speed drops a while after reboot


Hi friends, I encountered a disk io speed problem. First of all, the basic system information is:

1) Dell Precision T3500, 8G MEM, 2x3T Seagate SATA HDD.
2) OS: Centos 5.7 (also tried RHEL 5.7/6, Centos 5.3/5.4/6, all the same problem).

Problem:
===================

Each time after reboot, I begin to test the disk speed. At the beginning all is fine. However after about 30 minutes, the disk IO speed drops:

[root]# hdparm -Tt /dev/sda

/dev/sda:
Timing cached reads: 25924 MB in 2.00 seconds = 12988.70 MB/sec
Timing buffered disk reads: 464 MB in 3.02 seconds = 153.86 MB/sec
[root]# hdparm -Tt /dev/sda

/dev/sda:
Timing cached reads: 27048 MB in 2.00 seconds = 13553.33 MB/sec
Timing buffered disk reads: 408 MB in 3.01 seconds = 135.65 MB/sec
[root]# hdparm -Tt /dev/sda

/dev/sda:
Timing cached reads: 27224 MB in 2.00 seconds = 13642.57 MB/sec
Timing buffered disk reads: 318 MB in 3.00 seconds = 105.90 MB/sec

[root]# hdparm -Tt /dev/sda

/dev/sda:
Timing cached reads: 3468 MB in 2.00 seconds = 1733.12 MB/sec
Timing buffered disk reads: 286 MB in 3.01 seconds = 94.99 MB/sec

============
Anyone knows what happens? Thanks a lot.
 
Old 12-26-2011, 02:13 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Do you have anything in the logs? Look into /var/log/messages. Also, are you sure you do not have any other process that is heavily using the disk?
 
Old 12-26-2011, 07:32 PM   #3
opteronfx
LQ Newbie
 
Registered: Dec 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks.

I did not run any heavy IO, but the hdparm command. After about 20 times, the io speed suddenly drops and never returns to normal.

Also I did not find any special message from /var/log/messages.
 
Old 01-07-2012, 08:10 AM   #4
markseger
Member
 
Registered: Jul 2003
Posts: 244

Rep: Reputation: 26
personally I don't think you can do this by simply timing a command. what's the system doing while the command is actually running? even more importantly what's happening as it transitions from fast to slow?

the only way to get the bottom of this sort of thing is by continuous monitoring and watching everything else going on in the system with a tool like collectl. it samples everything every 10 seconds and if you know about the time the speed drops play back the collectl data around that time period and see what's different.

I've never user hdparm so can't comment. It doesn't sound like a tool that stresses the disks over long periods of time. personally I do long reads/writes on the order of minutes, if I want accurate measurements. Since this behavior occurs in ~1/2 hour, it sounds relatively easy to reproduce. I use 'dt' to generate a continuous load by continuously writing a large file in a loop and running collectl both as a service as well as in a separate window to watch what the system is doing in real time.

-mark
 
Old 01-08-2012, 08:51 AM   #5
flamen64
LQ Newbie
 
Registered: Jun 2008
Posts: 2

Rep: Reputation: 0
What kind of hard disk do you have? Is it 4k sectors one?! Have you this problem after heavy IO or just 30 minutes after reboot or after wake up from suspend?
Do you use download managers like dta (Downthemall)?
 
Old 01-08-2012, 10:56 PM   #6
Nominal Animal
Senior Member
 
Registered: Dec 2010
Location: Finland
Distribution: Xubuntu, CentOS, LFS
Posts: 1,723
Blog Entries: 3

Rep: Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948
Can you reproduce the situation when using
Code:
hdparm --direct -t device
You should always use the --direct option when accessing devices, because it avoids the page cache.

You can also see if
Code:
sudo bash -c 'sync ; echo 3 >/proc/sys/vm/drop_caches ; sync'
affects your timings. (It should not affect --direct timings though, because that should completely bypass the caches anyway.) This command is safe to run at any time; it just flushes all caches and unwritten changes to disk, then clears the caches. It will never discard unwritten changes.

You should make sure you have smartmontools installed, and check the SMART data:
Code:
smartctl -a device
Running a self-test ( -t short or -t long ), waiting (without rebooting -- otherwise the disk can be used normally) usually quite some time (you can use smartctl -a device to see the progress), and then an offline test ( -t offline ) to update all offline attributes, and rerunning smartctl -a device will tell you more about the physical state of your storage device. Uh, assuming it does have SMART support.

Finally, you could install and run iotop before testing, to really see if you have background processes (like indexing or other housekeeping stuff, that most Linux distributions do use) accessing storage, just before running hdparm --direct -t. (Personally, I find hdparm -T to be quite worthless in practice.)
 
Old 05-17-2012, 10:52 AM   #7
gustavoc
LQ Newbie
 
Registered: Oct 2009
Location: Patagonia, Argentina
Distribution: Slackware 14.1
Posts: 17

Rep: Reputation: 0
Hi all, I've been searching for some days and found this post. My problem is similar to this: very low speed on sata disk. Tha problem is intermitent, some times hdparm reports around 600 MB/s and then drops to as low a 100 kB/s. Tried forcing some parameters of libata (yet unable to set 1.5G link speed...).
Previously I was using a CF card with IDE adapter instead of the HD and worked quite fast, now moved to sata HD and got this problem.
My setup: Intel D945GCLF mini ITX board, Atom N270, 1GB DDR2 667 DRAM, WD Scorpio Blue 500GB SATA disk, Slackware 13.37 fresh install. Disabled hd read cache with hdparm -W0 and set boottime kernel parameters: "libate.force=1:1.5g,noncq,norst noapic acpi=off". This seems to be te "less worse" situation.
Finally sorry for my bad english, my primary language is spanish.

Thanks in advance!
 
  


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
Connection drops out, must reboot? tmpatrick Linux - Wireless Networking 6 03-03-2011 08:13 PM
Wired internet drops, requires reboot to restore Chibo Linux - Networking 7 04-07-2010 01:37 AM
Intel 3945: wireless suddenly drops speed Renan_S2 Linux - Networking 1 06-08-2009 02:45 PM
WD sata slow speed khaleel5000 Linux - Hardware 28 04-24-2008 08:55 AM
Slack drops 'route' after reboot. Manual config required - but why? fireman949 Linux - Networking 1 09-07-2005 01:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 09:04 AM.

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