3 ms·
Linux is such a mess that it needs a map. It's no surprise they're paying massive technical debt over it. Work that would take a few hours in a well-structured
by snvzz 9y ago
Linux is such a mess that it needs a map.
It's no surprise they're paying massive technical debt over it. Work that would take a few hours in a well-structured system does take months on Linux.
Isn't surprising either that Dragonfly BSD's outperforming Linux in network throughput, despite its small number of developers.
They went for a components as concurrent lockless system servers approach [1] instead of a complex mess of fine-grained locks like Linux (and FreeBSD, following them) did.
[1] https://www.dragonflybsd.org/presentations/ https://www.dragonflybsd.org/presentations/
- jimmy1 9y agoI can only imagine what sort of chaos exists in Windows and OSX. Unfortunately I can only do that: imagine, because it is closed source. With Linux, I can at least see the mess, and well, make a map out of it.
- AnIdiotOnTheNet 9y agoI find it annoying that any time someone criticises Linux for something someone has to come and point out that Windows and OSX are also kinda crappy. It's true enough, it's also just useless defensiveness. Maybe the bar we set for ourselves should be a little higher than the stuff everyone complains about?
- jimmy1 9y agoI think you are reading into my stance as defending Linux -- I am not. I am just saying you have to take this criticism into perspective, and consider the alternatives. I find the clamours for the <insert "beautiful" other OS here> equally useless, as they haven't had the success linux has had in the server world, and because of that, I don't care how much more "elegant" another solution is -- it doesn't have the body of work to back it up. Linux is, for now, the best option. If it's a "tangled mess of code" let's figure out how to make it better. After all, it is open source.
- andrepd 9y agoMaybe it's just nigh impossible to build such a complex engineering project and keep it elegant through 25 years of development?
- psyc 9y agoI have looked upon code that struck me down with Lovecraftian dread. Here, let me paint you a picture of a ubiquitous Microsoft product, written in C++. Entry point calls Initialize. Initialize calls Initialize2, which calls Initialize_internal, which recurses to Initialize with a flag that makes it branch another way, which calls Initialize_subsystem, which calls Initialize_subsystem2, etc, which finally recurses again to Initialize_internal with another flag ... Honestly I never even made it out of the init code. I asked to be taken off the project immediately.
- leeter 9y agoIIRC the windows team has been in the process of cleaning up the NT Kernel for awhile (since vista at least) with the clear goal of getting NT back to "Dave Cutler's NT". The visible bits of this are the Server Micro project that's used for containers and Server core.
- floren 9y agoYou can look at the OSX kernel code, just grab Apple's XNU repository. I've built bootable kernels from it. The code's not terrible, but the weirdest part to me is that there's the OSFMK microkernel portion, and then there's the BSD subsystem. They use different types, and they have their own syscall tables, and it was never clear to me where a particular bit of code would reside. I only dabbled in it, of course.
- blauditore 9y agoAre there any software projects of that size that are clean and well-structured? The larger a codebase grows, the less tractable it becomes. Refactorings are harder, more expensive and riskier. Also, more developers means more attack surface for inconsistencies and crappy code of someone unmotivated.
- Thaxll 9y ago"outperforming Linux in network throughput" I'd like to see some numbers, I'm pretty sure Linux is as fast or faster than Dragonfly BSD in any scenarios. When you make such a claim you need facts. Also Linux TCP stack is lockless since 4.4.
- bogomipz 9y ago>"Isn't surprising either that Dragonfly BSD's outperforming Linux in network throughput, despite its small number of developers" Do you have a citation for this claim?
- snvzz 9y agoI know there's something more recent I've seen, but I couldn't find it. This is what I found, which should show enough. http://lists.dragonflybsd.org/pipermail/commits/2017-September/626329.html http://lists.dragonflybsd.org/pipermail/commits/2017-Septemb... https://www.dragonflydigest.com/2017/03/06/19425.html https://www.dragonflydigest.com/2017/03/06/19425.html
- psyc 9y agoEvery mature project I have ever joined, ever, is such a mess that it needs a map. Typically when I start a new job, I have to make that map myself, because even the senior engineers can't explain it without stammering or omitting the half of the code they don't understand anymore. Would that I'd had something just like this map every time I started a new job!
- matwood 9y agoSimilar to how no plan survives contact with the enemy, no well-structured system survives contact with the real world. I'm not defending Linux, since I'm sure it could be better, but every large, mature system I've ever worked in has had structural deficiencies.
- BlackLotus89 9y agohttps://www.phoronix.com/scan.php?page=article&item=netperf-bsd-linux&num=1 https://www.phoronix.com/scan.php?page=article&item=netperf-... is 1 1/2 years old and tells a different story where DragonflyBSD is either even or outperformed by _both_ linux and freebsd. If you have other numbers please post them, but don't just post such statements without sources. Edit: Just saw your answer https://leaf.dragonflybsd.org/~sephe/perf_cmp.pdf https://leaf.dragonflybsd.org/~sephe/perf_cmp.pdf and there linux has a higher latency, but the performance throughput is not that different from dragonflybsd. (in fact at forwarding linux wins). But thx for the numbers will follow up on that later.
- snvzz 9y ago>and there linux has a higher latency, but the performance throughput is not that different from dragonflybsd. Same throughput, better latency, a dragonfly win. Probably the same reasoning as usual (Linux likes to spend tens of milliseconds non-preemptable every now and again).
- cthalupa 9y ago>Isn't surprising either that Dragonfly BSD's outperforming Linux in network throughput, despite its small number of developers. This is a pretty meaningless statement. Network throughput on what? Low latency connections? High latency? Jumbo frames? What if you're using DPDK? How about vs. XDP? What is it tuned for? If you mean that if you just install Dragonfly BSD and some random popular Linux distribution that you might see better performance out of the box on some arbitrary benchmarks, yeah, I can believe it. If you mean that you're going to get better performance in Dragonfly BSD than Linux when it comes to all scenarios with network throughput, this is silly, especially when you can take advantage of things like DPDK, XDP, af_packet v4, etc. If network performance is your biggest concern in 2018, you're caring more about that sort of tech and being on something that supports it than you are about how things perform out of the box. (Also, Linux has had a lockless TCP stack since 2016)