CPU and memory usage for last 5 minutes
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
0
down vote
favorite
What is the command to get the cpu and memory usage for the last 5 minutes ?
I need to track the cpu and memory usage.
16.04
add a comment |Â
up vote
0
down vote
favorite
What is the command to get the cpu and memory usage for the last 5 minutes ?
I need to track the cpu and memory usage.
16.04
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
What is the command to get the cpu and memory usage for the last 5 minutes ?
I need to track the cpu and memory usage.
16.04
What is the command to get the cpu and memory usage for the last 5 minutes ?
I need to track the cpu and memory usage.
16.04
asked May 15 at 9:30
kvmahesh
1197
1197
add a comment |Â
add a comment |Â
3 Answers
3
active
oldest
votes
up vote
2
down vote
accepted
The uptime
command lists load average for the last 1, 5 and 15 minutes:
$ uptime
05:49:47 up 8:40, 1 user, load average: 3.38, 2.16, 1.87
The load needs to be divided by number of CPUs. For example my system is a quad core (4 CPUs) Hyper threading (2 threads per CPU) so I need to divide by 8. The 5 minute load average of 2.16 is really .27 or about 27%.
You can learn more here and here.
add a comment |Â
up vote
0
down vote
You might consider installing conky
-- this is a highly configurable system monitoring app; among many-many other capabilities, it can display traveling bar graphs for CPU and RAM usage, which take several minutes to scroll the data off. For multiple cores, it can display the load on each core individually, or the whole CPU as an aggregate. Conky can also monitor system temperature sensors, hard disk and network traffic, uptime, and other things, and display the results in a staggering variety of text and graphic formats.
Learning to configure Conky can be a challenge, but Google will find all sorts of Conky config files you can install and modify to shorten the learning curve.
add a comment |Â
up vote
0
down vote
mpstat - Report processors related statistics.
Install with
sudo apt install sysstat
The following will report CPU statistics of the last 300s (5 minutes).
mpstat 300 1
The command will let you wait for 300s to collect the information. To always have instant statistics, you can make a small script to keep the command running.
while true; do
mpstat 300 1 > tmpstat
cp tmpstat laststat
done
Then cat laststat
will give you the information. (via)
add a comment |Â
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
The uptime
command lists load average for the last 1, 5 and 15 minutes:
$ uptime
05:49:47 up 8:40, 1 user, load average: 3.38, 2.16, 1.87
The load needs to be divided by number of CPUs. For example my system is a quad core (4 CPUs) Hyper threading (2 threads per CPU) so I need to divide by 8. The 5 minute load average of 2.16 is really .27 or about 27%.
You can learn more here and here.
add a comment |Â
up vote
2
down vote
accepted
The uptime
command lists load average for the last 1, 5 and 15 minutes:
$ uptime
05:49:47 up 8:40, 1 user, load average: 3.38, 2.16, 1.87
The load needs to be divided by number of CPUs. For example my system is a quad core (4 CPUs) Hyper threading (2 threads per CPU) so I need to divide by 8. The 5 minute load average of 2.16 is really .27 or about 27%.
You can learn more here and here.
add a comment |Â
up vote
2
down vote
accepted
up vote
2
down vote
accepted
The uptime
command lists load average for the last 1, 5 and 15 minutes:
$ uptime
05:49:47 up 8:40, 1 user, load average: 3.38, 2.16, 1.87
The load needs to be divided by number of CPUs. For example my system is a quad core (4 CPUs) Hyper threading (2 threads per CPU) so I need to divide by 8. The 5 minute load average of 2.16 is really .27 or about 27%.
You can learn more here and here.
The uptime
command lists load average for the last 1, 5 and 15 minutes:
$ uptime
05:49:47 up 8:40, 1 user, load average: 3.38, 2.16, 1.87
The load needs to be divided by number of CPUs. For example my system is a quad core (4 CPUs) Hyper threading (2 threads per CPU) so I need to divide by 8. The 5 minute load average of 2.16 is really .27 or about 27%.
You can learn more here and here.
answered May 15 at 11:52
![](https://i.stack.imgur.com/2SXNl.jpg?s=32&g=1)
![](https://i.stack.imgur.com/2SXNl.jpg?s=32&g=1)
WinEunuuchs2Unix
34.7k756131
34.7k756131
add a comment |Â
add a comment |Â
up vote
0
down vote
You might consider installing conky
-- this is a highly configurable system monitoring app; among many-many other capabilities, it can display traveling bar graphs for CPU and RAM usage, which take several minutes to scroll the data off. For multiple cores, it can display the load on each core individually, or the whole CPU as an aggregate. Conky can also monitor system temperature sensors, hard disk and network traffic, uptime, and other things, and display the results in a staggering variety of text and graphic formats.
Learning to configure Conky can be a challenge, but Google will find all sorts of Conky config files you can install and modify to shorten the learning curve.
add a comment |Â
up vote
0
down vote
You might consider installing conky
-- this is a highly configurable system monitoring app; among many-many other capabilities, it can display traveling bar graphs for CPU and RAM usage, which take several minutes to scroll the data off. For multiple cores, it can display the load on each core individually, or the whole CPU as an aggregate. Conky can also monitor system temperature sensors, hard disk and network traffic, uptime, and other things, and display the results in a staggering variety of text and graphic formats.
Learning to configure Conky can be a challenge, but Google will find all sorts of Conky config files you can install and modify to shorten the learning curve.
add a comment |Â
up vote
0
down vote
up vote
0
down vote
You might consider installing conky
-- this is a highly configurable system monitoring app; among many-many other capabilities, it can display traveling bar graphs for CPU and RAM usage, which take several minutes to scroll the data off. For multiple cores, it can display the load on each core individually, or the whole CPU as an aggregate. Conky can also monitor system temperature sensors, hard disk and network traffic, uptime, and other things, and display the results in a staggering variety of text and graphic formats.
Learning to configure Conky can be a challenge, but Google will find all sorts of Conky config files you can install and modify to shorten the learning curve.
You might consider installing conky
-- this is a highly configurable system monitoring app; among many-many other capabilities, it can display traveling bar graphs for CPU and RAM usage, which take several minutes to scroll the data off. For multiple cores, it can display the load on each core individually, or the whole CPU as an aggregate. Conky can also monitor system temperature sensors, hard disk and network traffic, uptime, and other things, and display the results in a staggering variety of text and graphic formats.
Learning to configure Conky can be a challenge, but Google will find all sorts of Conky config files you can install and modify to shorten the learning curve.
answered May 15 at 11:58
![](https://i.stack.imgur.com/pQaPN.jpg?s=32&g=1)
![](https://i.stack.imgur.com/pQaPN.jpg?s=32&g=1)
Zeiss Ikon
2,9131721
2,9131721
add a comment |Â
add a comment |Â
up vote
0
down vote
mpstat - Report processors related statistics.
Install with
sudo apt install sysstat
The following will report CPU statistics of the last 300s (5 minutes).
mpstat 300 1
The command will let you wait for 300s to collect the information. To always have instant statistics, you can make a small script to keep the command running.
while true; do
mpstat 300 1 > tmpstat
cp tmpstat laststat
done
Then cat laststat
will give you the information. (via)
add a comment |Â
up vote
0
down vote
mpstat - Report processors related statistics.
Install with
sudo apt install sysstat
The following will report CPU statistics of the last 300s (5 minutes).
mpstat 300 1
The command will let you wait for 300s to collect the information. To always have instant statistics, you can make a small script to keep the command running.
while true; do
mpstat 300 1 > tmpstat
cp tmpstat laststat
done
Then cat laststat
will give you the information. (via)
add a comment |Â
up vote
0
down vote
up vote
0
down vote
mpstat - Report processors related statistics.
Install with
sudo apt install sysstat
The following will report CPU statistics of the last 300s (5 minutes).
mpstat 300 1
The command will let you wait for 300s to collect the information. To always have instant statistics, you can make a small script to keep the command running.
while true; do
mpstat 300 1 > tmpstat
cp tmpstat laststat
done
Then cat laststat
will give you the information. (via)
mpstat - Report processors related statistics.
Install with
sudo apt install sysstat
The following will report CPU statistics of the last 300s (5 minutes).
mpstat 300 1
The command will let you wait for 300s to collect the information. To always have instant statistics, you can make a small script to keep the command running.
while true; do
mpstat 300 1 > tmpstat
cp tmpstat laststat
done
Then cat laststat
will give you the information. (via)
edited May 15 at 13:15
answered May 15 at 12:55
RoVo
4,865932
4,865932
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1036444%2fcpu-and-memory-usage-for-last-5-minutes%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password