雪花台湾

FreeBSD vs NetBSD vs OpenBSD vs DragonFlyBSD

在 Reddit 看到一個評論,非常贊,轉帖一下。

https://www.reddit.com/r/BSD/comments/7x0d5t/under_which_circumstances_is_netbsd_a_better/?

www.reddit.com

  1. FreeBSD 的硬體驅動更多,SMP 支持比較好,但不如 DragonFlyBSD;
  2. NetBSD 的 Xen 支持最好;SMP 支持比較好,不如 FreeBSD,NetBSD 的網路協議棧的 SMP 支持還不夠;代碼容易移植;發明了偉大的 pkgsrc;
  3. OpenBSD 的 SMP 支持非常差,內核代碼大多單線程的,性能最差的 BSD;對新硬體支持很差;代碼許可證要求很嚴格,因此缺一些固件,沒有 ZFS;OpenBSD 正式支持 13 種硬體架構,NetBSD 7 種,FreeBSD 6 種,DragonFly 1 種
  4. DragonFlyBSD 的 SMP 支持最好,但還不成熟;
  5. 安全性上 FreeBSD/NetBSD/OpenBSD 半斤八兩,OpenBSD 稍優,都比 Linux 強一個數量級,參考 Are all BSDs created equally?

所以結論是:生產伺服器正經用 Linux 或者 FreeBSD,玩家或者嵌入式用 NetBSD,安全妄想狂用 OpenBSD,牛人用 DragonFlyBSD。

從 Github 上 FreeBSD, NetBSD, OpenBSD, DragonFlyBSD, torvalds 的源碼分析的
截止 2019-02-23 的活躍度.

1. 五年來提交者人數: git shortlog --no-merges -s --since=2014-01-01 | sort -k1,1 -n | wc -l
2. 五年來提交超過 100 次的提交者人數: git shortlog --no-merges -s --since=2014-01-01 | sort -k1,1 -n | perl -ane print if $F[0]>=100 | wc -l
3. 五年來平均每月提交次數: git log --no-merges --since=2014-01-01 --format=%aI %an | sed -e s/-..T.*// | sort -r | uniq -c | perl -lane $a+=$F[0]; ++$n; END {print int($a/$n)}
4. 五年來平均每月提交者人數: git log --no-merges --since=2014-01-01 --format=%aI %an | sed -e s/-..T.* / / | sort -r | uniq -c | perl -lane print $F[1] if $F[0]>0 | uniq -c | perl -lane $a+=$F[0]; ++$n; END {print int($a/$n)}

No. Linux FreeBSD OpenBSD NetBSD DragonFlyBSD
1 11252 353 169 166 56
2 713 98 62 49 12
3 3539 973 794 680 150
4 570 87 58 46 9

TL;DR -- NetBSD is just as good as any other BSD for a basic desktop or server. Its only when you get into specific use cases or niches that one may be better over the other. And even then, things have changed so much over the years that descriptions like those in the OP are no longer accurate.

I hate posts like these -- they repeat dogma about the BSDs that is decades out of date (these stereotypes are from the 90s). Below is a list of things that FreeBSD, NetBSD, and OpenBSD do well or dont do well. Things have changed a lot over the years.

NetBSD

FreeBSD - I love this operating system, but its hardly "the best"

OpenBSD

DragonFlyBSD -- The unsung hero of the BSDs.

推薦閱讀:

相关文章