DragonFly BSD
DragonFly commits List (threaded) for 2010-02
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: kernel - disklabel64 - Increase partition start alignment to 1 megabyte.


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 20 Feb 2010 10:17:50 -0800 (PST)

commit 4921cba1f62ca52955e529f9b60fa2fd23821d80
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Sat Feb 20 10:11:28 2010 -0800

    kernel - disklabel64 - Increase partition start alignment to 1 megabyte.
    
    * Someone suggested that instead of using a 32K alignment we use a larger
      alignment.  I forgot who suggested it but after thinking about it a bit
      and messing around with swapcache on a SSD I decided it was a good idea.
    
      SSDs using MLC flash have a physical block size of 128K.  SLC flash has
      a physical block size of 64K.  Most typical cluster operations in
      DragonFly are 64K to 128K but clustered writes are often linear on disk
      leading to larger linear writes from the point of view of the physical
      drive's write cache.
    
      swapcache and swap operation tends to have even larger write linearities
      and write amplification effects on SSDs can be reduced to better than 1:2
      (verses the 1:10 the vendor typically assumes).
    
    * Virgin disklabel64's layed down by the kernel will now align the
      start of the partition space to 1MB (1024 * 1024).  In for a penny,
      in for a pound.
    
    * Adjust the manual page and note the benefits of using a larger alignment,
      particularly when swapcache is used with SSDs.

Summary of changes:
 sbin/disklabel64/disklabel64.8 |   24 ++++++++++++++++++++++++
 sys/kern/subr_disklabel64.c    |   15 ++++++++++++++-
 2 files changed, 38 insertions(+), 1 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/4921cba1f62ca52955e529f9b60fa2fd23821d80


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]