docs: add workload-tracing document to admin-guide
Shuah Khan
reviewerPATCH 1/1 docs: add workload-tracing document to admin-guide
Add a new section to the admin-guide with information of interest to application developers and system integrators doing analysis of the Linux kernel for safety critical applications.
This section will contain documents supporting analysis of kernel interactions with applications, and key kernel subsystems expectations.
Add a new workload-tracing document to this new section.
--- Documentation/admin-guide/index.rst | 11 + .../admin-guide/workload-tracing.rst | 486 ++++++++++++++++++ 2 files changed, 497 insertions(+) create mode 100644 Documentation/admin-guide/workload-tracing.rst
Documentation/admin-guide/index.rst +11 -0
@@ -56,6 +56,17 @@ ABI will be found here. sysfs-rules +This is the beginning of a section with information of interest to +application developers and system integrators doing analysis of the +Linux kernel for safety critical applications. Documents supporting +analysis of kernel interactions with applications, and key kernel +subsystems expectations will be found here. + +.. toctree:: + :maxdepth: 1 + + workload-tracing + The rest of this manual consists of various unordered guides on how to configure specific aspects of kernel behavior to your liking.
Documentation/admin-guide/workload-tracing.rst new file +486 -0
486 lines not on this page · raw message
Signature · 1 line
2.34.1
Jonathan Corbet
maintainerQuoted 9 lines · Shuah Khan
Add a new section to the admin-guide with information of interest to application developers and system integrators doing analysis of the Linux kernel for safety critical applications.
This section will contain documents supporting analysis of kernel interactions with applications, and key kernel subsystems expectations.
Add a new workload-tracing document to this new section.
Quoted 7 lines
Signed-off-by Shefali Sharma <[email protected]>Signed-off-by Shuah Khan <[email protected]>--- Documentation/admin-guide/index.rst | 11 + .../admin-guide/workload-tracing.rst | 486 ++++++++++++++++++ 2 files changed, 497 insertions(+) create mode 100644 Documentation/admin-guide/workload-tracing.rst
This seems like generally good stuff, thanks. I have a few nits...
Quoted 7 lines
Documentation/admin-guide/workload-tracing.rst new file +7
-0+Key Points +========== + + * Understanding system resources necessary to build and run a workload + is important. + * Linux tracing and strace can be used to discover the system resources + in use by a workload. The completeness of the system usage information
Documentation/admin-guide/workload-tracing.rst line 26
Quoted 10 lines
Documentation/admin-guide/workload-tracing.rst new file +10
-0+ depends on the completeness of coverage of a workload. + * Performance and security of the operating system can be analyzed with + the help of tools such as `perf <https://man7.org/linux/man-pages/man1/perf.1.html>`_, `stress-ng <https://www.mankier.com/1/stress-ng>`_, `paxtest <https://github.com/opntr/paxtest-freebsd/blob/hardenedbsd/0.9.14-hbsd/README>`_. + * Once we discover and understand the workload needs, we can focus on them + to avoid regressions and use it to evaluate safety considerations. + +Methodology +=========== + +`strace <https://man7.org/linux/man-pages/man1/strace.1.html>`_ is a diagnostic, instructional, and debugging tool and can be used to discover the system resources in use by a workload. Once we discover and understand the workload needs, we can focus on them to avoid regressions and use it to evaluate safety considerations. We chose strace tool to trace workloads.
I know that the 80-column limit is controversial to some; I happen to believe that text should certainly adhere to it for basic readability reasons. But can we all agree that nearly 400 columns is too many? :) Please line-break the whole document properly.
Quoted 6 lines
Documentation/admin-guide/workload-tracing.rst new file +6
-0+Install tools to build Linux kernel and tools in kernel repository. scripts/ver_linux is a good way to check if your system already has the necessary tools. +:: + + sudo apt-get build-essentials flex bison yacc + sudo apt install libelf-dev systemtap-sdt-dev libaudit-dev libslang2-dev libperl-dev libdw-dev +
Documentation/admin-guide/workload-tracing.rst line 59
Quoted 10 lines
Documentation/admin-guide/workload-tracing.rst new file +10
-0+Browsing kernel sources +:: + + sudo apt-get install cscope + +Install stress-ng and paxtest +:: + + apt-get install stress-ng + apt-get install paxtest
For literal blocks, the "::" can go at the end of the previous line, which makes the document a bit more readable.
[...]
Documentation/admin-guide/workload-tracing.rst line 480
Quoted 12 lines
Documentation/admin-guide/workload-tracing.rst new file +12
-0+SPDX-License-Identifier: CC-BY-4.0 +================================== +This document is released under the Creative Commons Attribution 4.0 International License, available at https://creativecommons.org/licenses/by/4.0/legalcode. Pursuant to Section 5 of the license, please note that the following disclaimers apply (capitalized terms have the meanings set forth in the license). To the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You. + +To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You. + +The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability. + +Note: Only the content of this RST file as found in the Linux kernel sources +is available under CC-BY-4.0, as versions of this text that were processed +(for example by the kernel's build system) might contain content taken from +files which use a more restrictive license.
This is just the kind of license boilerplate that we have been trying hard to get rid of. *Dual*-licensing with CC4 is OK, and the SPDX line at the top properly reflects that; this additional text shouldn't be here.
Quoted 2 lines
+..
+ end-of-content
...and that seems a bit redundant somehow...:)
Thanks,
jon
Shuah Khan
reviewerQuoted 19 lines · Jonathan Corbet
Quoted 9 lines · Shuah Khan
Add a new section to the admin-guide with information of interest to application developers and system integrators doing analysis of the Linux kernel for safety critical applications.
This section will contain documents supporting analysis of kernel interactions with applications, and key kernel subsystems expectations.
Add a new workload-tracing document to this new section.
Quoted 7 lines
Signed-off-by Shefali Sharma <[email protected]>Signed-off-by Shuah Khan <[email protected]>--- Documentation/admin-guide/index.rst | 11 + .../admin-guide/workload-tracing.rst | 486 ++++++++++++++++++ 2 files changed, 497 insertions(+)create mode 100644
Documentation/admin-guide/workload-tracing.rst
Quoted 1 line
This seems like generally good stuff, thanks. I have a few nits...
Thanks for the review.
Quoted 15 lines
Quoted 15 lines
Documentation/admin-guide/workload-tracing.rst new file +14
-0+Key Points +========== + + * Understanding system resources necessary to build and run a workload + is important. + * Linux tracing and strace can be used to discover the system resources + in use by a workload. The completeness of the system usage information + depends on the completeness of coverage of a workload. + * Performance and security of the operating system can be analyzed with + the help of tools such as `perf <https://man7.org/linux/man-pages/man1/perf.1.html>`_, `stress-ng <https://www.mankier.com/1/stress-ng>`_, `paxtest <https://github.com/opntr/paxtest-freebsd/blob/hardenedbsd/0.9.14-hbsd/README>`_. + * Once we discover and understand the workload needs, we can focus on them + to avoid regressions and use it to evaluate safety considerations. + +Methodology
Quoted 8 lines
Quoted 3 lines
+===========
+
+strace <https://man7.org/linux/man-pages/man1/strace.1.html>_ is a diagnostic, instructional, and debugging tool and can be used to discover the system resources in use by a workload. Once we discover and understand the workload needs, we can focus on them to avoid regressions and use it to evaluate safety considerations. We chose strace tool to trace workloads.I know that the 80-column limit is controversial to some; I happen to believe that text should certainly adhere to it for basic readability reasons. But can we all agree that nearly 400 columns is too many? :) Please line-break the whole document properly.
Yeah that is my bad. I noticed it once the patch was in my Inbox. I will fix them all up.
Quoted 12 lines
Quoted 12 lines
Documentation/admin-guide/workload-tracing.rst new file +11
-0+Install tools to build Linux kernel and tools in kernel repository. scripts/ver_linux is a good way to check if your system already has the necessary tools. +:: + + sudo apt-get build-essentials flex bison yacc + sudo apt install libelf-dev systemtap-sdt-dev libaudit-dev libslang2-dev libperl-dev libdw-dev + +Browsing kernel sources +:: + + sudo apt-get install cscope +
Quoted 8 lines
Documentation/admin-guide/workload-tracing.rst line 59
Quoted 5 lines
Documentation/admin-guide/workload-tracing.rst new file +5
-0+Install stress-ng and paxtest +:: + + apt-get install stress-ng + apt-get install paxtestFor literal blocks, the "::" can go at the end of the previous line, which makes the document a bit more readable.
Makes sense. Will fix it.
Quoted 20 lines
[...]
Documentation/admin-guide/workload-tracing.rst line 480
Quoted 12 lines
Documentation/admin-guide/workload-tracing.rst new file +12
-0+SPDX-License-Identifier: CC-BY-4.0 +================================== +This document is released under the Creative Commons Attribution 4.0 International License, available at https://creativecommons.org/licenses/by/4.0/legalcode. Pursuant to Section 5 of the license, please note that the following disclaimers apply (capitalized terms have the meanings set forth in the license). To the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You. + +To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You. + +The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability. + +Note: Only the content of this RST file as found in the Linux kernel sources +is available under CC-BY-4.0, as versions of this text that were processed +(for example by the kernel's build system) might contain content taken from +files which use a more restrictive license.This is just the kind of license boilerplate that we have been trying hard to get rid of. *Dual*-licensing with CC4 is OK, and the SPDX line at the top properly reflects that; this additional text shouldn't be here.
Okay - I can get rid of this.
Quoted 4 lines
Quoted 2 lines
+..
+ end-of-content...and that seems a bit redundant somehow...:)
Yup. Correct.
thanks,
-- Shuah
Shuah Khan
reviewerQuoted 20 lines · Shuah Khan
Quoted 19 lines · Jonathan Corbet
Quoted 16 lines · Shuah Khan
Add a new section to the admin-guide with information of interest to application developers and system integrators doing analysis of the Linux kernel for safety critical applications.
This section will contain documents supporting analysis of kernel interactions with applications, and key kernel subsystems expectations.
Add a new workload-tracing document to this new section.
Signed-off-by Shefali Sharma <[email protected]>Signed-off-by Shuah Khan <[email protected]>---
Documentation/admin-guide/index.rst | 11 + .../admin-guide/workload-tracing.rst | 486 ++++++++++++++++++2 files changed, 497 insertions(+)create mode 100644
Documentation/admin-guide/workload-tracing.rst
Quoted 4 lines
Quoted 1 line
This seems like generally good stuff, thanks. I have a few nits...
Thanks for the review.
Cleaned it up and sent you v2. Odd. checkpatch.pl didn't catch long lines in the document. I was so focused on verifying the html doc, I totally missed the cut & pasted long lines. Anyway it is all fixed now in v2.
thanks,
-- Shuah