mirror of
https://github.com/Kron4ek/Conty
synced 2024-11-16 19:50:06 +01:00
Change dwarfs compressor arguments
Better read performance, but worse compression ratio.
This commit is contained in:
parent
f9a0ad6bb8
commit
1149011f2f
3 changed files with 6 additions and 6 deletions
|
@ -28,7 +28,7 @@ script_version="1.24.2"
|
||||||
# size to 0
|
# size to 0
|
||||||
init_size=50000
|
init_size=50000
|
||||||
bash_size=1490760
|
bash_size=1490760
|
||||||
script_size=37189
|
script_size=37197
|
||||||
busybox_size=1161112
|
busybox_size=1161112
|
||||||
utils_size=4321630
|
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
|
# These arguments are used to rebuild the image when using the self-update function
|
||||||
squashfs_comp_arguments=(-b 1M -comp zstd -Xcompression-level 19)
|
squashfs_comp_arguments=(-b 1M -comp zstd -Xcompression-level 19)
|
||||||
dwarfs_comp_arguments=(-l7 -C zstd:level=19 --metadata-compression null \
|
dwarfs_comp_arguments=(-l7 -C zstd:level=19 --metadata-compression null \
|
||||||
-S 22 -B 2 --order nilsimsa:255:60000:60000 \
|
-S 21 -B 1 --order nilsimsa:255:60000:60000 \
|
||||||
--bloom-filter-size 11 -W 15 -w 3 --no-create-timestamp)
|
-W 12 -w 4 --no-create-timestamp)
|
||||||
|
|
||||||
# Enable NVIDIA_HANDLER by default
|
# Enable NVIDIA_HANDLER by default
|
||||||
NVIDIA_HANDLER="${NVIDIA_HANDLER:-1}"
|
NVIDIA_HANDLER="${NVIDIA_HANDLER:-1}"
|
||||||
|
|
|
@ -22,8 +22,8 @@ squashfs_compressor_arguments=(-b 1M -comp ${squashfs_compressor} -Xcompression-
|
||||||
# Use DwarFS instead of SquashFS
|
# Use DwarFS instead of SquashFS
|
||||||
dwarfs="false"
|
dwarfs="false"
|
||||||
dwarfs_compressor_arguments=(-l7 -C zstd:level=19 --metadata-compression null \
|
dwarfs_compressor_arguments=(-l7 -C zstd:level=19 --metadata-compression null \
|
||||||
-S 22 -B 2 --order nilsimsa:255:60000:60000 \
|
-S 21 -B 1 --order nilsimsa:255:60000:60000 \
|
||||||
--bloom-filter-size 11 -W 15 -w 3 --no-create-timestamp)
|
-W 12 -w 4 --no-create-timestamp)
|
||||||
|
|
||||||
# Set to true to use an existing image if it exists
|
# Set to true to use an existing image if it exists
|
||||||
# Otherwise the script will always create a new image
|
# Otherwise the script will always create a new image
|
||||||
|
|
2
init.c
2
init.c
|
@ -46,7 +46,7 @@ int main(int argc, char* argv[])
|
||||||
fread(bash_script, SCRIPT_SIZE, 1, current_program);
|
fread(bash_script, SCRIPT_SIZE, 1, current_program);
|
||||||
fclose(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;
|
int k = 5;
|
||||||
for (int i = 1; i < argc; i++, k++) {
|
for (int i = 1; i < argc; i++, k++) {
|
||||||
|
|
Loading…
Reference in a new issue