Linux system utilities

Help with projects and applications, client configuration, system software tweaks.
The pinboard for cheat sheets.
Post Reply
User avatar
biodoc
TAAT Member
Reactions:
Posts: 855
Joined: Sun Sep 15, 2019 3:22 pm
Location: Massachusetts, USA

Linux system utilities

Post by biodoc » Mon Aug 23, 2021 1:27 pm

I'm a bit bored so I thought I'd start a thread on useful system utilities for linux.

CPU-x

If you like cpu-z on the windows side, cpu-x is very similar.

Installation (mint): sudo apt install cpu-x

Running: To obtain the most information, run it as root. cpu-x --help gives all the options

sudo cpu-x -g <----- Start graphical user interface (GUI) (default)
sudo cpu-x -n <------ Start text-based user interface (TUI) Can be run over ssh connections.
sudo cpu-x -d <------ Dump all data on standard output and exit. Can be run over ssh connections
Last edited by biodoc on Tue Aug 24, 2021 5:06 am, edited 1 time in total.

crashtech
TAAT Member
Reactions:
Posts: 1225
Joined: Sun Sep 15, 2019 4:45 pm
Location: Idaho, USA

Re: Linux system utilities

Post by crashtech » Tue Aug 24, 2021 12:18 am

It calls my 3900X an Epyc Naples. :D

User avatar
biodoc
TAAT Member
Reactions:
Posts: 855
Joined: Sun Sep 15, 2019 3:22 pm
Location: Massachusetts, USA

Re: Linux system utilities

Post by biodoc » Tue Aug 24, 2021 5:59 am

crashtech wrote:
Tue Aug 24, 2021 12:18 am
It calls my 3900X an Epyc Naples. :D
Same here on my 3950X. :)

The app version distributed by mint is an older version. Perhaps installing the latest version manually would fix that error.

mark@x32-linux:~$ cpu-x -V
CPU-X 3.2.4 (version 4.2.0 is available)
Copyright © 2014-2019 Xorg

StefanR5R
TAAT Member
Reactions:
Posts: 1205
Joined: Wed Sep 25, 2019 4:32 pm

Re: Linux system utilities

Post by StefanR5R » Sun Oct 17, 2021 9:03 am

How to view processor topology:

lscpu -e
output examples
Show
4-core/8-thread Haswell:

Code: Select all

CPU SOCKET CORE L1d:L1i:L2:L3 ONLINE    MAXMHZ   MINMHZ      MHZ
  0      0    0 0:0:0:0          yes 3800.0000 800.0000 3599.946
  1      0    1 1:1:1:0          yes 3800.0000 800.0000 3684.440
  2      0    2 2:2:2:0          yes 3800.0000 800.0000 3684.243
  3      0    3 3:3:3:0          yes 3800.0000 800.0000 3684.089
  4      0    0 0:0:0:0          yes 3800.0000 800.0000   27.361
  5      0    1 1:1:1:0          yes 3800.0000 800.0000  800.000
  6      0    2 2:2:2:0          yes 3800.0000 800.0000  800.000
  7      0    3 3:3:3:0          yes 3800.0000 800.0000  800.000
dual-socket (2x) 22c/44t Broadwell-EP:

Code: Select all

