ssd trim for kernel 2.6.32-279.9.1.el6.x86_64

Issues related to hardware problems
Post Reply
mhtan88
Posts: 3
Joined: 2012/11/08 15:11:40

ssd trim for kernel 2.6.32-279.9.1.el6.x86_64

Post by mhtan88 » 2012/11/08 15:16:11

hi all,
my ssd always hang or I/O error after 4 ~ 5 days. i suspect is the trim support. before that,
with SWAP space enabled. every 1 ~ 2 days. after i disabled swap. it can last longer, sometimes
2 weeks, sometimes 5 days. i read a lot article, saying that, the trim support is 2.6.33.
but, latest centos is only 2.6.32. any way to solve this issue?
it is running OpenEdge Progress Database.


Regards,
MH

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

ssd trim for kernel 2.6.32-279.9.1.el6.x86_64

Post by TrevorH » 2012/11/08 16:32:51

The way to find out if it is TRIM support or not is to remove the option "discard" from the /etc/fstab entries. Without this present, trim is not used.

While the CentOS kernel may only report itself as 2.6.32, there are huge numbers of backports applied to the code within it that bring features from much more recent kernels back to the 2.6.32 line. Since TRIM is officially supported on CentOS 6, you should assume that RH have backported all the necessary fixes for it to work properly.

What SSD are you using and does it have the latest firmware?

mhtan88
Posts: 3
Joined: 2012/11/08 15:11:40

Re: ssd trim for kernel 2.6.32-279.9.1.el6.x86_64

Post by mhtan88 » 2012/11/08 21:31:47

hi there,

thanks for the reply. but, i read a lot article, they said, be make sure your kernal is 2.6.33+ before apply discard in /etc/fstab,
else, it might caused data lost, that 's why i'm waiting for 2.6.33+. did CentOS 6 officially announced that they are supported ssd trim?

i' m using 6.3 CentOS 64bit with Ext4.

Regards,
MH

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: ssd trim for kernel 2.6.32-279.9.1.el6.x86_64

Post by TrevorH » 2012/11/09 00:14:36

Redhat kernel features often bear no relation to mainline kernels. Redhat are one of the main contributors to the mainline kernel and you will find features are often backported by RH to their distro kernels. The [url=https://access.redhat.com/security/updates/backporting/?sc_cid=3093]page here about backporting[/url] might help to clarify this.

CentOS/RHEL 6 will have a 2.6.32 kernel for the entire 10 year lifetime of the distro until 2020. You will not see a kernel with a higher version number until RHEL 7 appears and then it will not appear in CentOS 6.

The link you seem to be missing is https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/newmds-ssdtuning.html

mhtan88
Posts: 3
Joined: 2012/11/08 15:11:40

Re: ssd trim for kernel 2.6.32-279.9.1.el6.x86_64

Post by mhtan88 » 2012/11/09 16:10:59

thanks for the information. :-)

Post Reply