@@ -122,8 +122,8 @@ This variable contains the name of the hard-class category for this host
122
122
A variable containing the number of CPU cores detected. On systems which
123
123
provide virtual cores, it is set to the total number of virtual, not
124
124
physical, cores. In addition, on a single-core system the class ` 1_cpu `
125
- is set, and on multi-core systems the class * n * ` _cpus ` is set, where
126
- * n * is the number of cores identified.
125
+ is set, and on multi-core systems the class ` {n} _cpus` is set, where
126
+ ` {n} ` is the number of cores identified.
127
127
128
128
``` cf3
129
129
reports:
@@ -135,6 +135,24 @@ reports:
135
135
136
136
** History:** Was introduced in 3.3.0, Enterprise 2.2.0 (2012)
137
137
138
+ ### sys.cpusockets
139
+
140
+ A variable containing the number of CPU sockets detected. This is currently
141
+ available only on Linux systems with the special
142
+ ` /sys/devices/system/cpu/cpu*/topology/physical_package_id ` information files.
143
+ In addition, on a single-socket system the class ` 1_cpusocket `
144
+ is set, and on multi-socket systems the class ` {n}_cpusockets ` is set, where
145
+ ` {n} ` is the number of sockets identified.
146
+
147
+ ``` cf3
148
+ reports:
149
+ "Number of CPU sockets = $(sys.cpusockets)";
150
+ 2_cpusockets::
151
+ "This system has 2 CPU sockets.";
152
+ ```
153
+
154
+ ** History:** Was introduced in 3.26.0
155
+
138
156
### sys.crontab
139
157
140
158
The variable gives the location of the current users's master crontab
0 commit comments