Skip to content

Commit 6fc7e8b

Browse files
dmpopDmitri Popov
authored andcommitted
Saptune32 update (#201)
* saptune 3.2 update
1 parent b6fc257 commit 6fc7e8b

File tree

1 file changed

+104
-7
lines changed

1 file changed

+104
-7
lines changed

xml/s4s_tune.xml

Lines changed: 104 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,34 @@ To disable and stop the <literal>saptune</literal> service, use the command belo
5656
</para>
5757
<screen>&prompt.root;<command>saptune service disablestop</command></screen>
5858
</sect1>
59-
59+
60+
<sect1 xml:id="sec-saptune-configure">
61+
<title>Configuring &saptune;</title>
62+
<para>
63+
The <command>configure</command> command manages the configuration file
64+
<filename>/etc/sysconfig/saptune</filename>. The command exposes only
65+
user-defined changes, and it helps avoid misconfiguration. Configurable
66+
options include the color scheme, skipped sysctl files, etc. (refer to man 8
67+
saptune for more info). The command can be used as follows:
68+
</para>
69+
<screen>saptune configure <replaceable>PARAMETER</replaceable> <replaceable>VALUE</replaceable></screen>
70+
<para>For example:</para>
71+
<screen>saptune configure COLOR_SCHEME red-noncmpl</screen>
72+
<para>
73+
To view the &saptune; configuration file, use the <command>saptune
74+
configure show</command> command.
75+
</para>
76+
<para>
77+
The following command reverts the &saptune; configuration to its defaults:
78+
</para>
79+
<screen>saptune configure reset</screen>
80+
<important>
81+
<para>
82+
Do not edit the <filename>/etc/sysconfig/saptune</filename> directly, and use <command>saptune configure</command> instead.
83+
</para>
84+
</important>
85+
</sect1>
86+
6087
<sect1 xml:id="sec-saptune-configure-tuning">
6188
<title>Configuring the tuning</title>
6289
<para>
@@ -107,7 +134,7 @@ S4HANA-DBSERVER Solution for running the &hana; database of an &s4h; installatio
107134
</listitem>
108135
<listitem>
109136
<para>
110-
SAP-ASE Solution for running an &ase; database
137+
SAP-ASE Solution for running an &ase; database. Note that the SAP-ASE Solution and the associated &sapnote;s 1805750 and 1680803 are deprecated and removed from &saptune; 3.2 on &slea; 16. The default settings are sufficient for ASE, so no additional tuning is required.
111138
</para>
112139
</listitem>
113140
<listitem>
@@ -202,6 +229,56 @@ For more information, refer to the <literal>saptune-note(5)</literal> manpage.
202229
<para>
203230
When you are done customizing a Note, restart the <literal>saptune</literal> service to apply the changes.
204231
</para>
232+
<para>
233+
Below is an example of an override file for &sapnote; 2382421:
234+
</para>
235+
<screen># Always:
236+
# - Changing net.ipv4.tcp_max_syn_backlog from 8192 to 65536
237+
# - Disable net.ipv4.tcp_slow_start_after_idle, because the parameter is tuned elsewhere
238+
#
239+
# On virtual machines additionally:
240+
# - Change net.ipv4.tcp_syn_retries from 8 to 16
241+
242+
[sysctl]
243+
net.ipv4.tcp_max_syn_backlog = 65536
244+
net.ipv4.tcp_slow_start_after_idle =
245+
246+
[sysctl:virt=vm]
247+
net.ipv4.tcp_max_syn_backlog = 65536
248+
net.ipv4.tcp_slow_start_after_idle =
249+
net.ipv4.tcp_syn_retries = 16</screen>
250+
<para>
251+
Run the
252+
<command>saptune note verify 2382421</command> command. If the changes
253+
have been applied correctly, the output on a virtual machine should be
254+
as follows:
255+
</para>
256+
<screen><?dbsuse-fo font-size="0.70em"?>SAPNote, ... | Parameter | Expected | Override | Actual | Compliant
257+
----------------+------------------------------------+----------+-----------+--------+-----------
258+
...
259+
2382421, 47 | net.ipv4.tcp_max_syn_backlog | 65536 | 65536 | 65536 | yes
260+
...
261+
2382421, 47 | net.ipv4.tcp_slow_start_after_idle | 0 | untouched | 0 | yes
262+
2382421, 47 | net.ipv4.tcp_syn_retries | 16 | 16 | 16 | yes
263+
...</screen>
264+
<para>
265+
On a bare-metal system, the output should be as shown below:
266+
</para>
267+
<screen><?dbsuse-fo font-size="0.65em"?>SAPNote, ... | Parameter | Expected | Override | Actual | Compliant
268+
----------------+------------------------------------+-----------+-----------+--------+-----------
269+
...
270+
2382421, 47 | net.ipv4.tcp_max_syn_backlog | 65536 | 65536 | 65536 | yes
271+
...
272+
2382421, 47 | net.ipv4.tcp_slow_start_after_idle | 0 | untouched | 0 | yes
273+
2382421, 47 | net.ipv4.tcp_syn_retries | 8 | | 8 | yes
274+
...</screen>
275+
<para>
276+
If changes have not been applied correctly, and you don't see any errors
277+
due to incorrect config file, the <literal>Compliant</literal> field in
278+
the table will <literal>no</literal>, and the values in the
279+
<literal>Actual</literal> and <literal>Expected</literal> fields will
280+
differ.
281+
</para>
205282
</sect2>
206283

207284
<sect2 xml:id="sec-saptune-create">
@@ -332,7 +409,7 @@ The command lists the current system value and the expected values (default and
332409
<note>
333410
<title>Deprecation notice</title>
334411
<para>
335-
The <command>simulate</command> command is deprecated since version 3.1 and is removed in all &saptune; versions in &sles4sap; 16.
412+
The <command>simulate</command> command is deprecated since version 3.1 &sles4sap; prior to version 16, and it is removed in all &saptune; versions in &sles4sap; 16 as well as &slea; 16.
336413
</para>
337414
</note>
338415
</sect2>
@@ -402,7 +479,7 @@ An &sapsol; is a combination of &sapnote; configurations grouped logically. It g
402479
To edit a custom &sapsol;, use the following command:
403480
</para>
404481

405-
<screen>&prompt.root;<command>saptune solution edit <replaceable>NOTE</replaceable></command></screen>
482+
<screen>&prompt.root;<command>saptune solution edit <replaceable>SOLUTION</replaceable></command></screen>
406483

407484
<para>
408485
The command opens the default editor (defined in the environment variable <literal>EDITOR</literal>) with the Solution configuration.
@@ -634,7 +711,12 @@ The command does not check the tuning itself. To check the tuning, use the comma
634711

635712
<note>
636713
<para>
637-
If <command>saptune note verify</command> is called without specifying a Note, it verifies all currently applied Notes. This allows you to verify your entire current tuning. As an alternative, use the <command>saptune solution verify</command> command that can also verify all currently applied Notes.
714+
If <command>saptune note verify</command> is called without specifying a Note,
715+
it verifies all enabled Notes. To verify the currently applied Notes use the
716+
<command>saptune note verify applied</command> or <command>saptune verify
717+
applied</command> commands. Normally, enabled Notes are also applied, except
718+
when the system has been rebooted without an enabled <systemitem
719+
class="service">saptune.service</systemitem>.
638720
</para>
639721
</note>
640722

@@ -756,6 +838,11 @@ Always investigate the cause for the changed tuning and fix it. If &saptune; sha
756838
<command>saptune version</command>
757839
</para>
758840
</listitem>
841+
<listitem>
842+
<para>
843+
<command>saptune check</command> (only starting with &saptune; 3.2)
844+
</para>
845+
</listitem>
759846
</itemizedlist>
760847
<para>
761848
The machine-readable output makes it possible to integrate &saptune; into scripts and configuration management solutions.
@@ -860,12 +947,22 @@ Always investigate the cause for the changed tuning and fix it. If &saptune; sha
860947
</listitem>
861948
<listitem>
862949
<para>
863-
<command>man 8 saptune-migrate</command>
950+
<command>man 5 saptune-note</command>
951+
</para>
952+
</listitem>
953+
<listitem>
954+
<para>
955+
<command>man 7 saptune-migrate</command>
956+
</para>
957+
</listitem>
958+
<listitem>
959+
<para>
960+
<command>man 5 saptune-solution</command> (new in saptune version 3.2)
864961
</para>
865962
</listitem>
866963
<listitem>
867964
<para>
868-
<command>man 8 saptune-note</command>
965+
<command>man 7 saptune</command> (new in saptune version 3.2)
869966
</para>
870967
</listitem>
871968
</itemizedlist>

0 commit comments

Comments
 (0)