Debian Codegraph @

tools/membw/README

raw
1 ========================================================================
2 README for Membw tool
3
4 Mar 2024
5
6 ========================================================================
7
8 Contents
9 ========
10
11 - Overview
12 - Requirements and Installation
13 - Usage
14 - Limitations
15 - Legal Disclaimer
16
17
18 Overview
19 ========
20
21 The membw software tool provides a way to stress local and remote memory
22 bandwidth using a variety of memory operations. The tool allows the user
23 to choose an operation to generate a specified amount of memory bandwidth
24 on a selected core.
25
26 Requirements and Installation
27 =============================
28
29 For installation of the Intel(R) Membw tool follow below instructions:
30
31 To compile:
32 "make" for building tool
33 "make clean" for clearing all object files
34
35 Usage
36 =====
37
38 Usage: For Membw:
39 "./membw --help" This option will display extensive help page.
40 Please refer to "--help" option for usage details
41
42 "./membw -c <cpu> -b <BW [MB/s]> <operation type>"
43
44 <cpu> Select CPU ID to generate bandwidth
45
46 <BW [MB/s]> Select amount of bandwidth to generate
47
48 <operation type> Select operation type from the following list
49 --prefetch-t0 prefetcht0
50 --prefetch-t1 prefetcht1
51 --prefetch-t2 prefetcht2
52 --prefetch-nta prefetchtnta
53 --prefetch-w prefetchw
54 --read x86 loads
55 --read-sse SSE loads
56 --nt-read-sse SSE NT loads
57 --read-mod-write x86 load XOR write
58 --write x86 stores
59 --write-avx512 AVX512 stores
60 --write-clwb x86 stores + clwb
61 --write-flush x86 stores & clflush (naturally generates loads & stores)
62 --write-sse SSE stores
63 --write-sse-flush SSE stores & clflush (naturally generates loads & stores)
64 --nt-write x86 NT stores
65 --nt-write-avx512 AVX512 NT stores
66 --nt-write-clwb x86 NT stores + clwb
67 --nt-write-sse SSE NT stores
68
69 Limitations
70 ===========
71
72 The tool allocates a chunk of memory as much as twice of LLC physical cache size.
73 It uses standard means of the C library for that allocation. Therefore it is
74 affected by all OS placement policy limitations such as NUMA-awareness, etc...
75 For example, when SNC is enabled NUMA-aware OS allocates only addresses local to
76 the SNC-domain and only SNC-domain local cache slices are populated. In the case
77 of SNC-2 it populates 50% of cache slices. For SNC-3 the population will be 33%.
78 For SNC-4 only 25% of the cache will be populated.
79 Possibly there are other limitations exist/will exist on OS or/and hardware level
80 that will prevent the tool from populating 100% of cache/memory bandwidth.
81
82 Legal Disclaimer
83 ================
84
85 THIS SOFTWARE IS PROVIDED BY INTEL"AS IS". NO LICENSE, EXPRESS OR
86 IMPLIED, BY ESTOPPEL OR OTHERWISE, TO ANY INTELLECTUAL PROPERTY RIGHTS
87 ARE GRANTED THROUGH USE. EXCEPT AS PROVIDED IN INTEL'S TERMS AND
88 CONDITIONS OF SALE, INTEL ASSUMES NO LIABILITY WHATSOEVER AND INTEL
89 DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY, RELATING TO SALE AND/OR
90 USE OF INTEL PRODUCTS INCLUDING LIABILITY OR WARRANTIES RELATING TO
91 FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR INFRINGEMENT
92 OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT.