[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ubuntu-devel
Subject:    Re: Creating Ubuntu USB sticks
From:       Stefan Bader <stefan.bader () canonical ! com>
Date:       2015-01-26 18:54:30
Message-ID: 54C68D66.40400 () canonical ! com
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On 26.01.2015 17:49, Phillip Susi wrote:
> On 1/22/2015 10:22 AM, Stefan Bader wrote:
>> That is the expected behaviour with that incantation. If you added
>> a "oflag=sync" dd should return only after write has finished. In
>> your case you use cached writes.
> 
> oflag=sync is terrible and should never be used as it does the
> equivalent of fsync() after every single write().  Not only does this
> cause terrible performance, but in the case of flash, will wear it out
> much more.  Use conv=fsync instead to fsync() once, at the end.

You are right, as long as one does not also use bs=1M (for example). Which I
should have added. I usually add that without thinking, so I forgot. Which
causes bigger write sizes, so the performance is good. That blocksize should
also cover multiple erase blocks, so the wearout is no worse than with
conv=fsync (where the blocklayer may merge the defaul 512b request if no bs is
given).



["signature.asc" (application/pgp-signature)]

-- 
ubuntu-devel mailing list
ubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic