|Introduced||July 21, 2008 (DragonFly BSD 2.0)|
|Directory contents||B+ tree|
|Max. volume size||1 EiB|
|File system permissions||UNIX permissions|
|Data deduplication||On demand|
|Supported operating systems||DragonFly BSD|
HAMMER is a high-availability 64-bit file system developed by Matthew Dillon for DragonFly BSD using B-trees. Its major features include infinite NFS-exportable snapshots, master-multislave operation, configurable history retention, fsckless-mount, and checksums to deal with data corruption. HAMMER also supports data block deduplication, meaning that identical data blocks will be stored only once on a file system.
HAMMER file system provides configurable fine-grained and coarse-grained filesystem histories with online snapshots availability. Up to 65536 master (read-write) and slave (read-only) pseudo-filesystems (PFSs), with independent individual retention parameters and inode numbering, may be created for each file system; PFS may be mirrored to multiple slaves both locally or over network connection with near real-time performance. No file system checking is required on remount.
HAMMER supports volumes up to 1 EiB of storage capacity. File system supports CRC checksumming of data and metadata, online layout correction and data deduplication, and dynamic inodes allocation with effectively unlimited number of inodes.
Currently, regular maintenance is required for keeping file system clean and regaining space after file deletions. By default, a cron job is performing necessary actions on DragonFly BSD daily. HAMMER also does not support multi-master configurations yet.
The following performance-related improvements were introduced on July 2011:
- Increased disk read speed in certain scenarios by implementing pulse-width modulated time-domain multiplexer on B-Tree cursor operation
- Removed a deadlock stalling issue
- Improved read performance during heavy, concurrent file write operations
It was developed specifically for DragonFly BSD to provide a feature-rich yet better designed analogue of then increasingly popular ZFS.
As of June 2014[update], HAMMER2 file system is actively developed by Matthew Dillon, who initially planned to bring it up to minimal working state by July 2012 and ship the final version in 2013. During Google Summer of Code 2013 Daniel Flores implemented compression in HAMMER2 using LZ4 and ZLIB algorithms. On June 4, 2014 DragonFly 3.8.0 was released featuring support for HAMMER2, although the file system was said to be not ready for use.
- Larabel, Michael (2011-01-07). "Can DragonFlyBSD's HAMMER Compete With Btrfs, ZFS?". Phoronix. Retrieved 2014-05-26.
- Dillon, Matthew (2008-06-21). "THE HAMMER FILESYSTEM". Retrieved 2009-03-02.
- DragonFly File Formats Manual –
- Sherrill, Justin (2010-11-07). "Deduplication arrives". Retrieved 2011-11-28.
- Lorch, Daniel. "Porting the HAMMER File System to Linux". Retrieved 2011-11-28.
- "HAMMER". DragonFly BSD. Retrieved 2011-11-28.
- Vervloesem, Koen (2010-04-21). "DragonFly BSD 2.6: towards a free clustering operating system". LWN.net. Retrieved 2014-05-26.
- George, Siju (May 2014). "Working with Hammer File System and PFSes". BSD Magazine (Warsaw, Poland: Hakin9 Media SK) 8 (5): 18–23. Retrieved 2014-05-25.
- DragonFly System Maintenance and Operation Commands Manual –
- Kemp, Juliet (2008-08-04). "Tip of the Trade: Dragonfly BSD and the Hammer Filesystem". ServerWatch. Retrieved 2014-05-26.
- Dillon, Matthew (2011-07-22). "git: HAMMER VFS - Add code to reduce frontend vs flusher locking conflicts". commits mailing list. http://leaf.dragonflybsd.org/mailarchive/commits/2011-07/msg00086.html.
- Dillon, Matthew (2012-02-08). "DESIGN document for HAMMER2 (08-Feb-2012 update)". users mailing list. http://leaf.dragonflybsd.org/mailarchive/users/2012-02/msg00020.html.
- "Block compression feature in HAMMER2". GSoC 2013. Google. Retrieved 2014-06-05.
- "DragonFly Release 3.8". DragonFly BSD. 2014-06-04. Retrieved 2014-06-05.