Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 995 Bytes

README.md

File metadata and controls

17 lines (13 loc) · 995 Bytes

rdb-layout

A PHP script that reads RethinkDB files and visualizes their layout. Can be used to identify fragmentation in RethinkDB data files.

Requires PHP 5.3 or higher and GD.

Limitations

There are a few important limitations at the moment:

  • The code needs refactoring. It's currently a single gigantic file.
  • There is almost no error checking.
  • The script becomes very slow and uses a lot of memory when applied to large data files.
  • Handling of files larger than 4 GB might or might not work, depending on your version of PHP and your platform.

Output

The output of the script is a PNG file that visualizes the file layout. The metablock extent is gray, data extents are green, and LBA extents are blue. White is unused space in the file. For data extents (green), the script also visualizes the space utilization within the extents (total size of active blocks in the extent vs. garbage and unused space).