~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/tools/testing/selftests/resctrl/README

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /tools/testing/selftests/resctrl/README (Architecture sparc) and /tools/testing/selftests/resctrl/README (Architecture m68k)


  1 resctrl_tests - resctrl file system test suit       1 resctrl_tests - resctrl file system test suit
  2                                                     2 
  3 Authors:                                            3 Authors:
  4         Fenghua Yu <fenghua.yu@intel.com>            4         Fenghua Yu <fenghua.yu@intel.com>
  5         Sai Praneeth Prakhya <sai.praneeth.prak      5         Sai Praneeth Prakhya <sai.praneeth.prakhya@intel.com>,
  6                                                     6 
  7 resctrl_tests tests various resctrl functional      7 resctrl_tests tests various resctrl functionalities and interfaces including
  8 both software and hardware.                         8 both software and hardware.
  9                                                     9 
 10 Currently it supports Memory Bandwidth Monitor     10 Currently it supports Memory Bandwidth Monitoring test and Memory Bandwidth
 11 Allocation test on Intel RDT hardware. More te     11 Allocation test on Intel RDT hardware. More tests will be added in the future.
 12 And the test suit can be extended to cover AMD     12 And the test suit can be extended to cover AMD QoS and ARM MPAM hardware
 13 as well.                                           13 as well.
 14                                                    14 
 15 resctrl_tests can be run with or without kself     15 resctrl_tests can be run with or without kselftest framework.
 16                                                    16 
 17 WITH KSELFTEST FRAMEWORK                           17 WITH KSELFTEST FRAMEWORK
 18 =======================                            18 =======================
 19                                                    19 
 20 BUILD                                              20 BUILD
 21 -----                                              21 -----
 22                                                    22 
 23 Build executable file "resctrl_tests" from top     23 Build executable file "resctrl_tests" from top level directory of the kernel source:
 24  $ make -C tools/testing/selftests TARGETS=res     24  $ make -C tools/testing/selftests TARGETS=resctrl
 25                                                    25 
 26 RUN                                                26 RUN
 27 ---                                                27 ---
 28                                                    28 
 29 Run resctrl_tests as sudo or root since the te     29 Run resctrl_tests as sudo or root since the test needs to mount resctrl file
 30 system and change contents in the file system.     30 system and change contents in the file system.
 31 Using kselftest framework will run all support     31 Using kselftest framework will run all supported tests within resctrl_tests:
 32                                                    32 
 33  $ sudo make -C tools/testing/selftests TARGET     33  $ sudo make -C tools/testing/selftests TARGETS=resctrl run_tests
 34                                                    34 
 35 More details about kselftest framework can be      35 More details about kselftest framework can be found in
 36 Documentation/dev-tools/kselftest.rst.             36 Documentation/dev-tools/kselftest.rst.
 37                                                    37 
 38 WITHOUT KSELFTEST FRAMEWORK                        38 WITHOUT KSELFTEST FRAMEWORK
 39 ===========================                        39 ===========================
 40                                                    40 
 41 BUILD                                              41 BUILD
 42 -----                                              42 -----
 43                                                    43 
 44 Build executable file "resctrl_tests" from thi     44 Build executable file "resctrl_tests" from this directory(tools/testing/selftests/resctrl/):
 45   $ make                                           45   $ make
 46                                                    46 
 47 RUN                                                47 RUN
 48 ---                                                48 ---
 49                                                    49 
 50 Run resctrl_tests as sudo or root since the te     50 Run resctrl_tests as sudo or root since the test needs to mount resctrl file
 51 system and change contents in the file system.     51 system and change contents in the file system.
 52 Executing the test without any parameter will      52 Executing the test without any parameter will run all supported tests:
 53                                                    53 
 54  $ sudo ./resctrl_tests                            54  $ sudo ./resctrl_tests
 55                                                    55 
 56 OVERVIEW OF EXECUTION                              56 OVERVIEW OF EXECUTION
 57 =====================                              57 =====================
 58                                                    58 
 59 A test case has four stages:                       59 A test case has four stages:
 60                                                    60 
 61   - setup: mount resctrl file system, create g     61   - setup: mount resctrl file system, create group, setup schemata, move test
 62     process pids to tasks, start benchmark.        62     process pids to tasks, start benchmark.
 63   - execute: let benchmark run                     63   - execute: let benchmark run
 64   - verify: get resctrl data and verify the da     64   - verify: get resctrl data and verify the data with another source, e.g.
 65     perf event.                                    65     perf event.
 66   - teardown: umount resctrl and clear tempora     66   - teardown: umount resctrl and clear temporary files.
 67                                                    67 
 68 ARGUMENTS                                          68 ARGUMENTS
 69 =========                                          69 =========
 70                                                    70 
 71 Parameter '-h' shows usage information.            71 Parameter '-h' shows usage information.
 72                                                    72 
 73 usage: resctrl_tests [-h] [-b "benchmark_cmd [     73 usage: resctrl_tests [-h] [-b "benchmark_cmd [options]"] [-t test list] [-n no_of_bits]
 74         -b benchmark_cmd [options]: run specif     74         -b benchmark_cmd [options]: run specified benchmark for MBM, MBA and CMT default benchmark is builtin fill_buf
 75         -t test list: run tests specified in t     75         -t test list: run tests specified in the test list, e.g. -t mbm,mba,cmt,cat
 76         -n no_of_bits: run cache tests using s     76         -n no_of_bits: run cache tests using specified no of bits in cache bit mask
 77         -p cpu_no: specify CPU number to run t     77         -p cpu_no: specify CPU number to run the test. 1 is default
 78         -h: help                                   78         -h: help
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php