5 ms·
Those people who said GPUs would never be any use for general-purpose computing tasks have been looking a bit silly lately. Perhaps they had forgotten about the
by anigbrowl 10y ago
Those people who said GPUs would never be any use for general-purpose computing tasks have been looking a bit silly lately. Perhaps they had forgotten about the advantages of math coprocessors in earlier hw architectures.
- makmanalp 10y agoNot that I disagree, but to be fair, query processing on GPUs is a highly specialized task, and not quite what people think when they say "general purpose". A lot of work goes into writing code that utilizes that particular architecture well.
- tyingq 10y agoBecause of the memory ceiling it doesn't scale well for lots of concurrent users either... "MapD can scale to many simultaneous users. If the users are just executing hand-written SQL queries, this could be hundreds of users per server. If the users are analysts working with MapD Immerse...then you can expect tens of simultaneous users without experiencing any performance degradation." There are similar limitations around update, insert, etc. Not disputing the benefits, but it just isn't general purpose. It is for a relatively small number of users querying a huge dataset.
- otterley 10y agoThis is an issue even with non-GPU-based OLAP engines. See, e.g., Clickhouse (https://clickhouse.yandex/reference_en.html https://clickhouse.yandex/reference_en.html): "We'll say that the following is true for the OLAP (online analytical processing) scenario...Queries are relatively rare (usually hundreds of queries per server or less per second)."
- tyingq 10y agoApples and oranges measures of users vs query rate, but it sounds still like conventional OLAP can handle a lot more.
- otterley 10y agoPossibly, but I suspect that by "users," MapD really means "query rate." I can't see how a larger number of users would have a performance impact if all other variables were constant (data, query, query rate, etc.).
- arnon 10y agoIt's an in-memory database. "Huge dataset" is questionable in this scenario as it has to fit in RAM.
- amelius 10y agoHow is a query going to be faster on a GPU, when a query just performs lookups in tables, and simple comparison operations. You'd have to get the data via the CPU to the GPU in the first place, so you might as well perform the lookup/comparison on the CPU instead. Unless of course you plan to load the complete database in GPU memory, which makes the whole approach unsuited for large databases.
- lern_too_spel 10y agoThis is for analytics workloads, where you stream rows through the GPU.
- arnon 10y agoGPUs aren't good for everything. The right thing to do is balance between CPU and GPU code, and only do what actually gives any benefit. For example, GPUs suck at working on texts, or when there is a lot of divergence between processes. For example, if you have several kernels that branch to the TRUE side of the IF condition, and several that branch to FALSE, you're paying a huge performance penalty.
- pcwalton 10y agoUnfortunately, despite GPUs being ubiquitous, they get very little use in the desktop/mobile space, aside from games. Apps use them as little more than blitters, if they even do that much. There's a ton of computing power we're leaving on the table. Of course, improving this is a big opportunity for innovation, so perhaps it's not so unfortunate after all :)
- sofaofthedamned 10y agoUpvote for the term blitter which reminds me of my Amiga and Atari days...
- robarr 10y agoFor the uninformed... https://en.wikipedia.org/wiki/Blitter https://en.wikipedia.org/wiki/Blitter
- saganus 10y agoI wonder if at some point (hopefully not that far from now) there's some breakthrough or development that would allow FHE in GPU. I'm guessing maybe that could be a front where the unused GPU power can be taken advantage of in desktop/mobile, besides desktop. I could imagine some sort of algorithm/driver/framework plus a protocol that would allow remote services to make queries on your personal files (without privacy issues), while being accelerated by the client's GPU. Obviously I'm talking out of my behind here but I hope maybe someday someone will figure it out.
- radarsat1 10y agoTo be honest, although GPUs are super cool, I have to admit a bit of disappointment in practice. I don't know about databases, but in the machine learning community ones sees usually about 6x to 20x speedup on GPU. This is amazing, of course, but far below what, way back, naively thought we'd be able to get from GPUs -- i.e., 1000 processors instead of 1, we should get a 1000x speed-up, right? Not so at all. So many architectural issues (i/o, memory, even sometimes algorithmic limitations) get in the way of achieve true parallel linear performance.
- jacquesm 10y agoGPUs typically clock at roughly half of what a regular desktop CPU will do so there's a factor of two right there. Furthermore the data has to pass through another bottleneck (twice!), the PCIe bus. Finally, you need to keep in mind that all this is subject to Amdahl's law, you still have a sequential component that you won't be able to speed up at all. Also, that 6 to 20x speedup is what you get on the commodity GPUs, the ones sold at a higher mark-up are quite a bit faster than that due to better comms options and more RAM.
- deepnotderp 10y agoEh, Amdahl's law usually isn't all too applicable to highly parallelizable tasks, check out Gustafson's Law for a more modern perspective on the parallelization paradox, courtesy of supercomputers being forced to parallelize.
- deepnotderp 10y agoEach CUDA core can tackle approximately one FLOP per cycle, while a CPU core can tackle approximately 16 FLOPs per cycle. Given that there are usually at least 6 cores on a chip, and that reaching full utilization is difficult on a GPU, I dont' think ~20X is too shabby. Also more importantly, the efficiency goes up dramatically, which is usually infinitely more important than the raw performance.
- Sunset 10y ago