by johnisgood · 1y ago · 0 comments
proplib (property list library for kernel-userspace communication), RUMP (Rump Kernel - anykernel framework allowing kernel code to run in userspace), Veriexec (verified exec integrity subsystem using cryptographic fingerprints), LFS (Log-structured File System - NetBSD maintains the only production LFS implementation), WAPBL (Write Ahead Physical Block Logging - metadata journaling), ATF (Automated Testing Framework - originated from NetBSD, now used across BSDs), etc. Feel free to check them out! Each one of them is interesting, IMO.
Beyond these specific features, NetBSD's real strength is its extreme portability (runs on over 50 hardware platforms, from VAX to ARM to obscure embedded systems), exceptionally clean and readable codebase, and pkgsrc (a portable package system that works across BSDs, Linux, and other Unix-like systems). I believe it makes NetBSD valuable not just as an OS, but as a reference implementation and research platform. The code quality and documentation are outstanding for anyone studying OS internals as well. :)
I noticed someone asked what NetBSD is. I am happy to break down the different BSD flavors (NetBSD, OpenBSD, FreeBSD, DragonflyBSD) and their unique features if that would be helpful!
OpenBSD has great man pages as well. :)
I left out FreeBSD from that comment, which has its own set of innovations: Capsicum (capability-based security framework), Jails (OS-level virtualization/containerization which predates Docker by over a decade), MAC Framework (Mandatory Access Control for fine-grained security policies), GEOM (modular disk I/O framework), Linuxulator (Linux binary compatibility layer), ZFS (FreeBSD has arguably the best ZFS implementation outside of Solaris), bhyve (type-2 hypervisor), and so forth.
Userland tools include iocage/bastille (jail managers), poudriere (package building), jemalloc (default allocator which focuses on fragmentation avoidance and scalability) among many others.
Each BSD really does have its own character. FreeBSD leans toward performance and production use, OpenBSD toward security and correctness, NetBSD toward portability and clean design, DragonflyBSD toward alternative SMP approaches!
(illumos/OpenIndiana is quite interesting, too (see DTrace, Doors IPC, Zones, SMF, Contracts, Event Ports, RBAC)).
And sure, technically both FreeBSD and Ubuntu use OpenZFS codebase now, but FreeBSD has in-tree, native kernel integration, whereas Linux has DKMS modules that are separate from mainline kernel, AND FreeBSD had ZFS since 2007 (18 years) and is considered more mature, whereas Linux's stable ZFS is much newer.
Additionally, some features work better on FreeBSD, Boot-on-ZFS is more polished on FreeBSD, and there are performance differences, too.
So my original claim is fine, though illumos is probably the actual best which is technically not Solaris anymore (even though it comes from OpenSolaris)... but as with always, you need history. Follow the timeline. :P
And this was in 2007.
I thought of NILFS2 on Linux as more practical. (meanwhile, didn't test, used btrfs instead)