Why FreeBSD 8 Won't Rewrite the Book on FreeBSD reddit / BSD ---------------------------------------------------------------------- exscape · 2009-07-15 19:41 Not a word on DTrace or ZFS improvements! DTrace: * [copyin\* doesn't cause a kernel panic](http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/134408)(!) * [The timestamp variable doesn't wrap every 2^64/10^9 ticks](http://www.freebsd.org/cgi/query-pr.cgi?pr=127441) (Edit: This is 9 seconds on a 2 GHz computer! 2^64 ns is supposed to last for 585 years...) In other words, DTrace just got massively more useful. Or perhaps even "got useful", as I use either timestamp or copyinstr() in almost every script, which simply didn't work previously. As for ZFS... Well, let's just say 7.2 has ZFS v6, and 8.0 has ZFS v13. *A LOT* of improvements in both features and stability. These are the reasons I'm interested in FreeBSD, anyhow. (Which might show as I've reported or accidentally re-reported the above PRs and helped test them, and am currently pushing to get a patch to fix zfs send -R/recv merged in time for -RELEASE :) ---------------------------------------------------------------------- SageRaven · 2009-07-15 23:58 As a FreeBSD fan and every-day user, I have to say that was a pretty weak article. For a great view on what's to come (aside from freebsd.org's own release notes on 8.0), check out: http://ivoras.sharanet.org/freebsd/freebsd8.html ---------------------------------------------------------------------- exscape · 2009-07-16 12:31 Yup, that page is great for an overview. It has errors, though. I'm still pretty new to FreeBSD, but I found this mistake: > As always, all features described here are, or will be, a part of the FreeBSD "base" system, available in every FreeBSD installation without patching or out-of-the-ordinary configuration. DTrace is NOT usable without an "out-of-the-ordinary configuration", namely a custom kernel. (You need to add two options to the kernel config and rebuild - and before that, fetch sources for it, if you're the average user.) See [DTrace on the FreeBSD wiki](http://wiki.freebsd.org/DTrace). ---------------------------------------------------------------------- Freeky · 2009-07-16 13:38 > In other words, DTrace just got massively more useful. Still only kernel tracing. I need userspace tracing to get anything useful out of it :( > As for ZFS... Well, let's just say 7.2 has ZFS v6, and 8.0 has ZFS v13. v13 has been MFC'd to RELENG_7, a pretty good hint that this feature isn't a scary POLS-breaking feature to be scared of... which seems to be the point of this article. Do people really find new FreeBSD versions that scary they need reassuring articles like this? :) ---------------------------------------------------------------------- Freeky · 2009-07-16 13:46 "are, or will be". DTrace is "will be". DTrace currently only supports kernel tracing, so it's only really of much use to kernel developers. It may also still have some license issues preventing it being included in GENERIC, which would require any non-kld'd code be BSD. The ultimate aim is to have "kldload dtrace" work out of the box. ---------------------------------------------------------------------- technologyjournalist · 2009-07-16 14:17 a bunch of the features on that page - ie. Superpages - already got pulled into 7.2 ---------------------------------------------------------------------- exscape · 2009-07-16 14:25 Yeah, userspace tracing would (will!) be awesome, but I find kernel tracing (especially syscall tracing) to be quite useful for troubleshooting. For example, I modified Brendan Gregg's "errinfo" and "opensnoop" scripts to produce output with error info on file opens. An example, using the -e flag (only display open(2)s with errors): [root@chaos /usr/src]# opensnoop -e PID EXEC ERR DESC PATH 1659 cat 2 No such file or directory /etc/libmap.conf 1659 cat 13 Permission denied /dev/mem 1660 cat 2 No such file or directory /etc/libmap.conf 1660 cat 2 No such file or directory /nonexistant/file Stuff like this can be pretty useful when trying to troubleshoot programs that refuse to produce useful error messages or log enough. :) ---------------------------------------------------------------------- G-Brain · 2009-07-24 12:40 > 1660 cat 2 No such file or directory /nonexistant/file Nonexistent is with an 'e' :) ---------------------------------------------------------------------- exscape · 2009-07-24 12:44 Damnit, either my spelling has gone downhill in the past few years, or I'm simply realizing I wasn't as good at it as I previously thought. Thanks for pointing it out :)