CPU NODE SOCKET CORE L1d:L1i:L2:L3 ONLINE MAXMHZ    MINMHZ
0   0    0      0    0:0:0:0       yes    3700.0000 1200.0000
1   0    0      1    1:1:1:0       yes    3700.0000 1200.0000
2   0    0      2    2:2:2:0       yes    3700.0000 1200.0000
3   0    0      3    3:3:3:0       yes    3700.0000 1200.0000
4   0    0      4    4:4:4:0       yes    3700.0000 1200.0000
5   0    0      5    5:5:5:0       yes    3700.0000 1200.0000
6   0    0      6    6:6:6:0       yes    3700.0000 1200.0000
7   0    0      7    7:7:7:0       yes    3700.0000 1200.0000
8   0    0      8    8:8:8:0       yes    3700.0000 1200.0000
9   0    0      9    9:9:9:0       yes    3700.0000 1200.0000
10  0    0      10   10:10:10:0    yes    3700.0000 1200.0000
11  0    0      11   11:11:11:0    yes    3700.0000 1200.0000
12  0    0      12   12:12:12:0    yes    3700.0000 1200.0000
13  0    0      13   13:13:13:0    yes    3700.0000 1200.0000
14  0    0      14   14:14:14:0    yes    3700.0000 1200.0000
15  0    0      15   15:15:15:0    yes    3700.0000 1200.0000
16  0    0      16   16:16:16:0    yes    3700.0000 1200.0000
17  0    0      17   17:17:17:0    yes    3700.0000 1200.0000
18  0    0      18   18:18:18:0    yes    3700.0000 1200.0000
19  0    0      19   19:19:19:0    yes    3700.0000 1200.0000
20  0    0      20   20:20:20:0    yes    3700.0000 1200.0000
21  0    0      21   21:21:21:0    yes    3700.0000 1200.0000
22  1    1      22   22:22:22:1    yes    3700.0000 1200.0000
23  1    1      23   23:23:23:1    yes    3700.0000 1200.0000
24  1    1      24   24:24:24:1    yes    3700.0000 1200.0000
25  1    1      25   25:25:25:1    yes    3700.0000 1200.0000
26  1    1      26   26:26:26:1    yes    3700.0000 1200.0000
27  1    1      27   27:27:27:1    yes    3700.0000 1200.0000
28  1    1      28   28:28:28:1    yes    3700.0000 1200.0000
29  1    1      29   29:29:29:1    yes    3700.0000 1200.0000
30  1    1      30   30:30:30:1    yes    3700.0000 1200.0000
31  1    1      31   31:31:31:1    yes    3700.0000 1200.0000
32  1    1      32   32:32:32:1    yes    3700.0000 1200.0000
33  1    1      33   33:33:33:1    yes    3700.0000 1200.0000
34  1    1      34   34:34:34:1    yes    3700.0000 1200.0000
35  1    1      35   35:35:35:1    yes    3700.0000 1200.0000
36  1    1      36   36:36:36:1    yes    3700.0000 1200.0000
37  1    1      37   37:37:37:1    yes    3700.0000 1200.0000
38  1    1      38   38:38:38:1    yes    3700.0000 1200.0000
39  1    1      39   39:39:39:1    yes    3700.0000 1200.0000
40  1    1      40   40:40:40:1    yes    3700.0000 1200.0000
41  1    1      41   41:41:41:1    yes    3700.0000 1200.0000
42  1    1      42   42:42:42:1    yes    3700.0000 1200.0000
43  1    1      43   43:43:43:1    yes    3700.0000 1200.0000
44  0    0      0    0:0:0:0       yes    3700.0000 1200.0000
45  0    0      1    1:1:1:0       yes    3700.0000 1200.0000
46  0    0      2    2:2:2:0       yes    3700.0000 1200.0000
47  0    0      3    3:3:3:0       yes    3700.0000 1200.0000
48  0    0      4    4:4:4:0       yes    3700.0000 1200.0000
49  0    0      5    5:5:5:0       yes    3700.0000 1200.0000
50  0    0      6    6:6:6:0       yes    3700.0000 1200.0000
51  0    0      7    7:7:7:0       yes    3700.0000 1200.0000
52  0    0      8    8:8:8:0       yes    3700.0000 1200.0000
53  0    0      9    9:9:9:0       yes    3700.0000 1200.0000
54  0    0      10   10:10:10:0    yes    3700.0000 1200.0000
55  0    0      11   11:11:11:0    yes    3700.0000 1200.0000
56  0    0      12   12:12:12:0    yes    3700.0000 1200.0000
57  0    0      13   13:13:13:0    yes    3700.0000 1200.0000
58  0    0      14   14:14:14:0    yes    3700.0000 1200.0000
59  0    0      15   15:15:15:0    yes    3700.0000 1200.0000
60  0    0      16   16:16:16:0    yes    3700.0000 1200.0000
61  0    0      17   17:17:17:0    yes    3700.0000 1200.0000
62  0    0      18   18:18:18:0    yes    3700.0000 1200.0000
63  0    0      19   19:19:19:0    yes    3700.0000 1200.0000
64  0    0      20   20:20:20:0    yes    3700.0000 1200.0000
65  0    0      21   21:21:21:0    yes    3700.0000 1200.0000
66  1    1      22   22:22:22:1    yes    3700.0000 1200.0000
67  1    1      23   23:23:23:1    yes    3700.0000 1200.0000
68  1    1      24   24:24:24:1    yes    3700.0000 1200.0000
69  1    1      25   25:25:25:1    yes    3700.0000 1200.0000
70  1    1      26   26:26:26:1    yes    3700.0000 1200.0000
71  1    1      27   27:27:27:1    yes    3700.0000 1200.0000
72  1    1      28   28:28:28:1    yes    3700.0000 1200.0000
73  1    1      29   29:29:29:1    yes    3700.0000 1200.0000
74  1    1      30   30:30:30:1    yes    3700.0000 1200.0000
75  1    1      31   31:31:31:1    yes    3700.0000 1200.0000
76  1    1      32   32:32:32:1    yes    3700.0000 1200.0000
77  1    1      33   33:33:33:1    yes    3700.0000 1200.0000
78  1    1      34   34:34:34:1    yes    3700.0000 1200.0000
79  1    1      35   35:35:35:1    yes    3700.0000 1200.0000
80  1    1      36   36:36:36:1    yes    3700.0000 1200.0000
81  1    1      37   37:37:37:1    yes    3700.0000 1200.0000
82  1    1      38   38:38:38:1    yes    3700.0000 1200.0000
83  1    1      39   39:39:39:1    yes    3700.0000 1200.0000
84  1    1      40   40:40:40:1    yes    3700.0000 1200.0000
85  1    1      41   41:41:41:1    yes    3700.0000 1200.0000
86  1    1      42   42:42:42:1    yes    3700.0000 1200.0000
87  1    1      43   43:43:43:1    yes    3700.0000 1200.0000
dual-socket (2x) 32c/64t Rome, switched to 4 NUMA nodes per socket in the BIOS:

