Skip to content
Welcome To Charanjit Cheema Blog

Welcome To Charanjit Cheema Blog

An Open Source and Cloud Blog

Menu
  • Home
  • About Me!
  • Way to my Technical Blog
  • Contact me
  • Privacy Policy
Menu

How to tune SLES 12 for SAP Application SP3 for optimizing SAP HANA system performance

Posted on July 12, 2020 by Charanjit Singh

I am working as a Linux Administrator and supporting customer environment which have SAP BW Application and HANA DB services hosted on SUSE Linux Enterprise Server (SLES) 12 for SAP Application SP3.

One day I got a request from my customer SAP application team to tune the OS that is SLES 12 for SAP Application SP3 server for optimizing the HANA service hosted on it. I got a long list of parameters from SAP application team which they asked me to tune server. As a lazy system administrator, I always try to find a solution to do things in less efforts thus I searched and found solution sapconf tool for addressing HANA server tuning requirement in less efforts and without errors.

Suse has released sapconf tool from SLES 12 SP1 onward to fine tune the OS parameters for preparing system to host SAP Workloads. Sapconf tool work closely with SLES 12 tuned service and provides different SAP recommended pre-configured SAP tuned profiles which meet different SAP Application or HANA service requirement but if you have special needs, you can also customize the tool to better suit your requirement (which I will show you in this tutorial).

Below are the key improvements of sapconf:

• One central configuration file (besides the tuned config)
• Simplified and adjusted configuration based on current SAP notes
• Unified sap-hana and sap-netweaver profiles to simplify deployment
• Improved documentation

Below are the available SAP tuned profiles in my SLES 12 for SAP Application SP3 server:

In this tutorial I will guide you how to install sapconf tool, customize some network parameters in sap-hana profile and activate the sap-hana tuned profile for optimizing system for hosting SAP HANA DB service. For this tutorial I am using OS: SLES 12 for SAP Application SP3

Installation and configuration of sapconf

1. Install the sapconf tool in your server with zypper command:

 
# zypper install sapconf
Refreshing service 'SUSE_Linux_Enterprise_Server_12_SP3_x86_64'.
Loading repository data...

Reading installed packages...
Resolving package dependencies...

The following 4 NEW packages are going to be installed:
sapconf sysstat tuned uuidd

4 new packages to install.
Overall download size: 534.7 KiB. Already cached: 0 B. After the operation, additional 1.4 MiB will be used.
Continue? [y/n/...? shows all options] (y):
Retrieving package
...
(removed for brevity)
...
Additional rpm output:
Created symlink from /etc/systemd/system/sockets.target.wants/uuidd.socket to /usr/lib/systemd/system/uuidd.socket.
...
Additional rpm output:
Updating /etc/sysconfig/sapnote-1680803...
Updating /etc/sysconfig/sapconf...
Created symlink from /etc/systemd/system/multi-user.target.wants/sapconf.service to /usr/lib/systemd/system/sapconf.service.
Set the maximum number of OS tasks each user may run concurrently (UserTasksMax) to 'infinity'
With this setting your system is vulnerable to fork bomb attacks.
Please reboot the system for the UserTasksMax change to become effective

2. Start the sapconf and tuned service and enable them in startup

systemctl --now enable sapconf
systemctl --now enable tuned

3. Create directory with name of sap-hana inside path /etc/tuned

mkdir /etc/tuned/sap-hana

4. Copy the sap-hana tuned profile from path /usr/lib/tuned/sap-hana/tuned.conf to /etc/tuned/sap-hana/tuned.conf

cp -vp /usr/lib/tuned/sap-hana/tuned.conf /etc/tuned/sap-hana/

5. Configure the below network parameters and script.sh path to copied configuration file

a. Customized Network Parameters

net.core.somaxconn = 4096
net.ipv4.tcp_max_syn_backlog = 8192

b. Script (script.sh) path

