Linux OS Tuning Script Examples

    This page includes script examples that can be used to tune theoperating system (OS) in case you are using Debian or CentOS,along with instructions on how to install the scripts.

    It is important that the script is set up in a way that it getsexecuted even after the machine reboots. Instructions on how toconfigure your system so that the script executes during theboot process can be found below.

    Script:

    Installation Instructions:

    /etc/init.d/arangodb-os-optimization

    • Set correct permission, to mark the file executable:

    sudo chmod 755 /etc/init.d/arangodb-os-optimization

    • On Ubuntu, use the following command to configure your systemto execute the script during the boot process:

    Note:

    You might need the package sysfsutils. If this is the case,please install it via:

    sudo apt install sysfsutils

    Important:

    To optimize the OS “now”, without having to restart the system,the script must also be directly executed once.

    RedHat / CentOS / SUSE

    Script:

    • Set correct permission, to mark the file executable. As root:

    chmod 755 /etc/init.d/arangodb-os-optimization

    • On CentOS/RedHat, use the following commands to configure your systemto execute the script during the boot process. As root:

    Note:

    You might need the package sysfsutils. If this is the case,please install it, as root, via:

    yum install sysfsutils

    Important: