Google has like an entire system operating system that their software runs on, I think. (Somebody does, maybe Facebook?)
I also bet in this scenario, high quality hard drives would help a ton. Drives with very fast read speeds would speed of queries quite a bit I think.