News for hackers. Stuff that matters.
Re:GPU Vs CPU Smackdown : The Rise Of Throughput-Oriented Ar... by dholowiski on Saturday December 04, 2010 @11:12AM (#1969467)
I wonder how long it will be until we see gpus used for general purposes on the server- like accelerating apache or mysql. Since this hasn't been done yet, there must be some reason it's not possible?
Re:GPU Vs CPU Smackdown : The Rise Of Throughput-Oriented Ar... by FooBarWidget on Saturday December 04, 2010 @11:40AM (#1969549)
If you can tell me how to parse HTTP in GPU faster than in CPU I would be very interested. Right now even uploading an HTTP header to GPU takes more time than parsing it in CPU.

MySQL is heavily disk-bound. It is not CPU-bound except for things like sorting multi-gigabyte datasets, which people rarely use MySQL for. For most purposes you're better off installing more RAM than offloading computations to the GPU, otherwise MySQL has to spend all its time waiting for the harddisk.

Re:GPU Vs CPU Smackdown : The Rise Of Throughput-Oriented Ar... by vilya on Saturday December 04, 2010 @12:16PM (#1969639)
Encryption and decryption for https could benefit quite a bit, I would think.
Re:GPU Vs CPU Smackdown : The Rise Of Throughput-Oriented Ar... by wmf on Saturday December 04, 2010 @01:55PM (#1969861)
Except Intel already put in specific instructions for that.

I was surprised to discover that GPUs can accelerate SQLite http://pbbakkum.com/db/ and routing http://shader.kaist.edu/packetshader/ (although you're probably better off using an NP for routing).

Re:GPU Vs CPU Smackdown : The Rise Of Throughput-Oriented Ar... by vilya on Monday December 06, 2010 @06:49AM (#1974866)
Now that IS interesting. Thanks for the links!
Re:GPU Vs CPU Smackdown : The Rise Of Throughput-Oriented Ar... by FooBarWidget on Saturday December 04, 2010 @12:52PM (#1969725)
Can encryption be parallelized? With block cipher chaining modes like CFB, each block depends on the previous block. You can parallelize encryption if you use ECB but that's known to be insecure.
Re:GPU Vs CPU Smackdown : The Rise Of Throughput-Oriented Ar... by gxti on Saturday December 04, 2010 @01:33PM (#1969819)
Individual streams aren't parallelizable, but if you have many streams open at once you could hypothetically process them together in parallel instead of separately in parallel as it is with a CPU.

Also, there are block modes that are seekable and thus could be parallelized if you had a big enough backlog, CTR mode in particular, but parallelizing individual streams is not likely to reap big enough rewards to justify the complexity.