utorok 25. februára 2020

mpstat na debiane - časť 1 - inštalácia a spustenie

mpstat je nástroj, ktorý reportuje štatistiky procesoru. Ako si ho rozchodiť na Debiane a spustiť?


Treba si nainštalovať balíček sysstat


root@guliverkel:/home/martin# apt-get install sysstat
Reading package lists... Done
Building dependency tree     
Reading state information... Done
Suggested packages:
  isag
The following NEW packages will be installed:
  sysstat
0 upgraded, 1 newly installed, 0 to remove and 46 not upgraded.
Need to get 360 kB of archives.
After this operation, 1,368 kB of additional disk space will be used.
Get:1 http://ftp.sk.debian.org/debian stretch/main amd64 sysstat amd64 11.4.3-2 [360 kB]
Fetched 360 kB in 0s (1,766 kB/s)
Preconfiguring packages ...
Selecting previously unselected package sysstat.
(Reading database ... 155681 files and directories currently installed.)
Preparing to unpack .../sysstat_11.4.3-2_amd64.deb ...
Unpacking sysstat (11.4.3-2) ...
Setting up sysstat (11.4.3-2) ...

Creating config file /etc/default/sysstat with new version
update-alternatives: using /usr/bin/sar.sysstat to provide /usr/bin/sar (sar) in auto mode
Processing triggers for systemd (232-25+deb9u12) ...
Processing triggers for man-db (2.7.6.1-2) ...




Tu už len spustíme mpstat :-)

root@guliverkel:/home/martin# mpstat 
Linux 4.9.0-8-amd64 (guliverkel)        02/25/2020      _x86_64_        (4 CPU)

12:14:40 AM  CPU    %usr   %nice    %sys %iowait    %irq   %soft  %steal  %guest  %gnice   %idle
12:14:40 AM  all   22.42    0.04    5.75    0.85    0.00    0.12    0.00    0.00    0.00   70.83

Žiadne komentáre:

Zverejnenie komentára