Research Article

MultiCache: Multilayered Cache Implementation for I/O Virtualization

Table 2

Formulas and data structures for calculating resource usages.

Resource usage formulaResource monitor data structure


(i) Total: total CPU usage
(ii) , : idle values at the moment and at
struct S_ProcCpuInfo
 _u128 user, nice, system, idle, iowait;
 _u128 irq, softirq, steal, guest;

Memory usage =
(i) Total, free: total and free memory sizes, respectively
struct S_ProcMemInfo
 _u128 total, free;
 _u128 buffers, cached;

Disk usage =
(i) , : sector usages up to now and at , respectively
struct S_ProcDiskInfo
 char disk_name;
 _u128 r_compl, r_merge, r_sectr, r_milsc;
 _u128 w_compl, w_merge;
 _u128 w_sectr, w_milsc;
 _u128 io_c_prc, io_milsc, io_w_milsc;

Network usage


(i) PPS: number of packets transmitted per second
(ii) BPS: network bandwidth in bit per second
struct S_ProcNetInfo
 char net_name;
 char net_hwaddr;
 _u128 r_byte, r_pack, r_err, r_drop;
 _u128 r_fifo, r_frm, r_cmp, r_mult;
 _u128 t_byte, t_pack, t_err, t_drop;
 _u128 t_fifo, t_col, t_cal, t_cmp;