7.3 Tuning Systems with saptune

Using saptune, you can tune a system for SAP NetWeaver, SAP HANA/SAP BusinessOne, and SAP S/4HANA applications. This method relies on the system tuning service tuned. However, the preferred method to tune systems for SAP workloads is using sapconf (see Section 7.2, Tuning Systems with sapconf).

If you used the SAP Installation Wizard to install an SAP application, tuned is usually already active and configured with a profile for the application you installed.

If you did not use the SAP Installation Wizard to install an SAP application, make sure that the packages tuned and saptune are installed on your system.

7.3.1 Enabling saptune to Tune for an SAP Application

  1. To tune a system, first find a tuning profile. To find the appropriate profile, use:

    tux > saptune solution list

    saptune knows the following solution profiles:

    • BOBJ Profile for servers hosting SAP BusinessObjects.

    • HANA Profile for servers hosting an SAP HANA database.

    • MAXDB Profile for servers hosting a MaxDB database.

    • NETWEAVER Profile for servers hosting an SAP NetWeaver application.

    • S4HANA-APPSERVER Profile for servers hosting an SAP S/4HANA application.

    • S4HANA-DBSERVER Profile for servers hosting the SAP HANA database of an SAP S/4HANA installation.

    • SAP-ASE Profile for servers hosting an SAP Adaptive Server Enterprise database (formerly Sybase Adaptive Server Enterprise).

    Alternatively, you can tune the computer according to recommendations from specific SAP Notes. A list of notes that you can tune for is available via:

    root # saptune note list

    The referenced SAP Notes are available from the SAP Web site. The list entries starting with SUSE-GUIDE follow the recommendations made in https://www.suse.com/communities/blog/sles-1112-os-tuning-optimisation-guide-part-1/ and https://www.suse.com/communities/blog/sles-1112-network-cpu-tuning-optimization-part-2/.

    • To set up saptune with a preconfigured solution, use:

      root # saptune solution apply SOLUTION
    • To set up saptune for the recommendations of a specific SAP Note, use:

      root # saptune note apply NOTE

    HINT: Combining Optimizations

    You can freely combine solutions and notes. Combining multiple optimizations will never create conflicts.

  2. Finally, enable the tuned profile saptune and make sure the tuned daemon is active:

    root # saptune daemon start

In the background, saptune applies a tuned profile also named saptune that is dynamically customized according to selected solutions and notes. Using tuned-adm list, you can also see this profile.

7.3.2 Disabling saptune

To disable saptune, use one of the following ways:

  • Completely disable the daemon tuned:

    root # systemctl disable tuned
  • Switch to a different tuned profile:

    root # tuned-adm profile PROFILE_NAME

7.3.3 Tuning Kernel Parameters Manually Using sysctl

In addition to or instead of tuning kernel parameters using saptune, you can also use sysctl to make manual adjustments to kernel parameters. However, such changes using sysctl do not persist across reboots by default. To make them persist across reboots, add them to the file /etc/sysctl.conf (or another configuration file read by sysctl).

For more information about sysctl, see the man pages sysctl(8), sysctl.conf(5), and sysctl.d(5).

7.3.4 For More Information

See the following man pages:

  • man 8 tuned-adm

  • man 8 saptune

Also see the project home page https://github.com/HouzuoGuo/saptune/.