Questions tagged [statistics]

77 questions
52
votes
3 answers

How do I get sar to show for the previous day?

on our servers, typing sar show's the system load statistics for today starting at midnight, is it possible to show yesterdays statistics?
xenoterracide
  • 57,918
  • 74
  • 184
  • 250
25
votes
2 answers

How can I see memory usage history?

I am familiar with several commands like top, htop, free, etc. However, is there a command to see the peak/burst memory usage of the entire server (not individual processes) over, say, the last 30 days/24 hours/etc.?
Michael Yaeger
  • 351
  • 1
  • 3
  • 7
19
votes
2 answers

Is there something like `time` that also records I/O and CPU?

I can pretty quickly monitor the running time of a process with time: x@y ~ $ time foo real 0m14.299s user 0m4.770s sys 0m0.440s Is there a way I can get the same data for I/O and CPU usage of an argument, recorded to STDOUT?…
John Feminella
  • 557
  • 4
  • 10
15
votes
5 answers

Traffic stats per network port

I have two machines with two applications that talk to each other on few network ports (TCP and UDP). I want to count traffic that they send and receive. I need not only overall count but stats per machine per port per day. I tried darkstat, but it…
pbm
  • 24,747
  • 6
  • 36
  • 51
13
votes
5 answers

How to gather byte occurrence statistics in binary file?

I'd like to know the equivalent of cat inputfile | sed 's/\(.\)/\1\n/g' | sort | uniq -c presented in https://stackoverflow.com/questions/4174113/how-to-gather-characters-usage-statistics-in-text-file-using-unix-commands for production of…
Kalle Richter
  • 2,100
  • 4
  • 20
  • 37
11
votes
4 answers

Where can I find the historical source code of the Linux sources

I want to do research on the evolution of Linux. Therefore it would be nice if I could download the sources of Linux at several moments in time (from 1991 till now). Is there a site where one can find those sources? Similar sites for other Unix…
Willem Van Onsem
  • 501
  • 6
  • 14
6
votes
1 answer

counting the number of occurences in a file of data list

I have a data file, like 7 2 10 9 10 3 2 4 2 4 6 Each line has a single value. I want to count the occurence of each value. For instance, 10 occurs two times in this file. Is there a simple way to do that under linux without writing formal…
user288609
  • 641
  • 3
  • 8
  • 16
6
votes
1 answer

NIC statistics explanation (ethtool -S eth1)

What is the meaning of each of the results from ethtool -S eth1 command? For example, when I used ethtool -S eth1, I got something like this: >root@localhost ~]# ethtool –S eth1 >NIC statistics: tx_packets: 2654 rx_packets: 3960 tx_errors:…
Artux
  • 61
  • 1
  • 1
  • 2
5
votes
1 answer

Load average per process or user

is it possible to obtain load average values (as displayed by uptime) individually per process or user. I would like to be able to see what user is causing what load. top is not really suitable because it only displays instantaneous values. Any…
Philipp F
  • 285
  • 3
  • 8
5
votes
1 answer

Where does ethtool get information from?

When I run the command ethtool -S wlp2s0, I get the following information: NIC statistics: rx_packets: 63 rx_bytes: 14163 rx_duplicates: 2 rx_fragments: 58 rx_dropped: 30 tx_packets: 60 tx_bytes: 9668 …
imll
  • 199
  • 1
  • 7
5
votes
3 answers

What does /proc/loadavg ' s "CPU and IO utilization" mean?

In this page, it says that the first three columns of the output of /proc/loadavg measure CPU and IO utilization of the last one, five, and 10 minute periods. Does a single value reveal both CPU and IO utilization? What if I just want to know the…
shintaroid
  • 269
  • 4
  • 9
5
votes
1 answer

How to find the number of bytes rewritten to a folder hierarchy?

I want metrics for how much writing and reading have been done to a folder. vmstat -d gives metrics at the whole disk level. iotop will give per process rw stats. But how can I find out how much writing has been done to a folder or file?
rjt
  • 377
  • 1
  • 4
  • 15
5
votes
2 answers

How can I see i/o stats for a briefly running process?

For long running processes like init, I can do things like $ cat /proc/[pid]/io What can I do if I want to see stats for a briefly running process such as a command line utility like ls? I don't even know how to see the pid for such a briefly…
labyrinth
  • 713
  • 1
  • 8
  • 17
5
votes
2 answers

How do I install plugins for collectd

I have installed collectd and got it running but also wanted to use the Ping plugin ( https://collectd.org/wiki/index.php/Plugin:Ping ) but it's not actually installed by default (i.e. not in the list of plugins in /opt/collectd/lib/collectd How do…
Iain
  • 91
  • 1
  • 1
  • 6
4
votes
1 answer

Are there awk versions that provide syntax for computing aggregations?

From time to time I find myself writing awk scripts that compute some simple statistics. For example computing a histogram, the average of a value, the standard deviation or even the variance ... Doing that again and again with helper…
maxschlepzig
  • 56,316
  • 50
  • 205
  • 279
1
2 3 4 5 6