1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 13:05:59 +02:00

zramctl: improve module loading examples (#3870)

* zramctl: improve module loading examples

* zramctl: update see also equivalent

* zranctl: fix syntax error
This commit is contained in:
Starbeamrainbowlabs 2020-02-28 13:34:55 +00:00 committed by GitHub
parent c8f0263169
commit cd357a2b03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,13 +1,17 @@
# zramctl
> Setup and control zram devices.
> Use `mke2fs` or `mkswap` to format zram devices to partitions.
> Use `mkfs` or `mkswap` to format zram devices to partitions.
- Check if zram is enabled:
`lsmod | grep -i zram`
- Enable zram with 2 devices (use `zramctl` to configure the devices further):
- Enable zram with a dynamic number of devices (use `zramctl` to configure devices further):
`sudo modprobe zram`
- Enable zram with exactly 2 devices:
`sudo modprobe zram num_devices={{2}}`