Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Trim on KVM Linode
PostPosted: Thu Jun 25, 2015 2:22 am 
Offline
Newbie

Joined: Thu Jun 25, 2015 1:00 am
Posts: 2
Hello,

I've been doing some testing with a kvm linode and it appears that Trim is enabled. (Ubuntu 14.04.2 LTS - 4.0.5-x86_64-linode58)

I'm wondering given the issues with ssd firmware lately (Algolia blog) with queued trim (and possibly non-queued trim) does linode officially support the use of trim? Does Linode use ssds with firmware that isn't known to have issues with trim? (Linux queued trim blacklist)


Code:
sudo fstrim -v /
/: 265691136 bytes were trimmed

cat /sys/block/sda/queue/discard_granularity
4096


discard_granularity (RO)
-----------------------
This shows the size of internal allocation of the device in bytes, if
reported by the device. A value of '0' means device does not support
the discard functionality.

Code:
cat /sys/block/sda/queue/discard_max_bytes
1073741824


discard_max_bytes (RO)
----------------------
Devices that support discard functionality may have internal limits on
the number of bytes that can be trimmed or unmapped in a single operation.
The discard_max_bytes parameter is set by the device driver to the maximum
number of bytes that can be discarded in a single operation. Discard
requests issued to the device must not exceed this limit. A discard_max_bytes
value of 0 means that the device does not support discard functionality.

Code:
cat /sys/block/sda/queue/discard_zeroes_data
0


discard_zeroes_data (RO)
------------------------
When read, this file will show if the discarded block are zeroed by the
device or not. If its value is '1' the blocks are zeroed otherwise not.

(/sys/block qutoes from here)


Top
   
 Post subject: Re: Trim on KVM Linode
PostPosted: Mon Aug 03, 2015 2:49 pm 
Offline
Newbie

Joined: Thu Jun 25, 2015 1:00 am
Posts: 2
I just wanted to post an update, it looks like the data corruption bug Algolia reported in their blog is actually a Linux kernel bug. A patch addressing the root cause of the issue has been made available. (See Slashdot post) It seems that only Linux software raid (raid 0 and raid 10) were affected.

However still doesn't address the issue of buggy NCQ trim firmware but, drives that are known to exhibit issues have this feature disabled in the driver.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group