Skip to content

Instantly share code, notes, and snippets.

@pfreixes
Created June 1, 2014 09:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pfreixes/1b4c9f0cf1c2bd19edf9 to your computer and use it in GitHub Desktop.
Save pfreixes/1b4c9f0cf1c2bd19edf9 to your computer and use it in GitHub Desktop.
Whisper data format ....
Whisper data base format
------------------------
Byte Map of whisper file format
+------------------+
| Aggregation func | 4 bytes - Type of allocate strategies for file
+------------------+ * Use of fallocate if it is available, book the disk space
| Max time | * Use of sparse, fragmented, if it is configured.
| retention | 4 bytes * Booking whole space writing zeros over there
+------------------+
| file factor | 4 bytes
+------------------+
| count archives | 4 bytes
+------------------+
| Archive info 1 | 12 bytes
|+----------------+|
|| data offset ||---
|+----------------+| |
|| sec. per point || |
|+----------------+| |
|| num. points || |
|+--------------- +| |
+------------------+ |
| Archive info 2 | |
|+----------------+| |
|| data offset ||------
|+----------------+| | |
|| sec. per point || | |
|+----------------+| | |
|| num. points || | |
|+--------------- +| | |
+------------------+ | |
| point 1 |<--' |
+------------------+ |
| point 2 | |
+------------------+ |
| . | |
| . | |
| . | |
| . | |
+------------------+ |
| point 1 |<-----'
+------------------+
| point 2 |
+------------------+
| . |
| . |
| . |
| . |
+------------------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment