Disclaimer: I can do the most basic operations in UNIX but I really don't know shit about it.
So, I've been reading the eBook Rayvern linked to in idle moments and was surprised by, well, pretty much all of it. The picture it paints is one of a creaky OS held together by chewing gum and bits of string. It talks of slowly accreted functionality that was hacked together rather than designed, of sloppy programming and strange assumptions in the code, of file systems that behave in weird ways and eat your files at the drop of the hat. All of which is obviously utterly at odds with everything else I hear about UNIX. We hear only about it's speed, it's reliability, it's security, etc.
Now, I know the book is hella old so, has everything in there been fixed in intervening years? Or is the author just completely full of shit (or at least exaggerating his ass off)? Or some combination of the two?
As an example of the kind of thing I'm talking about, here's an extract from the text about disk usage:
The Unix file system slows down as the disk fills up. Push disk usage much past 90%, and you’ll grind your computer to a halt.
The Unix solution takes a page from any good politician and fakes the numbers. Unix’s df command is rigged so that a disk that is 90% filled gets reported as “100%,” 80% gets reported as being “91%” full, and so forth.
There is a twist if you happen to be the superuser—or a daemon running as root (which is usually the case anyway). In this case, Unix goes ahead and lets you write out files, even though it kills performance. So when you have that disk with 100MB free and the superuser tries to put out 50MB of new files on the disk, raising it to 950 MB, the disk will be at “105% capacity.”
WTF? The PS command actively lies to people to try and keep the system running? Utter madness!
Was UNIX ever really so bizarre? And has all that kind of nonsense been nailed down over the years? When the author describes the kind of environment that UNIX grew up in it all makes a lot of sense* that it would be sort of 'bodged' together but, as I say, that image of it's so contradictory of it's current reputation that I'm struggling to believe that's ever been the case.
*University lab hackers throwing shit together to solve whatever problem was right in front of them at the time with scant regard for future usage, while various organisations created different versions that conflicted and fought with each other, all the while claiming their's was the best. |