Nux!


Home » Repos » Report a problem or request a package » hdparm v9.43 request
hdparm v9.43 request [message #857] Fri, 11 January 2013 20:39 Go to next message
MrNice is currently offline  MrNice
Messages: 108
Registered: December 2012
Location: Ireland
Senior Member
Hello,

Like this guy in the Centos forum https:// www.centos.org/modules/newbb/viewtopic.php?topic_id=39669&am p;forum=57&post_id=176025#forumpost176025, I have the same issue with the current Centos 6.3 version 9.16.
To fix the problem, the version 9.43 seems to be good.

Is it possible to get it in Stella?

Many thanks.

Re: hdparm v9.43 request [message #858 is a reply to message #857] Fri, 11 January 2013 21:13 Go to previous messageGo to next message
nux is currently offline  nux
Messages: 1650
Registered: January 2012
Senior Member
Administrator

Apparently I don't have access to read that post, perhaps you need to be registered or smth. Can you sum it up?

Anyway, we try _hard_ not to overwrite official Centos packages, so at best I could try to give you a backported package from Fedora that you can install individually.
Re: hdparm v9.43 request [message #859 is a reply to message #857] Fri, 11 January 2013 23:00 Go to previous messageGo to next message
nux is currently offline  nux
Messages: 1650
Registered: January 2012
Senior Member
Administrator

There you go, http://li.nux.ro/download/nux/tmp/hdparm/
Re: hdparm v9.43 request [message #868 is a reply to message #859] Mon, 14 January 2013 21:00 Go to previous messageGo to next message
MrNice is currently offline  MrNice
Messages: 108
Registered: December 2012
Location: Ireland
Senior Member
Many thanks nux, hdparm v9.43 is working fine now.

Unfortunately, I found out that I cant see if TRIM is working. No zeros after few hours.
Do you trust discard in fstab without any test?

Maybe I should open a new thread.
Re: hdparm v9.43 request [message #869 is a reply to message #857] Mon, 14 January 2013 23:15 Go to previous messageGo to next message
nux is currently offline  nux
Messages: 1650
Registered: January 2012
Senior Member
Administrator

Oh, right, so we're dealing with an SSD.
For that what I recommend is:
- ext4 with discard in fstab (yes, I trust it)
- 4k alignment (`fdisk -u -l` needs to start from 2048)
- leave some space unpartitioned (overpartitioning it's called I believe), usually if I have a 120 GB SSD I leave 10GB unpartitioned. Not sure if this feature is still doing any good with more recent, smarter devices, but I'd still do it.
Re: hdparm v9.43 request [message #871 is a reply to message #869] Tue, 15 January 2013 08:35 Go to previous messageGo to next message
MrNice is currently offline  MrNice
Messages: 108
Registered: December 2012
Location: Ireland
Senior Member
-Point 1 is OK
-Point 2 is OK but I have
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048     1026047      512000   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2         1026048   250068991   124521472   8e  Linux LVM

-Point 3, I never have read such thing. Maybe it was for "old" SSD.

I found this https://www.centos.org/modules/newbb/viewtopic.php?topic_id=38691
Three types of ouput by 'hdparm' seem possible:
1)
* Data Set Management TRIM supported
2)
* Data Set Management TRIM supported
* Deterministic read data after TRIM
3)
* Data Set Management TRIM supported
* Deterministic read ZEROs after TRIM

Your test works only for (3).

(2) is supposed to mean read back anything after TRIM but not the original data.

(1) I guess (as in your case) means you cannot count on anything to test.

EL6 kernels definitely support 'discard' with ext4.

But maybe there is no test at all for my SSD as the answer is 1)
I tried this test but I can't have the right pattern. I think it's because I have LVM.

Maybe I'll give up.
Re: hdparm v9.43 request [message #872 is a reply to message #857] Tue, 15 January 2013 22:02 Go to previous messageGo to next message
nux is currently offline  nux
Messages: 1650
Registered: January 2012
Senior Member
Administrator

I wouldn't worry too much. I know several people running SSDs with EL6 (Centos lead developer included) without any special preparations, except for "discard" in fstab.

About "Partition 1 does not end on cylinder boundary.", feel free to ignore it, it's just fdisk moaning. I get this error on every machine I installed Centos on. You can safely use (g)parted if you want to double check your partitioning.
Re: hdparm v9.43 request [message #887 is a reply to message #872] Sat, 19 January 2013 19:29 Go to previous message
MrNice is currently offline  MrNice
Messages: 108
Registered: December 2012
Location: Ireland
Senior Member
I just tried again "hdparm --read-sector xxxxxx /dev/sda" used previously to check the zeros after deleting a file. I did 2 different files.
After 4 days, I have full 0000 ... in the 2 files.

So, took his time but did the job Razz

TRIM is working.
Previous Topic: fluxbox request
Next Topic: opera update
Goto Forum:
  


Current Time: Sun Mar 24 17:02:24 GMT 2019

Total time taken to generate the page: 0.03698 seconds