[arch-general] Setting dirty ratio
What is the recommended way to set dirty ratio and dirty background ratio on boot? I added those in /etc/sysctl.d/99-sysctl.conf fileand then added a systemd service to fork a process "sysctl --system" on startup and it didn't seem to work. The command "sysctl --system" run as root is successful in setting the custom options set in /etc/sysctl.d/99-sysctl.conf.
Hi On Sun, May 25, 2014 at 11:45 PM, Amal Roy <amal@cryptolab.net> wrote:
What is the recommended way to set dirty ratio and dirty background ratio on boot?
As usual the answer can be found in wiki https://wiki.archlinux.org/index.php/Sysctl#Virtual_memory
I added those in /etc/sysctl.d/99-sysctl.conf fileand then added a systemd service to fork a process "sysctl --system"
You don't need to create a systemd service, the one already exists http://www.freedesktop.org/software/systemd/man/systemd-sysctl.service.html
on startup and it didn't seem to work. The command "sysctl --system" run as root is successful in setting the custom options set in /etc/sysctl.d/99-sysctl.conf.
Thanks for replying. I followed the wiki but, the kernel variables are not set at startup even though the systemd unit is active (checked by "systemctl status systemd-sysctl.service"). If I restart the service using "systemctl restart systemd-sysctl.service", the kernel variables are set. I cannot find any error messages in journalctl or systemctl status. On 05/26/2014 12:57 PM, Anatol Pomozov wrote:
Hi
On Sun, May 25, 2014 at 11:45 PM, Amal Roy <amal@cryptolab.net> wrote:
What is the recommended way to set dirty ratio and dirty background ratio on boot? As usual the answer can be found in wiki https://wiki.archlinux.org/index.php/Sysctl#Virtual_memory
I added those in /etc/sysctl.d/99-sysctl.conf fileand then added a systemd service to fork a process "sysctl --system" You don't need to create a systemd service, the one already exists
http://www.freedesktop.org/software/systemd/man/systemd-sysctl.service.html
on startup and it didn't seem to work. The command "sysctl --system" run as root is successful in setting the custom options set in /etc/sysctl.d/99-sysctl.conf.
participants (2)
-
Amal Roy
-
Anatol Pomozov