All of lore.kernel.org
 help / color / mirror / Atom feed
* ssd option for USB flash drive?
@ 2011-05-17 22:02 Stephane Chazelas
  2011-05-19 19:04 ` Hubert Kario
  0 siblings, 1 reply; 7+ messages in thread
From: Stephane Chazelas @ 2011-05-17 22:02 UTC (permalink / raw)
  To: linux-btrfs

Hiya,

I've not found much detail on what the "ssd" btrfs mount option
did. Would it make sense to enable it to a fs on a USB flash
drive?

I'm using btrfs (over LVM) on a Live Linux USB stick to benefit
from btrfs's compression and am trying to improve the
performance.

Would anybody have any recommendation on how to improve
performance there? Like what would be the best way to
enable/increase writeback buffer or any way to make sure writes
are delayed and asynchronous? Would disabling read-ahead help?
(at which level would it be done?). Any other tip (like
disabling atime, aligning blocks/extents, figure out erase block
sizes if relevant...)?

Many thanks in advance,
Stephane

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

* Re: ssd option for USB flash drive?
  2011-05-17 22:02 ssd option for USB flash drive? Stephane Chazelas
@ 2011-05-19 19:04 ` Hubert Kario
  2011-05-19 19:53   ` Hubert Kario
  2011-05-19 21:47   ` Stephane Chazelas
  0 siblings, 2 replies; 7+ messages in thread
From: Hubert Kario @ 2011-05-19 19:04 UTC (permalink / raw)
  To: Stephane Chazelas; +Cc: linux-btrfs

