f21c24
diff --git a/profiles/sap-netweaver/script.sh b/profiles/sap-netweaver/script.sh
f21c24
deleted file mode 100755
f21c24
--- a/profiles/sap-netweaver/script.sh
f21c24
+++ /dev/null
f21c24
@@ -1,40 +0,0 @@
f21c24
-#!/bin/bash
f21c24
-
f21c24
-# SAP ktune script
f21c24
-#
f21c24
-# TODO: drop this script and implement native support
f21c24
-#       into plugins
f21c24
-
f21c24
-. /usr/lib/tuned/functions
f21c24
-
f21c24
-start() {
f21c24
-	# The following lines are for autodetection of SAP settings
f21c24
-	SAP_MAIN_MEMORY_TOTAL=`awk '/MemTotal:/ {print $2}' /proc/meminfo`
f21c24
-	SAP_SWAP_SPACE_TOTAL=`awk '/SwapTotal:/ {print $2}' /proc/meminfo`
f21c24
-	# Rounding to full Gigabytes
f21c24
-	SAP_VIRT_MEMORY_TOTAL=$(( ( $SAP_MAIN_MEMORY_TOTAL + $SAP_SWAP_SPACE_TOTAL + 1048576 ) / 1048576 ))
f21c24
-
f21c24
-	# kernel.shmall is in 4 KB pages; minimum 20 GB (SAP Note 941735)
f21c24
-	SAP_SHMALL=$(( $SAP_VIRT_MEMORY_TOTAL * 1024 * 1024 / 4 ))
f21c24
-	# kernel.shmmax is in Bytes; minimum 20 GB (SAP Note 941735)
f21c24
-	SAP_SHMMAX=$(( $SAP_VIRT_MEMORY_TOTAL * 1024 * 1024 * 1024 ))
f21c24
-	CURR_SHMALL=`sysctl -n kernel.shmall`
f21c24
-	CURR_SHMMAX=`sysctl -n kernel.shmmax`
f21c24
-	save_value kernel.shmall "$CURR_SHMALL"
f21c24
-	save_value kernel.shmmax "$CURR_SHMMAX"
f21c24
-	(( $SAP_SHMALL > $CURR_SHMALL )) && sysctl -w kernel.shmall="$SAP_SHMALL"
f21c24
-	(( $SAP_SHMMAX > $CURR_SHMMAX )) && sysctl -w kernel.shmmax="$SAP_SHMMAX"
f21c24
-
f21c24
-	return 0
f21c24
-}
f21c24
-
f21c24
-stop() {
f21c24
-	SHMALL=`restore_value kernel.shmall`
f21c24
-	SHMMAX=`restore_value kernel.shmmax`
f21c24
-	[ "$SHMALL" ] && sysctl -w kernel.shmall="$SHMALL"
f21c24
-	[ "$SHMMAX" ] && sysctl -w kernel.shmmax="$SHMMAX"
f21c24
-
f21c24
-	return 0
f21c24
-}
f21c24
-
f21c24
-process $@
f21c24
diff --git a/profiles/sap-netweaver/tuned.conf b/profiles/sap-netweaver/tuned.conf
f21c24
--- a/profiles/sap-netweaver/tuned.conf
f21c24
+++ b/profiles/sap-netweaver/tuned.conf
f21c24
@@ -8,7 +8,6 @@ include=throughput-performance
f21c24
 
f21c24
 [sysctl]
f21c24
 kernel.sem = 1250 256000 100 8192
f21c24
+kernel.shmall = 18446744073692774399
f21c24
+kernel.shmmax = 18446744073692774399
f21c24
 vm.max_map_count = 2000000
f21c24
-
f21c24
-[script]
f21c24
-script=${i:PROFILE_DIR}/script.sh