Code: Select all

CPU NODE SOCKET CORE L1d:L1i:L2:L3 ONLINE MAXMHZ    MINMHZ
0   0    0      0    0:0:0:0       yes    2350.0000 1500.0000
1   0    0      1    1:1:1:0       yes    2350.0000 1500.0000
2   0    0      2    2:2:2:0       yes    2350.0000 1500.0000
3   0    0      3    3:3:3:0       yes    2350.0000 1500.0000
4   0    0      4    4:4:4:1       yes    2350.0000 1500.0000
5   0    0      5    5:5:5:1       yes    2350.0000 1500.0000
6   0    0      6    6:6:6:1       yes    2350.0000 1500.0000
7   0    0      7    7:7:7:1       yes    2350.0000 1500.0000
8   1    0      8    8:8:8:2       yes    2350.0000 1500.0000
9   1    0      9    9:9:9:2       yes    2350.0000 1500.0000
10  1    0      10   10:10:10:2    yes    2350.0000 1500.0000
11  1    0      11   11:11:11:2    yes    2350.0000 1500.0000
12  1    0      12   12:12:12:3    yes    2350.0000 1500.0000
13  1    0      13   13:13:13:3    yes    2350.0000 1500.0000
14  1    0      14   14:14:14:3    yes    2350.0000 1500.0000
15  1    0      15   15:15:15:3    yes    2350.0000 1500.0000
16  2    0      16   16:16:16:4    yes    2350.0000 1500.0000
17  2    0      17   17:17:17:4    yes    2350.0000 1500.0000
18  2    0      18   18:18:18:4    yes    2350.0000 1500.0000
19  2    0      19   19:19:19:4    yes    2350.0000 1500.0000
20  2    0      20   20:20:20:5    yes    2350.0000 1500.0000
21  2    0      21   21:21:21:5    yes    2350.0000 1500.0000
22  2    0      22   22:22:22:5    yes    2350.0000 1500.0000
23  2    0      23   23:23:23:5    yes    2350.0000 1500.0000
24  3    0      24   24:24:24:6    yes    2350.0000 1500.0000
25  3    0      25   25:25:25:6    yes    2350.0000 1500.0000
26  3    0      26   26:26:26:6    yes    2350.0000 1500.0000
27  3    0      27   27:27:27:6    yes    2350.0000 1500.0000
28  3    0      28   28:28:28:7    yes    2350.0000 1500.0000
29  3    0      29   29:29:29:7    yes    2350.0000 1500.0000
30  3    0      30   30:30:30:7    yes    2350.0000 1500.0000
31  3    0      31   31:31:31:7    yes    2350.0000 1500.0000
32  4    1      32   32:32:32:8    yes    2350.0000 1500.0000
33  4    1      33   33:33:33:8    yes    2350.0000 1500.0000
34  4    1      34   34:34:34:8    yes    2350.0000 1500.0000
35  4    1      35   35:35:35:8    yes    2350.0000 1500.0000
36  4    1      36   36:36:36:9    yes    2350.0000 1500.0000
37  4    1      37   37:37:37:9    yes    2350.0000 1500.0000
38  4    1      38   38:38:38:9    yes    2350.0000 1500.0000
39  4    1      39   39:39:39:9    yes    2350.0000 1500.0000
40  5    1      40   40:40:40:10   yes    2350.0000 1500.0000
41  5    1      41   41:41:41:10   yes    2350.0000 1500.0000
42  5    1      42   42:42:42:10   yes    2350.0000 1500.0000
43  5    1      43   43:43:43:10   yes    2350.0000 1500.0000
44  5    1      44   44:44:44:11   yes    2350.0000 1500.0000
45  5    1      45   45:45:45:11   yes    2350.0000 1500.0000
46  5    1      46   46:46:46:11   yes    2350.0000 1500.0000
47  5    1      47   47:47:47:11   yes    2350.0000 1500.0000
48  6    1      48   48:48:48:12   yes    2350.0000 1500.0000
49  6    1      49   49:49:49:12   yes    2350.0000 1500.0000
50  6    1      50   50:50:50:12   yes    2350.0000 1500.0000
51  6    1      51   51:51:51:12   yes    2350.0000 1500.0000
52  6    1      52   52:52:52:13   yes    2350.0000 1500.0000
53  6    1      53   53:53:53:13   yes    2350.0000 1500.0000
54  6    1      54   54:54:54:13   yes    2350.0000 1500.0000
55  6    1      55   55:55:55:13   yes    2350.0000 1500.0000
56  7    1      56   56:56:56:14   yes    2350.0000 1500.0000
57  7    1      57   57:57:57:14   yes    2350.0000 1500.0000
58  7    1      58   58:58:58:14   yes    2350.0000 1500.0000
59  7    1      59   59:59:59:14   yes    2350.0000 1500.0000
60  7    1      60   60:60:60:15   yes    2350.0000 1500.0000
61  7    1      61   61:61:61:15   yes    2350.0000 1500.0000
62  7    1      62   62:62:62:15   yes    2350.0000 1500.0000
63  7    1      63   63:63:63:15   yes    2350.0000 1500.0000
64  0    0      0    0:0:0:0       yes    2350.0000 1500.0000
65  0    0      1    1:1:1:0       yes    2350.0000 1500.0000
66  0    0      2    2:2:2:0       yes    2350.0000 1500.0000
67  0    0      3    3:3:3:0       yes    2350.0000 1500.0000
68  0    0      4    4:4:4:1       yes    2350.0000 1500.0000
69  0    0      5    5:5:5:1       yes    2350.0000 1500.0000
70  0    0      6    6:6:6:1       yes    2350.0000 1500.0000
71  0    0      7    7:7:7:1       yes    2350.0000 1500.0000
72  1    0      8    8:8:8:2       yes    2350.0000 1500.0000
73  1    0      9    9:9:9:2       yes    2350.0000 1500.0000
74  1    0      10   10:10:10:2    yes    2350.0000 1500.0000
75  1    0      11   11:11:11:2    yes    2350.0000 1500.0000
76  1    0      12   12:12:12:3    yes    2350.0000 1500.0000
77  1    0      13   13:13:13:3    yes    2350.0000 1500.0000
78  1    0      14   14:14:14:3    yes    2350.0000 1500.0000
79  1    0      15   15:15:15:3    yes    2350.0000 1500.0000
80  2    0      16   16:16:16:4    yes    2350.0000 1500.0000
81  2    0      17   17:17:17:4    yes    2350.0000 1500.0000
82  2    0      18   18:18:18:4    yes    2350.0000 1500.0000
83  2    0      19   19:19:19:4    yes    2350.0000 1500.0000
84  2    0      20   20:20:20:5    yes    2350.0000 1500.0000
85  2    0      21   21:21:21:5    yes    2350.0000 1500.0000
86  2    0      22   22:22:22:5    yes    2350.0000 1500.0000
87  2    0      23   23:23:23:5    yes    2350.0000 1500.0000
88  3    0      24   24:24:24:6    yes    2350.0000 1500.0000
89  3    0      25   25:25:25:6    yes    2350.0000 1500.0000
90  3    0      26   26:26:26:6    yes    2350.0000 1500.0000
91  3    0      27   27:27:27:6    yes    2350.0000 1500.0000
92  3    0      28   28:28:28:7    yes    2350.0000 1500.0000
93  3    0      29   29:29:29:7    yes    2350.0000 1500.0000
94  3    0      30   30:30:30:7    yes    2350.0000 1500.0000
95  3    0      31   31:31:31:7    yes    2350.0000 1500.0000
96  4    1      32   32:32:32:8    yes    2350.0000 1500.0000
97  4    1      33   33:33:33:8    yes    2350.0000 1500.0000
98  4    1      34   34:34:34:8    yes    2350.0000 1500.0000
99  4    1      35   35:35:35:8    yes    2350.0000 1500.0000
100 4    1      36   36:36:36:9    yes    2350.0000 1500.0000
101 4    1      37   37:37:37:9    yes    2350.0000 1500.0000
102 4    1      38   38:38:38:9    yes    2350.0000 1500.0000
103 4    1      39   39:39:39:9    yes    2350.0000 1500.0000
104 5    1      40   40:40:40:10   yes    2350.0000 1500.0000
105 5    1      41   41:41:41:10   yes    2350.0000 1500.0000
106 5    1      42   42:42:42:10   yes    2350.0000 1500.0000
107 5    1      43   43:43:43:10   yes    2350.0000 1500.0000
108 5    1      44   44:44:44:11   yes    2350.0000 1500.0000
109 5    1      45   45:45:45:11   yes    2350.0000 1500.0000
110 5    1      46   46:46:46:11   yes    2350.0000 1500.0000
111 5    1      47   47:47:47:11   yes    2350.0000 1500.0000
112 6    1      48   48:48:48:12   yes    2350.0000 1500.0000
113 6    1      49   49:49:49:12   yes    2350.0000 1500.0000
114 6    1      50   50:50:50:12   yes    2350.0000 1500.0000
115 6    1      51   51:51:51:12   yes    2350.0000 1500.0000
116 6    1      52   52:52:52:13   yes    2350.0000 1500.0000
117 6    1      53   53:53:53:13   yes    2350.0000 1500.0000
118 6    1      54   54:54:54:13   yes    2350.0000 1500.0000
119 6    1      55   55:55:55:13   yes    2350.0000 1500.0000
120 7    1      56   56:56:56:14   yes    2350.0000 1500.0000
121 7    1      57   57:57:57:14   yes    2350.0000 1500.0000
122 7    1      58   58:58:58:14   yes    2350.0000 1500.0000
123 7    1      59   59:59:59:14   yes    2350.0000 1500.0000
124 7    1      60   60:60:60:15   yes    2350.0000 1500.0000
125 7    1      61   61:61:61:15   yes    2350.0000 1500.0000
126 7    1      62   62:62:62:15   yes    2350.0000 1500.0000
127 7    1      63   63:63:63:15   yes    2350.0000 1500.0000
CPU = index of logical CPU
NODE = index of NUMA node (on computers with non-uniform memory access)
SOCKET = index of physical socket; you wouldn't have guessed
CORE = index of physical core, same for logical CPUs which are "thread siblings", i.e. hardware threads of the same core
L1d:L1i:L2:L3 = indexes of the caches to which a logical CPU has access

Recent versions of lscpu can also show cache sizes:

lscpu -C

…but that's redundant to what the vendor's data sheets hopefully tell us already.
output example
Show
4-core/8-thread Haswell:

Code: Select all

NAME ONE-SIZE ALL-SIZE WAYS TYPE        LEVEL SETS PHY-LINE COHERENCY-SIZE
L1d       32K     128K    8 Data            1   64        1             64
L1i       32K     128K    8 Instruction     1   64        1             64
L2       256K       1M    8 Unified         2  512        1             64
L3         8M       8M   16 Unified         3 8192        1             64
My lscpu on the dual-processor computers is too old to show the same.

Post Reply