platform_system_core/fs_mgr/libsnapshot
Daniel Zheng 5e8e488c13 libsnapshot: Cache Ops correctly
Change the meaning of batch_size_. Previously, a batch size of 200 meant
200 compressed data ops. With variable block size, each compressed data
op can be up to 256k uncompressed size -> batch size meaning should be
changed to 200 blocks of block size.

With this being said, the default batch size can be increased to 4mb to
better accomodate variable block size

The way we calculate the number of blocks to compress at once also
needs to be changed. Since there's no way of determining the comperssed
data size ahead of time, allow overwriting the cache by batch_size_ and
then flushing the cache as needed

Bug: 322279333
Test: Ota on pixel and measuring system image cow
Change-Id: Ie8e08d109dc5c3b4f5f36a740bbbcd37362a7ab3
2024-03-22 14:47:45 -07:00
..
android/snapshot libsnapshot: use compression_factor in ota 2024-01-30 09:25:02 -08:00
include/libsnapshot libsnapshot: Cache Ops correctly 2024-03-22 14:47:45 -07:00
include_test/libsnapshot dmctl: add report of IMA 2024-03-15 16:34:20 -07:00
libsnapshot_cow libsnapshot: Cache Ops correctly 2024-03-22 14:47:45 -07:00
scripts Add LOCAL_LICENSE_KINDS to system/core/fs_mgr 2021-09-15 10:57:11 -07:00
snapuserd snapuserd_test: check writer != nullptr 2024-03-21 00:21:11 +00:00
tools libsnapshot: replace non-character basic_string[_view]<T> 2024-02-08 23:20:10 -08:00
Android.bp libsnapshot_cow: Support multi-block compression 2024-01-31 12:52:31 -08:00
device_info.cpp Convert fastboot/libsnapshot to new BootControl client 2022-07-08 10:57:53 -07:00
device_info.h Convert fastboot/libsnapshot to new BootControl client 2022-07-08 10:57:53 -07:00
dm_snapshot_internals.h libsnapshot: Use std::unordered_set in DmSnapCowSizeCalculator. 2021-07-30 11:02:28 -07:00
OWNERS Update bug component from Android Systems to OTA client 2023-08-22 10:18:47 +01:00
partition_cow_creator.cpp libsnapshot: get options from protobuf fields 2024-01-03 11:09:37 -08:00
partition_cow_creator.h libsnapshot: use compression_factor in ota 2024-01-30 09:25:02 -08:00
partition_cow_creator_test.cpp Add annotations to VTS tests 2024-02-29 14:30:35 -08:00
return.cpp libsnapshot: delete WaitForMerge. 2020-03-03 13:19:49 -08:00
snapshot.cpp libsnapshot: Fetch device size from header 2024-02-23 22:26:42 +00:00
snapshot_metadata_updater.cpp Merge "libsnapshot: Properly set partial_update_" 2020-07-31 23:02:05 +00:00
snapshot_metadata_updater.h Update libsnapshot to handle partial update 2020-06-09 12:53:45 -07:00
snapshot_metadata_updater_test.cpp libsnapshot_test: skip global setup on non-VAB devices. 2020-08-06 17:21:50 -07:00
snapshot_stats.cpp libsnapshot: Add more feature flags to SnapshotMergeReport. 2022-05-25 13:40:31 -07:00
snapshot_stub.cpp libsnapshot: Remove ISnapshotWriter. 2023-06-14 12:03:58 -07:00
snapshot_test.cpp Add annotations to VTS tests 2024-02-29 14:30:35 -08:00
snapshotctl.cpp Make snapshotctl also log to logd. 2024-03-08 18:56:13 +00:00
test_helpers.cpp libsnapshot: Remove ISnapshotWriter. 2023-06-14 12:03:58 -07:00
utility.cpp libsnapshot: Fix test failures on certain configurations. 2023-03-06 23:21:25 +00:00
utility.h libsnapshot: Fix test failures on certain configurations. 2023-03-06 23:21:25 +00:00
vts_ota_config_test.cpp Add annotations to VTS tests 2024-02-29 14:30:35 -08:00