HAMMER (file system)

From HandWiki
Short description: File system from DragonFly BSD
HAMMER
Developer(s)Matthew Dillon
Full nameHAMMER
IntroducedJuly 21, 2008; 15 years ago (2008-07-21) with DragonFly BSD 2.0[1][2]
Structures
Directory contentsModified B+ tree[3]
Limits
Max. volume size1 EiB[3]
Features
ForksNo
File system permissionsUNIX permissions
Transparent compressionYes[4]
Data deduplicationOn demand
Other
Supported operating systemsDragonFly 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.[5] HAMMER also supports data block deduplication, meaning that identical data blocks will be stored only once on a file system.[6] A successor, HAMMER2, was announced in 2011 and became the default in Dragonfly 5.2 (April 2018).[7]

Features

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 file systems (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.[5][8][9][10]

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 an effectively unlimited number of inodes.[8][11][12]

Limitations

Currently,[when?] regular maintenance is required to keep the file system clean and regain space after file deletions. By default, a cron job performs the necessary actions on DragonFly BSD daily. HAMMER does not support multi-master configurations.[8][10]

Performance

HAMMER is optimized to reduce the number of physical I/O operations to cover the most likely path,[13] ensuring sequential access for optimal performance.

The following performance-related improvements were introduced in 2011:[14]

  • 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

Development

HAMMER was developed specifically for DragonFly BSD to provide a feature-rich yet better designed analogue[according to whom?] of the then increasingly popular ZFS.

HAMMER was declared production-ready with DragonFly 2.2 in 2009;[9] in 2012, design-level work shifted onto HAMMER2, which was declared stable with DragonFly 5.2 in 2018.

(As of 2019), HAMMER is now often referred to as HAMMER1 to avoid confusion with HAMMER2, although an official renaming has not happened. Both filesystems are independent of each other due to different on-disk formats,[15][16] and continue to receive separate updates and improvements independently.[17]

See also

References

  1. "В состав DragonFlyBSD 2.0 будет включена файловая система HAMMER" (in ru). 2007-10-14. https://www.linux.org.ru/news/bsd/2202377. 
  2. Larabel, Michael (7 January 2011). "Can DragonFlyBSD's HAMMER Compete With Btrfs, ZFS?". Phoronix. https://www.phoronix.com/scan.php?page=article&item=dragonfly_hammer&num=1. 
  3. 3.0 3.1 Dillon, Matthew (21 June 2008). "THE HAMMER FILESYSTEM". http://www.dragonflybsd.org/hammer/hammer.pdf. 
  4. "HAMMER2 File-System Now Uses LZ4 Compression By Default - Phoronix". https://www.phoronix.com/scan.php?page=news_item&px=HAMMER2-LZ4-Default. 
  5. 5.0 5.1 hammer(5) – DragonFly BSD File Formats Manual
  6. Sherrill, Justin (7 November 2010). "Deduplication arrives". http://www.shiningsilence.com/dbsdlog/2010/11/07/6740.html. 
  7. Dillon, Matthew (11 May 2011). "HAMMER2 announcement". users (Mailing list).
  8. 8.0 8.1 8.2 "HAMMER". DragonFly BSD. http://www.dragonflybsd.org/hammer/. 
  9. 9.0 9.1 Vervloesem, Koen (21 April 2010). "DragonFly BSD 2.6: towards a free clustering operating system". LWN.net. https://lwn.net/Articles/384200/. 
  10. 10.0 10.1 George, Siju (May 2014). "Working with Hammer File System and PFSes". BSD Magazine (Warsaw, Poland: Hakin9 Media SK) 8 (5): 18–23. http://bsdmag.org/system/articles/attachment1s/15222/original/BSD_05_2014.pdf. Retrieved 2014-05-25. 
  11. hammer(8) – DragonFly BSD System Maintenance and Operation Commands Manual
  12. Kemp, Juliet (4 August 2008). "Tip of the Trade: Dragonfly BSD and the Hammer Filesystem". ServerWatch. http://www.serverwatch.com/article.php/3763031. 
  13. Jeremy Andrews (2007-10-14). "HAMMER Performance". http://kerneltrap.org/DragonFlyBSD/HAMMER_Performance. 
  14. Dillon, Matthew (22 July 2011). "git: HAMMER VFS - Add code to reduce frontend vs flusher locking conflicts". commits (Mailing list).
  15. Matthew Dillon (2017-09-23). "hammer_disk.h". DragonFly BSD. http://bxr.su/d/sys/vfs/hammer/hammer_disk.h. 
  16. Matthew Dillon (2018-05-05). "hammer2_disk.h". DragonFly BSD. http://bxr.su/d/sys/vfs/hammer2/hammer2_disk.h. 
  17. Matthew Dillon (2017-03-27). "git: hammer - HAMMER Version 7". commits@DragonFly (Mailing list). Retrieved 2019-03-06.

External links