Автор: funk2256@funk2256-manjaro-pc, 2 лет назад, написана на языке Plain Text.
Встраивание на сайт
  1. [?2004h[?1049h[22;0;0t[1;53r(B[m[4l[?7h[39;49m[?1h=[?1h=[?25l[39;49m(B[m[H[2J[51;55H(B[0;7m[ Чтение… ](B[m[51;49H(B[0;7m[ Прочитано 62 строки ](B[m[H(B[0;7m  GNU nano 6.4                                     /etc/systemd/swap.conf                                              [1;118H(B[m
  2. [52d(B[0;7m^G(B[m Справка[18G(B[0;7m^O(B[m Записать[35G(B[0;7m^W(B[m Поиск[52;52H(B[0;7m^K(B[m Вырезать[69G(B[0;7m^T(B[m Выполнить     (B[0;7m^C(B[m Позиция[103G(B[0;7mM-U(B[m Отмена
  3. [53d(B[0;7m^X(B[m Выход[53;18H(B[0;7m^R(B[m ЧитФайл[35G(B[0;7m^\(B[m Замена[53;52H(B[0;7m^U(B[m Вставить[69G(B[0;7m^J(B[m Выровнять     (B[0;7m^/(B[m К строке[103G(B[0;7mM-E(B[m Повтор
  4. [2d################################################################################
  5. [3d# Defaults are optimized for general usage
  6. [4d################################################################################
  7. [6d################################################################################
  8. [7d# You can override any settings by files in:
  9. [8d# /etc/systemd/swap.conf.d/*.conf
  10. [9d################################################################################
  11. [11d################################################################################
  12. [12d# Zswap
  13. [13d#[14d# Kernel >= 3.11
  14. [15d# Zswap create compress cache between swap and memory for reduce IO
  15. [16d# https://www.kernel.org/doc/Documentation/vm/zswap.txt
  16. [18dzswap_enabled=0
  17. [19dzswap_compressor=zstd     # lzo lz4 zstd lzo-rle lz4hc
  18. [20dzswap_max_pool_percent=25 # 1-99
  19. [21dzswap_zpool=z3fold[21;27H# zbud z3fold (note z3fold requires kernel 4.8+)
  20. [23d################################################################################
  21. [24d# ZRam
  22. [25d#[26d# Kernel >= 3.15
  23. [27d# Zram compression streams count for additional information see:
  24. [28d# https://www.kernel.org/doc/Documentation/blockdev/zram.txt
  25. [30dzram_enabled=0
  26. [31dzram_size=$(($RAM_SIZE/4))[33G# This is 1/4 of ram size by default.
  27. [32dzram_count=${NCPU}[32;33H# Device count (only for kernels < 4.8)
  28. [33d#zram_streams=${NCPU}[33;33H#$NCPU
  29. [34dzram_alg=zstd #lz4[34;33H# See $zswap_compressor 842 - for Linux 4.8.4
  30. [35dzram_prio=32767[35;33H# 1 - 32767
  31. [37d################################################################################
  32. [38d# Swap File Chunked
  33. [39d# Allocate swap files dynamically
  34. [40d# For btrfs fallback to swapfile + loop will be used
  35. [41d# ex. Min swap size 512M, Max 8*512M
  36. [42dswapfc_enabled=1
  37. [43dswapfc_force_use_loop=0[43;34H# Force usage of swapfile + loop
  38. [44dswapfc_frequency=1[44;34H# How often to check free swap space in seconds
  39. [45dswapfc_chunk_size=256M[45;34H# Size of swap chunk
  40. [46dswapfc_max_count=32[46;34H# 0 - unlimited, note: 32 is a kernel maximum
  41. [47dswapfc_min_count=0[47;34H# Minimum amount of chunks to preallocate
  42. [48dswapfc_free_ram_perc=35[48;34H# Add first chunk if free ram < 35%
  43. [49dswapfc_free_swap_perc=15[49;34H# Add new chunk if free swap < 15%
  44. [50dswapfc_remove_free_swap_perc=55  # Remove chunk if free swap > 55% && chunk count > 2
  45. [2d[?12l[?25h[?25l[51;30H(B[0;7m[ line  1/63 ( 1%), col  1/81 (  1%), char    0/2754 ( 0%) ](B[m[?12l[?25h
  46. [2d[?25l[51;90H[?12l[?25h
  47. [2d[?25l[51d[J[53d[?12l[?25h[53;1H[?1049l[23;0;0t
  48. [?1l>[?2004l