linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ssd mode on rotational media
@ 2015-01-07 18:55 Kyle Gates
  2015-01-08 12:37 ` Austin S Hemmelgarn
  0 siblings, 1 reply; 2+ messages in thread
From: Kyle Gates @ 2015-01-07 18:55 UTC (permalink / raw)
  To: linux-btrfs@vger.kernel.org

What issues would arise if ssd mode is activated because of a block layer setting the rotational flag to zero? This happens for me running btrfs on bcache. Would it be beneficial to pass the no_ssd flag?
Thanks,
Kyle
 		 	   		  

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: ssd mode on rotational media
  2015-01-07 18:55 ssd mode on rotational media Kyle Gates
@ 2015-01-08 12:37 ` Austin S Hemmelgarn
  0 siblings, 0 replies; 2+ messages in thread
From: Austin S Hemmelgarn @ 2015-01-08 12:37 UTC (permalink / raw)
  To: Kyle Gates, linux-btrfs@vger.kernel.org

[-- Attachment #1: Type: text/plain, Size: 928 bytes --]

On 2015-01-07 13:55, Kyle Gates wrote:
> What issues would arise if ssd mode is activated because of a block layer setting the rotational flag to zero? This happens for me running btrfs on bcache. Would it be beneficial to pass the no_ssd flag?
> Thanks,
> Kyle
In theory, it would result in a greater degree of high-level 
fragmentation.  You should (in theory) get marginally better performance 
by using no_ssd (or using a udev rule to set rotational to 1, as the 
flag is writable).

Ideally, bcache shouldn't set the rotational flag to 0 unless the 
backing store (the big device that the cache is reading from) also has 
it set.

Also, ideally, we should be looking at the type of block device, not 
just whether the rotational flag is 0 or not, as there are a number of 
cases where rotational is 0 that enabling ssd will make things preform 
worse (Xen/Virtio block devices come immediately to mind).


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 2455 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-08 12:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-07 18:55 ssd mode on rotational media Kyle Gates
2015-01-08 12:37 ` Austin S Hemmelgarn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).