nicolargo / glances

Glances an Eye on your system. A top/htop alternative for GNU/Linux, BSD, Mac OS and Windows operating systems.
http://nicolargo.github.io/glances/
Other
26.77k stars 1.53k forks source link

Compress stats history's table #695

Closed nicolargo closed 7 years ago

nicolargo commented 9 years ago

The history store for CPU, MEM, LOAD, DISK IO, Net IO stats. Glances stores data in a dict of list. The goal is to optimize the memory footprint by compressing data.

Have a look on the chapter 4.1.2 of the http://www.vldb.org/pvldb/vol8/p1816-teller.pdf document.

nicolargo commented 9 years ago

Here is a first try for the value list compression: https://gist.github.com/nicolargo/53f0168520ab1aef1872

Any comment ?

nicolargo commented 8 years ago

Gist code not compliant with the data structure. History now stores data in list of tuple [(timestamp, value), ...]