Change dwarfs compressor arguments

Better read performance, but worse compression ratio.
This commit is contained in:
Kron4ek 2023-06-13 17:10:13 +05:00
parent f9a0ad6bb8
commit 1149011f2f
3 changed files with 6 additions and 6 deletions

View file

@ -28,7 +28,7 @@ script_version="1.24.2"
# size to 0
init_size=50000
bash_size=1490760
script_size=37189
script_size=37197
busybox_size=1161112
utils_size=4321630
@ -237,8 +237,8 @@ dwarfs_num_workers="2"
# These arguments are used to rebuild the image when using the self-update function
squashfs_comp_arguments=(-b 1M -comp zstd -Xcompression-level 19)
dwarfs_comp_arguments=(-l7 -C zstd:level=19 --metadata-compression null \
-S 22 -B 2 --order nilsimsa:255:60000:60000 \
--bloom-filter-size 11 -W 15 -w 3 --no-create-timestamp)
-S 21 -B 1 --order nilsimsa:255:60000:60000 \
-W 12 -w 4 --no-create-timestamp)
# Enable NVIDIA_HANDLER by default
NVIDIA_HANDLER="${NVIDIA_HANDLER:-1}"

View file

@ -22,8 +22,8 @@ squashfs_compressor_arguments=(-b 1M -comp ${squashfs_compressor} -Xcompression-
# Use DwarFS instead of SquashFS
dwarfs="false"
dwarfs_compressor_arguments=(-l7 -C zstd:level=19 --metadata-compression null \
-S 22 -B 2 --order nilsimsa:255:60000:60000 \
--bloom-filter-size 11 -W 15 -w 3 --no-create-timestamp)
-S 21 -B 1 --order nilsimsa:255:60000:60000 \
-W 12 -w 4 --no-create-timestamp)
# Set to true to use an existing image if it exists
# Otherwise the script will always create a new image

2
init.c
View file

@ -46,7 +46,7 @@ int main(int argc, char* argv[])
fread(bash_script, SCRIPT_SIZE, 1, current_program);
fclose(current_program);
char * bash_args[MAX_ARGS_NUMBER + 5] = {program_path, "-c", "--", bash_script, argv[0]};
char * bash_args[MAX_ARGS_NUMBER + 5] = {program_path, "-c", "--", bash_script, argv[0]};
int k = 5;
for (int i = 1; i < argc; i++, k++) {