Skip to content

Commit 0521150

Browse files
dmpopDmitri Popov
authored andcommitted
Saptune32 update (#201)
* saptune 3.2 update
1 parent 7c569cf commit 0521150

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
@@ -64,7 +64,34 @@ To disable and stop the <literal>saptune</literal> service, use the command belo
6464
</para>
6565
<screen>&prompt.root;<command>saptune service disablestop</command></screen>
6666
</sect1>
67-
67+
68+
<sect1 xml:id="sec-saptune-configure">
69+
<title>Configuring &saptune;</title>
70+
<para>
71+
The <command>configure</command> command manages the configuration file
72+
<filename>/etc/sysconfig/saptune</filename>. The command exposes only
73+
user-defined changes, and it helps avoid misconfiguration. Configurable
74+
options include the color scheme, skipped sysctl files, etc. (refer to man 8
75+
saptune for more info). The command can be used as follows:
76+
</para>
77+
<screen>saptune configure <replaceable>PARAMETER</replaceable> <replaceable>VALUE</replaceable></screen>
78+
<para>For example:</para>
79+
<screen>saptune configure COLOR_SCHEME red-noncmpl</screen>
80+
<para>
81+
To view the &saptune; configuration file, use the <command>saptune
82+
configure show</command> command.
83+
</para>
84+
<para>
85+
The following command reverts the &saptune; configuration to its defaults:
86+
</para>
87+
<screen>saptune configure reset</screen>
88+
<important>
89+
<para>
90+
Do not edit the <filename>/etc/sysconfig/saptune</filename> directly, and use <command>saptune configure</command> instead.
91+
</para>
92+
</important>
93+
</sect1>
94+
6895
<sect1 xml:id="sec-saptune-configure-tuning">
6996
<title>Configuring the tuning</title>
7097
<para>
@@ -115,7 +142,7 @@ S4HANA-DBSERVER Solution for running the &hana; database of an &s4h; installatio
115142
</listitem>
116143
<listitem>
117144
<para>
118-
SAP-ASE Solution for running an &ase; database
145+
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.
119146
</para>
120147
</listitem>
121148
<listitem>
@@ -210,6 +237,56 @@ For more information, refer to the <literal>saptune-note(5)</literal> manpage.
210237
<para>
211238
When you are done customizing a Note, restart the <literal>saptune</literal> service to apply the changes.
212239
</para>
240+
<para>
241+
Below is an example of an override file for &sapnote; 2382421:
242+
</para>
243+
<screen># Always:
244+
# - Changing net.ipv4.tcp_max_syn_backlog from 8192 to 65536
245+
# - Disable net.ipv4.tcp_slow_start_after_idle, because the parameter is tuned elsewhere
246+
#
247+
# On virtual machines additionally:
248+
# - Change net.ipv4.tcp_syn_retries from 8 to 16
249+
250+
[sysctl]
251+
net.ipv4.tcp_max_syn_backlog = 65536
252+
net.ipv4.tcp_slow_start_after_idle =
253+
254+
[sysctl:virt=vm]
255+
net.ipv4.tcp_max_syn_backlog = 65536
256+
net.ipv4.tcp_slow_start_after_idle =
257+
net.ipv4.tcp_syn_retries = 16</screen>
258+
<para>
259+
Run the
260+
<command>saptune note verify 2382421</command> command. If the changes
261+
have been applied correctly, the output on a virtual machine should be
262+
as follows:
263+
</para>
264+
<screen><?dbsuse-fo font-size="0.70em"?>SAPNote, ... | Parameter | Expected | Override | Actual | Compliant
265+
----------------+------------------------------------+----------+-----------+--------+-----------
266+
...
267+
2382421, 47 | net.ipv4.tcp_max_syn_backlog | 65536 | 65536 | 65536 | yes
268+
...
269+
2382421, 47 | net.ipv4.tcp_slow_start_after_idle | 0 | untouched | 0 | yes
270+
2382421, 47 | net.ipv4.tcp_syn_retries | 16 | 16 | 16 | yes
271+
...</screen>
272+
<para>
273+
On a bare-metal system, the output should be as shown below:
274+
</para>
275+
<screen><?dbsuse-fo font-size="0.65em"?>SAPNote, ... | Parameter | Expected | Override | Actual | Compliant
276+
----------------+------------------------------------+-----------+-----------+--------+-----------
277+
...
278+
2382421, 47 | net.ipv4.tcp_max_syn_backlog | 65536 | 65536 | 65536 | yes
279+
...
280+
2382421, 47 | net.ipv4.tcp_slow_start_after_idle | 0 | untouched | 0 | yes
281+
2382421, 47 | net.ipv4.tcp_syn_retries | 8 | | 8 | yes
282+
...</screen>
283+
<para>
284+
If changes have not been applied correctly, and you don't see any errors
285+
due to incorrect config file, the <literal>Compliant</literal> field in
286+
the table will <literal>no</literal>, and the values in the
287+
<literal>Actual</literal> and <literal>Expected</literal> fields will
288+
differ.
289+
</para>
213290
</sect2>
214291

215292
<sect2 xml:id="sec-saptune-create">
@@ -340,7 +417,7 @@ The command lists the current system value and the expected values (default and
340417
<note>
341418
<title>Deprecation notice</title>
342419
<para>
343-
The <command>simulate</command> command is deprecated since version 3.1 and is removed in all &saptune; versions in &sles4sap; 16.
420+
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.
344421
</para>
345422
</note>
346423
</sect2>
@@ -410,7 +487,7 @@ An &sapsol; is a combination of &sapnote; configurations grouped logically. It g
410487
To edit a custom &sapsol;, use the following command:
411488
</para>
412489

413-
<screen>&prompt.root;<command>saptune solution edit <replaceable>NOTE</replaceable></command></screen>
490+
<screen>&prompt.root;<command>saptune solution edit <replaceable>SOLUTION</replaceable></command></screen>
414491

415492
<para>
416493
The command opens the default editor (defined in the environment variable <literal>EDITOR</literal>) with the Solution configuration.
@@ -642,7 +719,12 @@ The command does not check the tuning itself. To check the tuning, use the comma
642719

643720
<note>
644721
<para>
645-
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.
722+
If <command>saptune note verify</command> is called without specifying a Note,
723+
it verifies all enabled Notes. To verify the currently applied Notes use the
724+
<command>saptune note verify applied</command> or <command>saptune verify
725+
applied</command> commands. Normally, enabled Notes are also applied, except
726+
when the system has been rebooted without an enabled <systemitem
727+
class="service">saptune.service</systemitem>.
646728
</para>
647729
</note>
648730

@@ -764,6 +846,11 @@ Always investigate the cause for the changed tuning and fix it. If &saptune; sha
764846
<command>saptune version</command>
765847
</para>
766848
</listitem>
849+
<listitem>
850+
<para>
851+
<command>saptune check</command> (only starting with &saptune; 3.2)
852+
</para>
853+
</listitem>
767854
</itemizedlist>
768855
<para>
769856
The machine-readable output makes it possible to integrate &saptune; into scripts and configuration management solutions.
@@ -868,12 +955,22 @@ Always investigate the cause for the changed tuning and fix it. If &saptune; sha
868955
</listitem>
869956
<listitem>
870957
<para>
871-
<command>man 8 saptune-migrate</command>
958+
<command>man 5 saptune-note</command>
959+
</para>
960+
</listitem>
961+
<listitem>
962+
<para>
963+
<command>man 7 saptune-migrate</command>
964+
</para>
965+
</listitem>
966+
<listitem>
967+
<para>
968+
<command>man 5 saptune-solution</command> (new in saptune version 3.2)
872969
</para>
873970
</listitem>
874971
<listitem>
875972
<para>
876-
<command>man 8 saptune-note</command>
973+
<command>man 7 saptune</command> (new in saptune version 3.2)
877974
</para>
878975
</listitem>
879976
</itemizedlist>

0 commit comments

Comments
 (0)