Tuning ZFS for the F5100

Tuning ZFS for the F5100 Storage Array

Solaris Procedure

The following best practices are recommended in order to achieve optimal
performance of ZFS on the F5100 storage array.

  • Disable metadata compression by adding the following entry to /etc/system:
        set zfs:zfs_mdcomp_disable = 1
    
  • Disable cache flushing by adding the following entry to /etc/system.
    (The F5100 has built-in supercapacitors that provide enough power to
    ensure time to flush all device caches in the event of a power failure.)
        set zfs:zfs_nocacheflush = 1
    
  • Identify the device for the ZFS intent log
    • Consider using a fast disk-based device for the ZFS intent log if one is available.
    • If no such device is available, segment a separate pool of F5100 FMods and specify
      as the log device.
  • Record Size
    Large performance gains can be realized by reducing the default recordsize used
    by ZFS, particularly when running database workloads. The ZFS recordsize should
    match the database recordsize. Note that the recordsize setting must be in place
    prior to when data is loaded on zfs. Additional reading on this subject may be
    found at http://blogs.sun.com/roch/entry/tuning_zfs_recordsize. The following
    example illustrates how to set the recordsize to 16k:
        zfs set recordsize=16k mypool/myfs
    
  • Device IO Queue Size
    The following parameter should be set in the /etc/system file:
        set zfs:zfs_vdev_max_pending = 8
    

Additional Information

Additional information and background may be found here: http://www.solarisinternals.com/wiki/index.php/ZFS_Evil_Tuning_Guide.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Sign up or Log in to add a comment or watch this page.


The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact