compress

compresscmd xz

compressoptions -9

---------------

 compress manually:

--verbose  show progress

 To reduce system load:

/etc/cron.daily/logrotate from:

    /usr/sbin/logrotate /etc/logrotate.conf

to:

    nice -n 19 ionice -c3 /usr/sbin/logrotate /etc/logrotate.conf

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=652600

-M xz option sets memory limit, please check man, for example 32M is required for -3 compression option, for example :

compressoptions -3 -M 128M

also cpulimit may be useful:

cpulimit -l 20

sets cpu usage to 20%

for example:

cpulimit -l 20 nice -n 19 ionice -c3 /usr/sbin/logrotate /etc/logrotate.conf

https://uk.ubunlog.com/cpulimit-%D0%BE%D0%B1%D0%BC%D0%B5%D0%B6%D1%83%D1%94-%D0%BF%D1%80%D0%BE%D1%86%D0%B5%D1%81-%D0%BF%D1%80%D0%BE%D1%86%D0%B5%D1%81%D0%BE%D1%80%D0%B0/