Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: TRIM/discard response
PostPosted: Sat May 11, 2013 2:02 pm 
Offline
Senior Newbie

Joined: Sat May 11, 2013 1:54 pm
Posts: 6
Just curious, but does having my OS issue discards/trim/etc have any impact on the substrate underneath the vm?

I'm just curious if being diligent about issuing discards is in any way helpful for the infrastructure.


Top
   
PostPosted: Sat May 11, 2013 3:53 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Linode doesn't use SSD so no.

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
PostPosted: Sat May 11, 2013 4:09 pm 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
Also, the 'disks' on your VM are just files on the underlying host filesystem.

_________________
/ Peter


Top
   
PostPosted: Sat May 11, 2013 8:43 pm 
Online
Senior Member

Joined: Wed May 13, 2009 1:18 am
Posts: 681
pclissold wrote:
Also, the 'disks' on your VM are just files on the underlying host filesystem.

Is that actually the case? While I don't have any specific knowledge either way, for my part I always assumed that the guest block devices were implemented as logical volumes (probably via lvm) on top of the RAID array made out of physical devices and/or partitions on the host. So not based on actual files in the host's own filesystem, although obviously the host has access to the device(s) backing the guests.

-- David


Top
   
PostPosted: Sun May 12, 2013 8:12 am 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
db3l wrote:
… I always assumed that the guest block devices were implemented as logical volumes (probably via lvm) on top of the RAID array made out of physical devices and/or partitions on the host. So not based on actual files in the host's own filesystem, although obviously the host has access to the device(s) backing the guests.


Yes, I believe your explanation is correct. My answer was quick, over simplified and wrong.

_________________
/ Peter


Top
   
PostPosted: Sun May 12, 2013 9:31 am 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
Well, an LV is still a file if you look at it in a certain manner :-)

_________________
Rgds
Stephen
(Linux user since kernel version 0.11)


Top
   
PostPosted: Thu Apr 30, 2015 3:42 am 
Offline

Joined: Thu Apr 30, 2015 3:31 am
Posts: 1
Well, now that linode does use SSD, do we need to explicitely handle the trim/discard issue ourselves or is it performed at a lower level?

On my physical servers with SSD I just call daily a "fstrim /" in the root crontab.
However, on my newly created linode (Debian 8 + latest 64bit kernel, that I assume is on SSD), I get:

# fstrim /
fstrim: /: the discard operation is not supported

# lsblk -D
NAME DISC-ALN DISC-GRAN DISC-MAX DISC-ZERO
xvda 0 0B 0B 0
xvdb 0 0B 0B 0

Am I correct in thinking that linodes uses SSDs physically but we do not see them as such? so we do not need to handle trim/discard ourselves.


Top
   
PostPosted: Thu Apr 30, 2015 10:52 pm 
Offline
Senior Member

Joined: Fri Jan 09, 2009 5:32 pm
Posts: 634
colas wrote:
Am I correct in thinking that linodes uses SSDs physically but we do not see them as such? so we do not need to handle trim/discard ourselves.


I would presume that's correct. There's a RAID controller and a Xen hypervisor between your linode and the SSD, you see a logical disk.


Top
   
PostPosted: Fri Jun 12, 2015 8:44 am 
Offline
Newbie

Joined: Sun Jun 07, 2015 1:22 pm
Posts: 2
The TRIM *could* usefully be passed through (with LBA translation) to the virtual io to the raid, and then to the SSD drive. However, the error indicates that the passthrough is not currently supported.


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