Better HN
topnewbestaskshowjobs
Log inSign up

faltet

8 karma · joined Nov 9, 2012 (14y ago) · 8 submissions

Leveraging compression to break memory walls and reduce energy consumption.
Submissions

comment 3y ago · link · parent

This is what happens when two nice libraries like HDF5 and Blosc2 cooperate in making a third one (PyTables) way more efficient.

2.

Querying 100T rows in a human time scale(blosc.org ↗)

2 points · by faltet · 3y ago · 1 comment

comment 12y ago · link · parent

Here you have a benchmark based on the MovieLens database:

http://nbviewer.ipython.org/github/Blosc/movielens-bench/blo...

The results are explained here:

http://www.blosc.org/docs/bcolz-EuroPython-2014.pdf

and, more in-depth here:

https://python.g-node.org/wiki/starving_cpu

comment 13y ago · link · parent

I'm not sure why, but yes, I'm seeing these speedups. You can see them too in: http://blosc.pytables.org/trac/wiki/SyntheticBenchmarks and paying attention to compression ratios of 1 (compression disabled). If you find any good reason on why this is happening, I'm all ears.

comment 13y ago · link · parent

Blaze is intended to be a much more general solution than a pure key-value store (although it will be able to tackle this use case too). But yes, the idea under BLZ is close to your projects, namely, leveraging the available resources in your computer in the most useful way.

But sorry, I strongly disagree in that everything is a variation on things from 70's: during these good old years, the memory hierarchy was far simpler than nowadays, and having to deal with that introduces a great amount of complexity in libraries that are designed to get most out of modern computers.

comment 13y ago · link · parent

That's right. But even in this case, Blosc, the internal compressor used in Blaze, can detect whether the data is compressible or not pretty early in the compression pipeline, and decide to stop compressing and start just copying (how early that decision is taked depends on the compression level).

The good news is that Blosc can still use threads in parallel for doing the copy, and this normally gives significantly better speed than a non-threaded memcpy() (the default for many modern systems).

comment 13y ago · link · parent

No doubt that much longer :) But the important points to take away are:

1) You can store more compressed data by using the same storage capacities. 2) If data can be compressed, the I/O effort will be less 3) If the compressor is fast enough, you may end saving I/O time

As for 2), Blosc can be pretty fast as can be seen in: http://blosc.pytables.org/trac/wiki/SyntheticBenchmarks so, in general, will speed up I/O for compressible data (even if that data is in-memory).

comment 13y ago · link · parent

HDF5 is a very nice format indeed, and in fact, BLZ is borrowing a lot of good ideas from it. However, HDF5 has its own drawbacks, like not being able to compress variable length datasets, the lack of a query/computational kernel or its flaky resiliency during updates. Also, its approach for distributing data among nodes diverges from our goals.

Finally, you are right, speed is pretty important for us, and we think that our approach can make a better use of current computer architectures.