Просмотр исходного кода

Update log2ram.conf

Update to comment for setting: 'LOG_DISK_SIZE='
pull/224/head
Adam Matthews 5 месяцев назад
committed by Adam Matthews
Родитель
Сommit
c05b0af7bb
1 измененных файлов: 9 добавлений и 4 удалений
  1. +9
    -4
      log2ram.conf

+ 9
- 4
log2ram.conf Просмотреть файл

@@ -57,8 +57,13 @@ ZL2R=false
# Set COMP_ALG to 'lz4' for speed, 'zstd' for better compression, or 'lzo' or 'zlib' if optimizations or availability are concerns.
COMP_ALG=lz4

# LOG_DISK_SIZE is the uncompressed disk size. Note zram uses about 0.1% of the size of the disk when not in use
# LOG_DISK_SIZE is expected compression ratio of alg chosen multiplied by log SIZE
# lzo/lz4=2.1:1 compression ratio zlib=2.7:1 zstandard=2.9:1
# Really a guestimate of a bit bigger than compression ratio whilst minimising 0.1% mem usage of disk size
# LOG_DISK_SIZE specifies the uncompressed zram disk size.
# (Sets the size of the zram disk that will be presented to the operating system).
# To estimate amount of RAM this will consume, divide LOG_DISK_SIZE by your chosen compression algorithm's ratio:
# - lzo/lz4 typically compresses at a ratio of 2.1:1
# - zlib compresses at about 2.7:1
# - zstandard (zstd) achieves around 2.9:1
# Example calculation using lz4:
# Given LOG_DISK_SIZE = 256M (which represents 256 Megabytes of uncompressed log data),
# the estimated zram RAM usage = 256 MB / 2.1 ≈ 122 MB of RAM.
LOG_DISK_SIZE=256M

Загрузка…
Отмена
Сохранить