Bug 1959962

Summary: [SAP AMI only] configure kernel params [rhel-8.4.z]
Product: Red Hat Enterprise Linux 8 Reporter: Irina Gulina <igulina>
Component: ec2-imagesAssignee: Bohdan Khomutskyi <bkhomuts>
Status: CLOSED CURRENTRELEASE QA Contact: Irina Gulina <igulina>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.4CC: lmiksik, lsedlar, pniahodk
Target Milestone: betaKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2007151 2007152 (view as bug list) Environment:
Last Closed: 2021-05-26 08:17:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2007151, 2007152    

Description Irina Gulina 2021-05-12 17:47:43 UTC
Description of problem:
Configure kernel params by creating a file /etc/sysctl.d/sap.conf with the following content:

# SAP settings
vm.max_map_count = 2147483647
kernel.pid_max = 4194304

Version-Release number of selected component (if applicable):
8.4 for SAP on AWS only

How reproducible:
always

Additional info:
SAP note 2772999

Comment 1 Irina Gulina 2021-05-12 17:55:58 UTC
When fixed, the following commands should return the corresponding output: 

# sysctl vm.max_map_count
vm.max_map_count = 2147483647
# sysctl kernel.pid_max
kernel.pid_max = 4194304
# sysctl kernel.sem
kernel.sem = 32000 1024000000 500 32000

Comment 8 Irina Gulina 2021-05-17 17:00:18 UTC
Verified for ami-03d0e318937f0e544

[ec2-user@ip-10-0-1-152 ~]$ cat /etc/redhat-release 
Red Hat Enterprise Linux release 8.4 (Ootpa)
[ec2-user@ip-10-0-1-152 ~]$ /etc/security/limits.d/99-sap.conf
-bash: /etc/security/limits.d/99-sap.conf: Permission denied
[ec2-user@ip-10-0-1-152 ~]$ sudo cat /etc/security/limits.d/99-sap.conf
@sapsys    hard    nofile   65536
@sapsys    soft    nofile   65536
@dba       hard    nofile   65536
@dba       soft    nofile   65536
@sapsys    hard    nproc    unlimited
@sapsys    soft    nproc    unlimited
@dba       hard    nproc    unlimited
@dba       soft    nproc    unlimited
[ec2-user@ip-10-0-1-152 ~]$ sysctl vm.max_map_count
vm.max_map_count = 2147483647
[ec2-user@ip-10-0-1-152 ~]$ sysctl kernel.pid_max
kernel.pid_max = 4194304
[ec2-user@ip-10-0-1-152 ~]$ sysctl kernel.sem
kernel.sem = 32000	1024000000	500	32000

Comment 9 CongLi 2021-05-26 06:12:04 UTC
Hi,

Since the issue described in this bug should be resolved (VERIFIED), could you please close this bug with resolution 'CURRENTRELEASE' if this bug got fixed ?

If the fix for this is not released yet, check if this will ever get fixed. In case of a negative answer then please change it as WONTFIX.

If there's anything else to be done on this BZ, if it's still active, not released yet and we actually intend to release it, then please ignore my message.

Please note: for those bugs which are not included in errata, please add 'TestOnly' keyword, and those bugs with 'TestOnly' keyword will be closed automatically after GA.
TestOnly: Use this when there is no code delivery involved, or for use when code is already upstream and will be incorporated automatically to the next release for testing purposes only.

Thank you.