mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
add udp stat to nb_conn_sys as nb_conn_sys_udp
This commit is contained in:
parent
abef029610
commit
f53bfcea54
2 changed files with 92 additions and 6 deletions
|
@ -350,6 +350,55 @@ public:
|
|||
unsigned long pgpgout;
|
||||
|
||||
// @see: https://www.kernel.org/doc/Documentation/iostats.txt
|
||||
// @see: cat /proc/diskstats
|
||||
//
|
||||
// Number of issued reads.
|
||||
// This is the total number of reads completed successfully.
|
||||
unsigned long long nb_read;
|
||||
// Number of reads merged
|
||||
unsigned long long nb_mread;
|
||||
// Number of sectors read.
|
||||
// This is the total number of sectors read successfully.
|
||||
unsigned long long nb_sread;
|
||||
// Number of milliseconds spent reading.
|
||||
// This is the total number of milliseconds spent by all reads
|
||||
// (as measured from __make_request() to end_that_request_last()).
|
||||
unsigned long long ms_read;
|
||||
//
|
||||
// Number of writes completed.
|
||||
// This is the total number of writes completed successfully
|
||||
unsigned long long nb_write;
|
||||
// Number of writes merged Reads and writes which are adjacent
|
||||
// to each other may be merged for efficiency. Thus two 4K
|
||||
// reads may become one 8K read before it is ultimately
|
||||
// handed to the disk, and so it will be counted (and queued)
|
||||
// as only one I/O. This field lets you know how often this was done.
|
||||
unsigned long long nb_mwrite;
|
||||
// Number of sectors written.
|
||||
// This is the total number of sectors written successfully.
|
||||
unsigned long long nb_swrite;
|
||||
// Number of milliseconds spent writing .
|
||||
// This is the total number of milliseconds spent by all writes
|
||||
// (as measured from __make_request() to end_that_request_last()).
|
||||
unsigned long long ms_write;
|
||||
//
|
||||
// Number of I/Os currently in progress.
|
||||
// The only field that should go to zero.
|
||||
// Incremented as requests are given to appropriate request_queue_t
|
||||
// and decremented as they finish.
|
||||
unsigned long long nb_current;
|
||||
// Number of milliseconds spent doing I/Os.
|
||||
// This field is increased so long as field 9 is nonzero.
|
||||
unsigned long long ms_total;
|
||||
// Number of milliseconds spent doing I/Os.
|
||||
// This field is incremented at each I/O start, I/O completion,
|
||||
// I/O merge, or read of these stats by the number of I/Os in
|
||||
// progress (field 9) times the number of milliseconds spent
|
||||
// doing I/O since the last update of this field. This can
|
||||
// provide an easy measure of both I/O completion time and
|
||||
// the backlog that may be accumulating.
|
||||
// weighting total.
|
||||
unsigned long long ms_wtotal;
|
||||
|
||||
public:
|
||||
SrsDiskStat();
|
||||
|
@ -529,6 +578,7 @@ public:
|
|||
int nb_conn_sys_et; // established
|
||||
int nb_conn_sys_tw; // time wait
|
||||
int nb_conn_sys_ls; // listen
|
||||
int nb_conn_sys_udp; // udp
|
||||
int nb_conn_srs;
|
||||
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue