4 ms·
by making all hardware equivalent, good software enabled bad hardware. An excellent point.
by gaius 18y ago
by making all hardware equivalent, good software enabled bad hardware.
An excellent point.
- tptacek 18y agoIs it really? High-end X86 server hardware is quite good.
- gaius 18y agoThere is some pretty decent kit around at the moment, e.g. Sun's x4500 and x4600, but that's fairly recent, it wasn't that long ago that an x86 "server" was a desktop PC in a rackmount chassis. If even that, I remember datacentre racks full of desktop PCs on shelves. Even now, there are only a handful of tier 1 vendors making kit where everything from the RAID acceleration to the 10gigE works right out of the box.
- tptacek 18y agoDoesn't a Sun X4x00 cost ~$50,000?
- gaius 18y agoYes, but you're not just paying for the parts, remember. You're paying for someone having written and debugged all the drivers to make all those fancy components play nicely together. It's frustrating as Hell (if you get my meaning) when there's nothing wrong with any individual component but your box randomly panics deep in the guts of something... You get what you pay for.
- tptacek 18y agoDebugger drivers worth money? Yes. Worth 10x? No. You get the same benefit by carefully selecting the best-supported hardware for your platform.
- gaius 18y agoReally? It's possible to cram 32 x86 cores and 256G of memory into 4U for $5k and for it all to work? Show me.
- nailer 18y agoUnisys, Fujitsu, Hitachi, and SGI sell 32 processor (and more), and they'll do it for a lot less than Sun will. However, in most cases, your 32 processor Sun box is replaced by one Quad Core Xeon machine, and it handles the same workload in an eighth the time. This is why Red Hat don't bother competing with Microsoft - they make the biggest part of their revenue from replacing Sun gear - and two of the four guys I worked with closely at Red Hat were ex-Sun staff.
- gaius 18y agoYes but that's not what an x4600 is. It is 32 x86 cores and 256G of main memory (and various other bits and pieces like quad gigE and a few disks) and it fits neatly into only 4U of rackspace. Sun makes x86 kit now, didn't you know?
- tptacek 18y agoI don't think you addressed his point, which is that you can get the same amount of work done without 32 cores in 4RU by selecting a different, more cost-effective vendor. Sun does have a slight but well-earned reputation as vanity hardware.
- orib 18y agoCompared to most architectures, X86 sucks pretty badly. Thanks to good compilers, though, you don't have to care about the lameness of the instruction set (eg, there are ambiguities in the encoding that need to be disambiguated by register prefixes, there are lots of subtle and pointless variations in the instructions, etc.) Good software lets you pretend that the instruction set you're using isn't actually complete crap.
- tptacek 18y agoIt's definitely the conventional wisdom that X86 is inferior to MIPS, SPARC, and PowerPC, but I rarely see that opinion backed up. There is a lot of legacy crap tacked on to X86 instructions, which X86 CPUs don't actually execute directly. There's also legacy crap built into other instruction sets, like register windows in SPARC, predicated instructions in ARM, and bloated call frames on PowerPC. Can you be more specific about what you don't like about the X86 architecture? (A couple years ago, you'd have an easy win with "the bus").
- orib 18y agoEdit: Some people seem to have missed my point; in summary: x86 is ugly (and below is why I think so) but we don't care because compilers enable us to just forget about what ISA we're using. This is a good thing. This is the way it should be. But it's also an example of what the OP was talking about -- bad hardware design (in this case the x86 ISA; the actual hardware is quite good) not mattering because software is sufficiently good Sure. Some of these I'm not 100% sure of, so I hope I don't make myself look too stupid (sorry, don't have access to the docs right now) but here goes: - Too few registers Mostly fixed in x86_64, but still an issue if you want to support 99% of the machines out there still on 32 bits - Overlapping register classes This makes the register allocator's job much more difficult, since not only do registers interfere with other registers which hold the same mode of varible, they sometimes -- but not always -- interfere with other registers of the same class. - Irregular instructions If you use some registers, they're encoded in less bytes than others, so the optimizer/allocator has yet another parameter to take into account. - Fixed registers for integer multiplication/division You're forced to clobber %eax/%edx and one other reg of your choice. This causes more spills than it should, and makes the job of the register allocator harder. - Way too many jump variants I think I counted 63 variants of the instructions, and you can encode the same one multiple times, which gives you hundreds of ways of encoding a jump. - Complicated encoding First, it's a variable length encoding. You can have one, two, or 3 byte instruction opcodes, with various prefixes and suffixes. - Ambiguity in some cases Instructions can sometimes take the same initial byte sequences as a prefix, despite not actually having that prefix switched on; when decoding you have to figure out the rest of the instruction before you decide if you've got a prefix. - Useless Instructions (minor annoyance) x86 has lots (and lots) of instructions that are unused by compilers, are slower than simply doing the smaller instructions that they are composed of, but are still around for compatibility. Sure, it's needed, but do I have to like it? Really, x86 implementations these days are quite good, but the instruction set is not pretty. x86 has more cruft than most other architectures out there. It's certainly not impossible to write a good compiler for it, it's just a whole lot harder, especially when it comes to doing register allocation. (x86 isn't even too painful to write by hand!)