LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
  Search this Thread
Old 02-01-2014, 07:01 PM   #1
apater
LQ Newbie
 
Registered: Feb 2014
Posts: 12

Rep: Reputation: Disabled
How to test hdd internal cache?


What tool(s) should I be using under linux to error test the internal cache of the hard drive? I looked at smartctl, hdparm and memtest, but if they can test the hdd cache, I am not seeing it.

Is there some other tool I can use?

Last edited by apater; 02-03-2014 at 10:31 AM. Reason: clarification: test for hw errors
 
Old 02-02-2014, 05:30 AM   #2
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Welcome to LQ !

With hdparm you can find out about the cache with the following command:
Code:
hdparm -tT /dev/sda
To find out SATA hard disk speed:
Code:
hdparm -I /dev/sda | grep -i speed
If sda doesn't work for you, then just substitute for the correct device.
For more info on hdparm use the manual:
Code:
man hdparm
Cheers

Last edited by ukiuki; 02-02-2014 at 05:32 AM.
 
1 members found this post helpful.
Old 02-03-2014, 07:16 AM   #3
apater
LQ Newbie
 
Registered: Feb 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
testing for errors / failure

Thanks!

I need to clarify the question.

How do I test the hdd cache for errors, or to see if the cache is gone bad?
 
Old 02-03-2014, 10:11 AM   #4
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,726

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
Quote:
Originally Posted by ukiuki View Post
Welcome to LQ !

With hdparm you can find out about the cache with the following command:
Code:
hdparm -tT /dev/sda
To find out SATA hard disk speed:
Code:
hdparm -I /dev/sda | grep -i speed
If sda doesn't work for you, then just substitute for the correct device.
For more info on hdparm use the manual:
Code:
man hdparm
Cheers
great set of codes and use of hdparm. many thanks.
 
1 members found this post helpful.
Old 02-04-2014, 09:02 PM   #5
apater
LQ Newbie
 
Registered: Feb 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
Perhaps some detail on why I want to test the cache hw is in order.

After using the system for a somewhat random amount of time, the whole system bogs down. Running hdparm -T shows a huge drop in performance. I'm trying to figure out what is going on.

Normal:
Quote:
~$ sudo hdparm -T /dev/sda

Timing cached reads: 1810 MB in 2.00 seconds = 905.82 MB/sec
Broken:
Quote:
~$ sudo hdparm -T /dev/sda

Timing cached reads: 156 MB in 2.01 seconds = 77.80 MB/sec
Anyone seen anything similiar? I've tried dozens of different kernels, all versions of Ubuntu from 12.04 to 14.04, different UI's (Unity, Gnome, LXDE), but they all eventually display the issue.
 
  


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
Booting Problem. Windows and ubuntu on internal hdd. Centos on External USB hdd faisal59 Linux - Distributions 1 07-17-2013 08:19 AM
[SOLVED] Fedora installed on USB HDD doesn't start when the internal HDD is connected DavidBrenner Linux - Newbie 18 05-05-2013 09:46 PM
[SOLVED] How do I copy root the file system of an internal hdd to a usb hdd completelinuxnube Slackware 8 08-06-2012 02:22 PM
Slow USB transfer rates (60kb p/s) External HDD --> Internal HDD drfrostbyte Linux - Hardware 4 03-28-2011 01:20 AM
I installed ubuntu 9.04 to my Maxtor external hdd. I have no internal hdd. I can boot dont33 Linux - Newbie 1 08-13-2009 04:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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