deviceinfo_schema: Document zram_swap_algo
Data mostly taken from the wiki. Closes https://gitlab.postmarketos.org/postmarketOS/pmaports/-/issues/4352 Signed-off-by: Stefan Hansson <newbyte@postmarketos.org> Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8042>
This commit is contained in:
parent
ca40e89754
commit
3d84d40699
1 changed files with 6 additions and 0 deletions
|
|
@ -108,6 +108,12 @@ description = "Set recommended swap file size for device."
|
|||
datatype = "integer"
|
||||
integer_interval = "[1, 1000000]"
|
||||
|
||||
[variable.metadata.zram_swap_algo]
|
||||
description = "The compression algorithm to be used for zram-based swap."
|
||||
datatype = "enumeration"
|
||||
enum_values = ["lzo-rle", "lzo", "lz4", "lz4hc", "zstd", "deflate", "842"]
|
||||
default_value = "zstd"
|
||||
|
||||
[variable.metadata.zram_swap_pct]
|
||||
description = "The size of the ZRAM swap is based on a percentage of the device's RAM, this allows overriding the default percentage to use in the calculation. If set to 0, ZRAM swap is disabled for the device."
|
||||
datatype = "integer"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue