1
0
mirror of https://github.com/azlux/log2ram.git synced 2023-10-10 13:37:24 +02:00

Zram option on ReadME

This commit is contained in:
Azlux 2019-03-13 15:47:06 +01:00
parent 36a88b8933
commit 07b3599823

View File

@ -38,9 +38,10 @@ In the file `/etc/log2ram.conf`, there are three variables:
- `SIZE`: defines the size the log folder will reserve into the RAM (default is 40M).
- `USE_RSYNC`: Can be set to `true` if you prefer ´rsync´ rather than ´cp´. I use the command `cp -u` and `rsync -X`, I don't copy the all folder every time for optimization.
- `MAIL`: Disables the error system mail if there is not enough place on RAM (if set to `false`)
- `ZL2R`: Enable zram compatibility (`false` by default). Check the comment on the config file. See https://github.com/StuartIanNaylor/zram-swap-config to configure a zram space on your raspberry before enable this option.
#### refresh time:
By default Log2Ram writes to the HardDisk every hour. If you think this is too much, you can make the write every day by moving the cron file to daily: `sudo mv /etc/cron.hourly/log2ram /etc/cron.daily/log2ram`.
By default Log2Ram writes to the HardDisk every hour. If you think this is too much, you can make the write every day by moving the cron file to daily: `sudo mv /etc/cron.hourly/log2ram.hourly /etc/cron.daily/log2ram.daily`.
### It is working?
You can now check the mount folder in ram with (You will see lines with log2ram if working)
@ -60,6 +61,8 @@ If you have issue with apache2, you can try to add `apache2.service` next to oth
The log for log2ram will be written at: `/var/log/log2ram.log`
Compressor for zram. Usefull for the `COMP_ALG` of ZRAM on the config file.
| Compressor name | Ratio | Compression | Decompress. |
|------------------------|----------|-------------|-------------|
|zstd 1.3.4 -1 | 2.877 | 470 MB/s | 1380 MB/s |