August 9th, 2008 . by BSD Blog
“As of now there are no known bugs, though I’m sure that will change as more DragonFly users start using the filesystem :-)”
Posted in DragonFlyBSD | No Comments »
August 7th, 2008 . by BSD Blog
“The big advantage Hammer has over Tux3 is, it is up and running and released in the Dragonfly distro,” began Daniel Phillips, offering a comparison between the two filesystem. He continued, “the biggest disadvantage is, it runs on BSD, not Linux, and it so heavily implements functionality that is provided by the VFS and block layer in Linux that a port would be far from trivial. It will likely happen eventually, but probably in about the same timeframe that we can get Tux3 up and stable.” This led into a lengthy and interesting technical discussion between Daniel and HAMMER author Matthew Dillon, comparing the design of the two filesystems.
Matthew reviewed the Tux3 notes and replied, “it sounds like Tux3 is using many similar ideas [as HAMMER]. I think you are on the right track. I will add one big note of caution, drawing from my experience implementing HAMMER, because I think you are going to hit a lot of the same issues. I spent 9 months designing HAMMER and 9 months implementing it. During the course of implementing it I wound up throwing away probably 80% of the original design outright.” Daniel noted that he’s been working on the Tux3 design for around ten years, “and working seriously on the simplifying elements for the last three years or so, either entirely on paper or in related work like ddsnap and LVM3.” Matthew cautioned, “I can tell you’ve been thinking about Tux for a long time. If I had one worry about your proposed implementation it would be in the area of algorithmic complexity. You have to deal with the in-memory cache, the log, the B-Tree, plus secondary indexing for snapshotted elements and a ton of special cases all over the place. Your general lookup code is going to be very, very complex. My original design for HAMMER was a lot more complex (if you can believe it!) then the end result. A good chunk of what I had to do going from concept to reality was deflate a lot of that complexity.” The friendly conversation offers a very detailed look at the design choices made in each of these file systems.
read more
Posted in DragonFlyBSD | No Comments »
July 30th, 2008 . by BSD Blog
“Hurrah! 2.0 has been released!” said Matthew Dillon, announcing the eighth major release of DragonFly BSD. This release is the first to include HAMMER, a new clustering filesystem that already boasts an impressive list of features, including: “crash recovery on-mount, no fsck; fine-grained snapshots, snapshot management, snapshot-support for filesystem-wide data integrity checks; historically accessible by default; mirroring: queueless incremental mirroring, master to multi-slave; undo and rollback; reblocking; multi-volume, maximum storage capacity of 1-Exabyte.” Other highlighted changes in this release include, “native fairq-queue implementation using ALTQ, for PF“, and “native connection state recovery to PF, so router reboots do not drop active TCP connections.“
The latest version of DragonFly BSD can be downloaded from a mirror. The download page explains:
“DragonFly CDs are ‘live’, which means that the CD will boot your system and let you log in as root (no password). You can use this feature to check for hardware compatibility and play with DragonFly a little before actually installing it on your hard drive.”
read more
Posted in DragonFlyBSD | No Comments »
July 30th, 2008 . by BSD Blog
“I wasn’t even trying to invent a new protocol or anything, I was simply fixing the haphazard mathematical algorithms the clearly non-mathematically-oriented programmers built into those crufty clients.”
Posted in DragonFlyBSD | No Comments »
July 30th, 2008 . by BSD Blog
Matthew Dillon continues to make significant progress on his HAMMER clustering filesystem for DragonFly BSD. He labeled the latest release 56c, noting that it, “represents an additional significant improvement in performance, [also including] bug fixes and most of the final media changes.” A significant improvement in write performance was obtained by making the filesystem block size automatically increase from 16K to 64K when a file grows to larger than 1 MB. One remaining media change is required to optimize mtime and atime storage, at which point HAMMER will go into testing and bug fixing mode. Matt noted, “HAMMER’s performance is extremely good now, and its system cpu overhead has dropped to roughly the same that we get from UFS“, adding, “HAMMER is now able to sustain full disk bandwidth for bulk reads and writes. HAMMER continues to have far superior random-write performance, whether the system caches are blown out or not.” Discussing future plans for the filesystem, Matt noted, “I could go on and on, there’s so much that can be done with this filesytem
” Regarding one of these plans, he offered:
“I am not going to promise it, but there is a slight chance I will be able to get mirroring working by the release. I figured out how to do it, finally. Basically the solution is to add another field to the B-Tree’s internal elements… the ‘most recent’ transaction id, and to propogate it up all the way to the root of the tree. The mirroring code can then optimally scan the B-Tree and pick out all records that have changed relative to some transaction id, allowing it to quickly ‘pick up’ where it left off and construct a record-level mirror over a fully asynchronous link, without any queueing. You can’t get much better then that, frankly. “
read more
Posted in DragonFlyBSD | No Comments »
July 30th, 2008 . by BSD Blog
“HAMMER makes no modifications to the B-Tree whatsoever on the front-end. When you create, delete, rename, write, etc… when you do those operations HAMMER caches them in a virtualization layer in memory and doesn’t make any modifications to its on-media data structures (or their in-memory representations) at all until the meta-data is synced to disk,” DragonFly BSD creator Matthew Dillon explained, comparing HAMMER, his clustering filesystem, to a wiki summary of Reiser4’s implementations. He continued:
“HAMMER uses a modified B+Tree for its on-disk representation, which is a B-Tree with only keys at internal nodes and only records at the leafs. This was done to reduce structural bloat, allow for a leaf->leaf linking optimization in the future, and for other reasons. [...] HAMMER’s internal nodes have a left and right bounding element. A standard B+Tree only has a left bounding element. By adding a right bounding element HAMMER can cache pointers into its B+Tree and ‘pick up’ searches, insertions, and deletions relative to the cached pointers instead of having to start at the root of the tree. More importantly, it can pickup searches, insertions, and deletions at internal nodes, not just leaf nodes. So I can cache a proximity pointer and if I do a good job I never have to traverse the B+Tree above that point.”
read more
Posted in DragonFlyBSD | No Comments »
July 30th, 2008 . by BSD Blog
“After another round of performance tuning HAMMER all my benchmarks show HAMMER within 10% of UFS’s performance, and it beats the shit out of UFS in certain tests such as file creation and random write performance,” noted DragonFly BSD creator Matthew Dillon, providing an update on his new clustering filesystem. He continued, “read performance is good but drops more then UFS under heavy write loads (but write performance is much better at the same time).” He then referred to the blogbench benchmark noting, “now when UFS gets past blog #300 and blows out the system caches, UFS’s write performance goes completely to hell but it is able to maintain good read performance.” Matthew then compared this to HAMMER:
“HAMMER is the opposite. It can maintain fairly good write performance long after the system caches have been blown out, but read performance drops to about the same as its write performance (remember, this is blogbench doing reads from random files). Here HAMMER’s read performance drops significantly but it is able to maintain write performance. UFS’s write performance basically comes to a dead halt. However, HAMMER’s performance numbers become ‘unstable’ once the system caches are blown out.”
read more
Posted in DragonFlyBSD | No Comments »
July 30th, 2008 . by BSD Blog
Constantine Murenin offered a history of the OpenBSD hardware sensors framework during his talk at BSDCan 2008, describing how it was originally based on a port from NetBSD, then evolved and was eventually ported to all the BSDs. He also discussed his own involvement with the framework, having ported it from OpenBSD to FreeBSD as a Summer of Code project, and how his port was merged into DragonFly BSD. At the end of the talk, there were some interesting ecxhanges between Constantine and Poul-Henning Kamp, the latter explaining why he’d had the code backed out of FreeBSD and why he continues to oppose it being merged back in.
read more
Posted in DragonFlyBSD | No Comments »
July 30th, 2008 . by BSD Blog
Leslie Hawthorn, a Program Manager in Google’s Open Source team, gave a talk at BSDCAN 2008 on Google’s ongoing Summer of Code project. She started by explaining what the open source team does, including enforcing license compliance, hosting over 700,000 open source projects with Google Code, academic research, funding open source development, and community outreach including the sponsorship of conferences such as BSDCan. She went on to discuss how she got started running the project after its initial launch in 2005.
Having sponsored four summer of code’s now, Leslie noted that Google has had over 1,500 “graduates” and over 2,000 mentors involved, coming from over 98 countries and working with over 175 open source projects. By the end of the currently in progress 2008 Summer of Code, the project will have provided over 10 million US dollars in funding, generating over 6 million lines of code.
read more
Posted in DragonFlyBSD | No Comments »
July 30th, 2008 . by BSD Blog
“I should also add that there’s a ton of work that needs to be done in the kernel for BGL removal in general, particularly the I/O paths (the network path being only part of the larger picture). There’s plenty of thesis material there, particularly because our cpu-localization approach is very different from the tact that other OS’s have taken.”
Posted in DragonFlyBSD | No Comments »