/usr/lib/tuned/sap-hana/script.sh

Example of my customized sap-hana tuned configuration file

6. Now activate the sap-hana profile to apply the SAP recommended and your customized settings. Through tuned-adm command you can see activated profile status

7. Below are the customized network parameters which modified after activating the sap-hana profile

Now you can see how it is easy to tune SAP recommended settings in OS SLES 12 for SAP Application SP3 with help of sapconf tool it saves your time and efforts also reduce human errors.

Loading

  • Author
  • Recent Posts
Charanjit Singh
Follow him
Charanjit Singh
Charanjit is currently working as a Cloud Architect at Mphasis, with 18 years of experience in IT infrastructure projects, implementation, and support. While his main role is as a DevOps engineer, he holds a Cloud Architect position and has strong skills in cloud technologies and automation. His expertise includes Terraform, AWS, Azure DevOps, Azure Cloud, VMware, and Linux systems.

Charanjit is passionate about automating tasks and improving processes. He uses tools like Terraform and Azure DevOps to build and manage cloud infrastructure and streamline deployment. He also enjoys using Shell scripts and Ansible playbooks to make systems run more efficiently.

In his free time, Charanjit enjoys learning about new technologies and sharing his knowledge through his blog. When he’s not working, he likes listening to music, having a cup of coffee, and relaxing in nature.

You can connect with Charanjit on Twitter, Facebook, LinkedIn, or email him at charanjit.cheema@cjcheema.com.
Charanjit Singh
Follow him
Latest posts by Charanjit Singh (see all)
  • How to Deploy Docker Containers with NGINX on AWS EC2 Using Ansible and GitHub Actions - April 26, 2025
  • No More DynamoDB! Use Native S3 locking for Terraform State - February 7, 2025
  • How to Bring and Manage Manually Created AWS Resources Under Terraform Management - January 31, 2025

Like this:

Like Loading...

Related

Leave a ReplyCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Tags

AWS Cloud Computing Dockers Networking Open Networking OpenSource RHEL-CentOS SDN Server Hardware SLES tcpdump Ubuntu WSL

Follow me @

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 2 other subscribers

Recent Posts

  • How to Deploy Docker Containers with NGINX on AWS EC2 Using Ansible and GitHub Actions
  • No More DynamoDB! Use Native S3 locking for Terraform State
  • How to Bring and Manage Manually Created AWS Resources Under Terraform Management
  • Iterating Cloud Resource Provisioning Using Terraform Count and For_Each Meta-Arguments
  • Terraform and Ansible Collaboration for AWS Cloud Deployment

Recent Comments

  1. Charanjit Singh on Terraform and Ansible Collaboration for AWS Cloud Deployment
  2. christinatodd2020aeaa798563 on Terraform and Ansible Collaboration for AWS Cloud Deployment
  3. Charanjit Singh on How to Set password policy in CentOS or RHEL system
  4. SAURABH on How to recover or rebuild initramfs in CentOS 7 Linux
  5. Sangita on How to Set password policy in CentOS or RHEL system

Archives

  • April 2025
  • February 2025
  • January 2025
  • August 2024
  • July 2024
  • June 2024
  • January 2024
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • September 2022
  • August 2022
  • July 2020
  • May 2020
  • February 2020
  • November 2019
  • June 2019
  • May 2019
  • March 2019
  • February 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • June 2018
  • May 2018
  • April 2018

Categories

  • Automation
  • Cloud Computing
  • Coding
  • CyberSecurity
  • Networking
  • OpenSource
  • RHEL-CentOS
  • Server Hardware
  • SLES
  • Technical Blog
  • Ubuntu
  • WSL

Blog Stats

  • 18,353 hits
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Home
  • About Me!
  • Way to my Technical Blog
  • Contact me
  • Privacy Policy
© 2025 Welcome To Charanjit Cheema Blog | Powered by Superbs Personal Blog theme
 

Loading Comments...
 

    %d