thin-provisioning-tools/thin-provisioning
Joe Thornber 61de3f9287 [thin_metadata_pack/unpack] Replace C++ implementation with a Rust one.
The Rust implementation is multithreaded, performs better in general and
does custom compression of btree nodes to achieve much better compression
ratios.  unpack also checksums expanded metadata to validate it.

Format version has jumped to 3, no backwards compatibility, but I think
that's ok since we never made a release that contained the C++ version
of these tools.

Benchmarks
==========

On an 8 core, 16 hyperthread machine.

metadata 1G, full:

      Pack size    pack time     unpack time
------------------------------------------------------
C++      193M        50.3s          6.9s (no verify)
Rust      70M         1.4s          1.8s (verify)

metadata 16G, sparse:

       Pack size    pack time     unpack time
------------------------------------------------------
C++      21M          68s           1s   (no verify)
Rust      4M           8.6s         0.5s (verify)
2020-06-09 09:15:00 +01:00
..
cache_stream.cc
cache_stream.h
chunk_stream.cc
chunk_stream.h
commands.cc [thin_metadata_pack/unpack] Replace C++ implementation with a Rust one. 2020-06-09 09:15:00 +01:00
commands.h [thin_metadata_pack/unpack] Replace C++ implementation with a Rust one. 2020-06-09 09:15:00 +01:00
create_xml_data
device_tree.cc
device_tree.h [all] Switch from boost::shared_ptr -> std::shared_ptr. 2020-04-30 15:02:43 +01:00
emitter.h [all] Switch from boost::shared_ptr -> std::shared_ptr. 2020-04-30 15:02:43 +01:00
fixed_chunk_stream.cc
fixed_chunk_stream.h
human_readable_format.cc
human_readable_format.h Move source into separate sub directories. 2013-01-02 12:55:41 +00:00
main.cc
mapping_tree.cc
mapping_tree.h [all] Switch from boost::shared_ptr -> std::shared_ptr. 2020-04-30 15:02:43 +01:00
metadata_checker.cc [block_manager] Hard code block size to 4k. 2020-04-30 14:30:01 +01:00
metadata_checker.h [all] Switch from boost::shared_ptr -> std::shared_ptr. 2020-04-30 15:02:43 +01:00
metadata_counter.cc
metadata_counter.h
metadata_dumper.cc [block_manager] Hard code block size to 4k. 2020-04-30 14:30:01 +01:00
metadata_dumper.h [block_manager] Hard code block size to 4k. 2020-04-30 14:30:01 +01:00
metadata.cc [block_manager] Hard code block size to 4k. 2020-04-30 14:30:01 +01:00
metadata.h [all] Switch from boost::shared_ptr -> std::shared_ptr. 2020-04-30 15:02:43 +01:00
override_emitter.cc
override_emitter.h
pool_stream.cc
pool_stream.h
restore_emitter.cc
restore_emitter.h
rmap_visitor.cc
rmap_visitor.h
shared_library_emitter.cc
shared_library_emitter.h
static_library_emitter.cc
superblock.cc [block_manager] Hard code block size to 4k. 2020-04-30 14:30:01 +01:00
superblock.h [block_manager] Hard code block size to 4k. 2020-04-30 14:30:01 +01:00
thin_check.cc [block_manager] Hard code block size to 4k. 2020-04-30 14:30:01 +01:00
thin_debug.cc [all] Switch from boost::shared_ptr -> std::shared_ptr. 2020-04-30 15:02:43 +01:00
thin_delta.cc [block_manager] Hard code block size to 4k. 2020-04-30 14:30:01 +01:00
thin_dump.cc [block_manager] Hard code block size to 4k. 2020-04-30 14:30:01 +01:00
thin_generate_metadata.cc [thin_generate_metadata] Implement format_metadata and create_thin 2020-05-28 17:30:15 +08:00
thin_journal_check.cc [dev-tools] Update dev tools to use non-template version of block_manager. 2020-05-01 14:11:33 +01:00
thin_journal.cc [dev-tools] Update dev tools to use non-template version of block_manager. 2020-05-01 14:11:33 +01:00
thin_journal.h [dev-tools] Update dev tools to use non-template version of block_manager. 2020-05-01 14:11:33 +01:00
thin_ll_dump.cc [dev-tools] Update dev tools to use non-template version of block_manager. 2020-05-01 14:11:33 +01:00
thin_ll_restore.cc [dev-tools] Update dev tools to use non-template version of block_manager. 2020-05-01 14:11:33 +01:00
thin_ls.cc [block_manager] Hard code block size to 4k. 2020-04-30 14:30:01 +01:00
thin_metadata_size.cc
thin_metadata_size.rb
thin_pool.cc
thin_pool.h [all] Switch from boost::shared_ptr -> std::shared_ptr. 2020-04-30 15:02:43 +01:00
thin_repair.cc [block_manager] Hard code block size to 4k. 2020-04-30 14:30:01 +01:00
thin_restore.cc [block_manager] Hard code block size to 4k. 2020-04-30 14:30:01 +01:00
thin_rmap.cc [block_manager] Hard code block size to 4k. 2020-04-30 14:30:01 +01:00
thin_scan.cc [dev-tools] Update dev tools to use non-template version of block_manager. 2020-05-01 14:11:33 +01:00
thin_show_duplicates.cc [dev-tools] Update dev tools to use non-template version of block_manager. 2020-05-01 14:11:33 +01:00
thin_show_metadata.cc [dev-tools] Update dev tools to use non-template version of block_manager. 2020-05-01 14:11:33 +01:00
thin_trim.cc [block_manager] Hard code block size to 4k. 2020-04-30 14:30:01 +01:00
variable_chunk_stream.cc
variable_chunk_stream.h
xml_format.cc
xml_format.h