[-- Attachment #1: smime.p7m --]
[-- Type: application/pkcs7-mime, Size: 5451 bytes --]

MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwGggCSABIIG
jUNvbnRlbnQtVHlwZTogVGV4dC9QbGFpbjsNCiAgY2hhcnNldD0iaXNvLTg4NTktMSINCkNvbnRl
bnQtVHJhbnNmZXItRW5jb2Rpbmc6IHF1b3RlZC1wcmludGFibGUNCg0KT24gV2VkbmVzZGF5IDE4
IG9mIE1heSAyMDExIDAwOjAyOjUyIFN0ZXBoYW5lIENoYXplbGFzIHdyb3RlOg0KPiBIaXlhLA0K
Pj0yMA0KPiBJJ3ZlIG5vdCBmb3VuZCBtdWNoIGRldGFpbC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kqT8q26VLdiSoHY0vikw+oxqdgmTm8dicjBi+ajvkonqDP3d2sm+
yqpOld0+2HvEzYrPxCzg85H5WWCmTjR+bgbb04gFWi0e7P6XhGysv5O7TJTFOkZ4WnKM6QqUrpSa
M9PC4eR7MYICHjCCAhoCAQEwXTBRMSowKAYDVQQLDCFRQlMgQ2xhc3MgMyBDZXJ0aWZpY2F0ZSBB
dXRob3JpdHkxFjAUBgNVBAoMDVFCUyBKYW4gS3ViYW4xCzAJBgNVBAYTAlBMAghgRNYwzIbzHzAN
BglghkgBZQMEAgEFAKCBkzAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcBMBwGCSqGSIb3DQEJBTEP
Fw0xMTA1MTkxOTA0NTVaMCgGCSqGSIb3DQEJDzEbMBkwCwYJYIZIAWUDBAECMAoGCCqGSIb3DQMH
MC8GCSqGSIb3DQEJBDEiBCBkXfVNESLSWFdkBgMB3fW0zS2M6TWmt3V2nbxUsHEgEjANBgkqhkiG
9w0BAQEFAASCAQAxmupWuvLpLnm8RTEME9hECDjN89WGaIB+SPQ+lDHaxJ7NZQFv5d6wUX9BsWcb
A/Sp4QA/vjz1HUhSdauoKlDVb0QjGudjo2POa4+JH5gV63OzvDNNkIM/KX+g6i+1K796YEk42W6W
bynvboIYDtChcVnRYVFn8vlkTSb94AN+loLHEhCA+uwjSoaJLvpvDUmkwDZg89+jI8HqvrpMvxP5
gEw0vrVVdhXVaYbsX7POUzSQVquwEhO/lvK4V7wkeBwnGg7fOAQ/KIC3Ay9YttZX1E5dD3aGACR5
G7BaviWXAT7RkiK91nHqhVBZNGnlVl7OCerha5GYJMp58OE5EETQAAAAAAAA

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

* Re: ssd option for USB flash drive?
  2011-05-19 19:04 ` Hubert Kario
@ 2011-05-19 19:53   ` Hubert Kario
  2011-05-19 21:47   ` Stephane Chazelas
  1 sibling, 0 replies; 7+ messages in thread
From: Hubert Kario @ 2011-05-19 19:53 UTC (permalink / raw)
  To: Stephane Chazelas; +Cc: linux-btrfs

Sorry, loks like list mailer doesn't like SMIME messages.

On Thursday 19 of May 2011 21:04:54 Hubert Kario wrote:
> On Wednesday 18 of May 2011 00:02:52 Stephane Chazelas wrote:
> > Hiya,
> >=20
> > I've not found much detail on what the "ssd" btrfs mount option
> > did. Would it make sense to enable it to a fs on a USB flash
> > drive?
>=20
> yes, enabling discard is pointless though (no USB storage supports it
> AFAIK).
>=20
> > I'm using btrfs (over LVM) on a Live Linux USB stick to benefit
> > from btrfs's compression and am trying to improve the
> > performance.
>=20
> ssd mode won't improve performance by much (if any).
>=20
> You need to remember that USB2.0 is limited to about 20-30MiB/s (depe=
nding
> on CPU) so it will be slow no matter what you do
>=20
> > Would anybody have any recommendation on how to improve
> > performance there? Like what would be the best way to
> > enable/increase writeback buffer or any way to make sure writes
> > are delayed and asynchronous? Would disabling read-ahead help?
> > (at which level would it be done?). Any other tip (like
> > disabling atime, aligning blocks/extents, figure out erase block
> > sizes if relevant...)?
>=20
> aligning logical blocks to erase blocks can give some performance but=
 the
> only way to make it really fast is not to use USB
>=20
> > Many thanks in advance,
> > Stephane

--=20
Hubert Kario
QBS - Quality Business Software
02-656 Warszawa, ul. Ksawer=F3w 30/85
tel. +48 (22) 646-61-51, 646-74-24
www.qbs.com.pl
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" =
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: ssd option for USB flash drive?
  2011-05-19 19:04 ` Hubert Kario
  2011-05-19 19:53   ` Hubert Kario
@ 2011-05-19 21:47   ` Stephane Chazelas
  2011-05-19 21:54     ` cwillu
  1 sibling, 1 reply; 7+ messages in thread
From: Stephane Chazelas @ 2011-05-19 21:47 UTC (permalink / raw)
  To: Hubert Kario; +Cc: linux-btrfs

2011-05-19 21:04:54 +0200, Hubert Kario:
> On Wednesday 18 of May 2011 00:02:52 Stephane Chazelas wrote:
> > Hiya,
> > 
> > I've not found much detail on what the "ssd" btrfs mount option
> > did. Would it make sense to enable it to a fs on a USB flash
> > drive?
> 
> yes, enabling discard is pointless though (no USB storage supports it AFAIK).
>  
> > I'm using btrfs (over LVM) on a Live Linux USB stick to benefit
> > from btrfs's compression and am trying to improve the
> > performance.
> 
> ssd mode won't improve performance by much (if any).
> 
> You need to remember that USB2.0 is limited to about 20-30MiB/s (depending on 
> CPU) so it will be slow no matter what you do

Thanks Hubert for the feedback.

Well, for hard drives over USB, I can get to 40MiB/s read and
write easily. Here, I believe the bottle neck is the flash
memory. With that particular USB flash drive Corsair Voyager GT
16GB, I can get 25MiB/s sequential read and 17MiB/s sequential
write, but that falls down to about 3-5MiB/s random write.

[...]
> aligning logical blocks to erase blocks can give some performance but the only 
> way to make it really fast is not to use USB
[...]

For something that fits in your pocket and is almost
universally bootable, there are not so many other options.

I tried changing the alignment on FAT32 and it didn't make
any difference. Playing with /proc/sys/vm/block_dump, I could see
chunks of 3, 4, 5 data sectors being written at once regardless
of the cluster size being used anyway. Interestingly when a user
process writes to /dev/sdx, block_dump shows 4k writes to
/dev/sdx only regardless of the size of the user writes while if
it goes via the filesystem I can see writes of up to 120k. Also,
I've very little knowledge of what happens at layers below the
block device (scsi interface, usb-storage, and the device
controller itself, for instance, I see
/sys/block/sdi/queue/rotational is 1 for that usb stick, why,
what does that mean in terms of performance and scheduling of
read-writes?)

I wonder now what credit to give to recommendations like in
http://www.patriotmemory.com/forums/showthread.php?3696-HOWTO-Increase-write-speed-by-aligning-FAT32
http://linux-howto-guide.blogspot.com/2009/10/increase-usb-flash-drive-write-speed.html

Doing a apt-get upgrade on that stick takes hours when the same
takes a few minutes on an internal drive.

If I boot a kvm virtual machine on that USB stick with a disk
cache mode of "unsafe", that is writes are hardly every flushed
to underlying storage, then that becomes lightning fast (at the
expense of possibly losing data in case of host failure, but I'm
not too worried about that), and flushing writes to device
upon VM shutdown only takes a couple of minutes.

So I figured that if I could make sure writing to the flash
device is asynchronous (and reads priviledged), that would help.

There's probably some solutions with aufs or some fuse
solutions, but I thought there might be some solution in btrfs
or some standard core layers usually underneath it.

-- 
Stephane

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

* Re: ssd option for USB flash drive?
  2011-05-19 21:47   ` Stephane Chazelas
@ 2011-05-19 21:54     ` cwillu
  2011-05-19 22:12       ` Stephane Chazelas
  0 siblings, 1 reply; 7+ messages in thread
From: cwillu @ 2011-05-19 21:54 UTC (permalink / raw)
  To: Stephane Chazelas; +Cc: Hubert Kario, linux-btrfs

> [...]
>> aligning logical blocks to erase blocks can give some performance but the only
>> way to make it really fast is not to use USB
> [...]
>
> For something that fits in your pocket and is almost
> universally bootable, there are not so many other options.

An ssd drive in a USB enclosure is about the size of a cell phone,
just a thought.

> I tried changing the alignment on FAT32 and it didn't make
> any difference. Playing with /proc/sys/vm/block_dump, I could see
> chunks of 3, 4, 5 data sectors being written at once regardless
> of the cluster size being used anyway. Interestingly when a user
> process writes to /dev/sdx, block_dump shows 4k writes to
> /dev/sdx only regardless of the size of the user writes while if
> it goes via the filesystem I can see writes of up to 120k. Also,
> I've very little knowledge of what happens at layers below the
> block device (scsi interface, usb-storage, and the device
> controller itself, for instance, I see
> /sys/block/sdi/queue/rotational is 1 for that usb stick, why,
> what does that mean in terms of performance and scheduling of
> read-writes?)

Try with the "ssd_spread" mount option.

> I wonder now what credit to give to recommendations like in
> http://www.patriotmemory.com/forums/showthread.php?3696-HOWTO-Increase-write-speed-by-aligning-FAT32
> http://linux-howto-guide.blogspot.com/2009/10/increase-usb-flash-drive-write-speed.html
>
> Doing a apt-get upgrade on that stick takes hours when the same
> takes a few minutes on an internal drive.

Also, there's a package "libeatmydata" which will provide an
"eatmydata" command, which you can prefix your apt-get commands with.
This will disable the excessive sync calls that dpkg makes, and should
dramatically decrease the time for those sorts of things to finish.
Flash as found in thumb drives doesn't have much in the way of crash
guarantees anyway, so you're not really giving up much safety.

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

* Re: ssd option for USB flash drive?
  2011-05-19 21:54     ` cwillu
@ 2011-05-19 22:12       ` Stephane Chazelas
  2011-05-19 22:19         ` cwillu
  0 siblings, 1 reply; 7+ messages in thread
From: Stephane Chazelas @ 2011-05-19 22:12 UTC (permalink / raw)
  To: cwillu; +Cc: Hubert Kario, linux-btrfs

2011-05-19 15:54:23 -0600, cwillu:
[...]
> Try with the "ssd_spread" mount option.
[...]

Thanks. I'll try that.

> > I wonder now what credit to give to recommendations like in
> > http://www.patriotmemory.com/forums/showthread.php?3696-HOWTO-Increase-write-speed-by-aligning-FAT32
> > http://linux-howto-guide.blogspot.com/2009/10/increase-usb-flash-drive-write-speed.html
> >
> > Doing a apt-get upgrade on that stick takes hours when the same
> > takes a few minutes on an internal drive.
> 
> Also, there's a package "libeatmydata" which will provide an
> "eatmydata" command, which you can prefix your apt-get commands with.
> This will disable the excessive sync calls that dpkg makes, and should
> dramatically decrease the time for those sorts of things to finish.
> Flash as found in thumb drives doesn't have much in the way of crash
> guarantees anyway, so you're not really giving up much safety.

Thanks. That's very useful indeed.

Note that if you use that on aptitude/apg-get that means that
the daemons started/restarted in the process will be affected,
but it could be all the better in my case.

Now, with that eatmydata, I'm thinking of trying qemu-nbd -c
/dev/nbd0 /dev/mapper/original-device with that and have the
rootfs mounted on that /dev/nbd0.

That eatmydata could be a work around to the problem I was
mentionning at
https://lists.ubuntu.com/archives/ubuntu-server-bugs/2010-June/037846.html

-- 
Stephane

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

* Re: ssd option for USB flash drive?
  2011-05-19 22:12       ` Stephane Chazelas
@ 2011-05-19 22:19         ` cwillu
  0 siblings, 0 replies; 7+ messages in thread
From: cwillu @ 2011-05-19 22:19 UTC (permalink / raw)
  To: Stephane Chazelas; +Cc: Hubert Kario, linux-btrfs

On Thu, May 19, 2011 at 4:12 PM, Stephane Chazelas
<stephane_chazelas@yahoo.fr> wrote:
> 2011-05-19 15:54:23 -0600, cwillu:
> [...]
>> Try with the "ssd_spread" mount option.
> [...]
>
> Thanks. I'll try that.
>
>> > I wonder now what credit to give to recommendations like in
>> > http://www.patriotmemory.com/forums/showthread.php?3696-HOWTO-Increase-write-speed-by-aligning-FAT32
>> > http://linux-howto-guide.blogspot.com/2009/10/increase-usb-flash-drive-write-speed.html
>> >
>> > Doing a apt-get upgrade on that stick takes hours when the same
>> > takes a few minutes on an internal drive.
>>
>> Also, there's a package "libeatmydata" which will provide an
>> "eatmydata" command, which you can prefix your apt-get commands with.
>> This will disable the excessive sync calls that dpkg makes, and should
>> dramatically decrease the time for those sorts of things to finish.
>> Flash as found in thumb drives doesn't have much in the way of crash
>> guarantees anyway, so you're not really giving up much safety.
>
> Thanks. That's very useful indeed.
>
> Note that if you use that on aptitude/apg-get that means that
> the daemons started/restarted in the process will be affected,
> but it could be all the better in my case.

Heh, that's a thought I hadn't actually considered :p

That shouldn't affect any services that are managed by message
passing, and so really should be limited to those services from
/etc/init.d/ that don't restart themselves (i.e., where the restart
command is implemented by stop + start rather than telling the already
running process to re-execute), or newly installed services that again
are managed via /etc/init.d/.

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

end of thread, other threads:[~2011-05-19 22:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-17 22:02 ssd option for USB flash drive? Stephane Chazelas
2011-05-19 19:04 ` Hubert Kario
2011-05-19 19:53   ` Hubert Kario
2011-05-19 21:47   ` Stephane Chazelas
2011-05-19 21:54     ` cwillu
2011-05-19 22:12       ` Stephane Chazelas
2011-05-19 22:19         ` cwillu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.