Max Lybbert
Posts: 314
Nickname: mlybbert
Registered: Apr, 2005
|
|
Re: Unwelcome Advice: Programming to Thousands of Cores
|
Posted: Jul 7, 2008 11:41 AM
|
|
> > If I had a single system with > > multiple cores, I'd want to run distributed grep on the > > linux filesystem. > > I realize it's just an example, but its just a really bad > one. > The result would just be to have 4-8 threads waiting for > the disk to serve up the file, instead of just one.
Additionally, each thread would be seeking to a different part of the file system, making your cache basically useless.
Then again, that assumes one hard drive. Once you have multiple drives (or a striped RAID), it would make sense to run one thread per physical drive. Then they aren't sharing information coming from the disk, but are potentially sharing access to the computer monitor or internal data structures (say, the list that records found matches).
I've had multiple hard drives on my desktop computer for years. Linux is smart enough to run fsck simultaneously on each physical drive to take advantage of this.
|
|