...
Code Block |
---|
2021-07-20_05:55:21.443 955 955 244480 244480 1042 1042 266752 266752 |
/show [/t {types[,...]|all}] [/r {resource[,...]|all}] [/j|/json] [/c|/continue]
전체 리소스에 대한 모든 항목의 성능 데이터를 한번에 출력합니다.
출력 대상은 성능 파일에 마지막으로 기록된 데이터이며, 데이터입니다.
[/t {types[,...]|all}] [/r {resource[,...]|all}]
특정 성능 항목 및 리소스를 지정하여 출력할 수 있는 옵션을 제공합니다.
성능 항목 및 리소스 명은 ','로 구분하며 공백 없이 입력합니다
.ex) .
[/j|/json]
json 형식으로 데이터를 출력합니다.
[/c|/continue]
성능 데이터를 주기적으로 출력합니다.
출력 주기는 bsrmon에 설정된 period 값을 따릅니다.
사용 예
Expand |
---|
|
memory, resource 별로 timestamp 가 출력됩니다. iostat, ioclat, reqstat, peer_reqstat, al_stat 은 , resync_ratio 는 vnr 로 구분하여 출력됩니다. memory 성능 데이터는 os(windows/linux)에 따라 출력되는 항목이 다릅니다.
Code Block |
---|
[root@cent79_01 bsr-utils]# bsrmon /show
bsrmon {
memory {
system {
total_memory 7990028; # kbytes
used_memory 1843756; # kbytes
free_memory 2511096; # kbytes
buff/cache 3635176; # kbytes
}
module {
slab {
bsr_req 15982; # kbytes
bsr_al 1020; # kbytes
bsr_bm 7880; # kbytes
bsr_ee 2384; # kbytes
total_bio_set 520; # kbytes
kmalloc 157; # kbytes
}
vmalloc 0; # kbytes
total_page_pool 33344; # kbytes
}
user {
top_process {
name gnome-shell;
pid 2482;
rsz 250212; # kbytes
vsz 4082020; # kbytes
}
bsr_process {
name bsrmon;
pid 19370;
rsz 1364; # kbytes
vsz 12780; # kbytes
}
}
timestamp 2022-10-04_00:10:55.805;
}
resource r0 {
vnr 0 {
iostat {
read_iops 0;
read_iocnt 0;
read_kbs 0; # kbytes/second
read_kb 0; # kbytes
write_iops 0;
write_iocnt 0;
write_kbs 0; # kbytes/second
write_kb 0; # kbytes
}
ioclat {
local_min 0; # usec
local_max 0; # usec
local_avg 0; # usec
master_min 0; # usec
master_max 0; # usec
master_avg 0; # usec
}
reqstat {
requests {
count 0;
before_queue_min 0; # usec
before_queue_max 0; # usec
before_queue_avg 0; # usec
before_al_begin_min 0; # usec
before_al_begin_max 0; # usec
before_al_begin_avg 0; # usec
in_actlog_min 0; # usec
in_actlog_max 0; # usec
in_actlog_avg 0; # usec
submit_min 0; # usec
submit_max 0; # usec
submit_avg 0; # usec
bio_endio_min 0; # usec
bio_endio_max 0; # usec
bio_endio_avg 0; # usec
destroy_min 0; # usec
destroy_max 0; # usec
destroy_avg 0; # usec
}
al_update {
count 0;
before_bm_write_min 0; # usec
before_bm_write_max 0; # usec
before_bm_write_avg 0; # usec
after_bm_write_min 0; # usec
after_bm_write_max 0; # usec
after_bm_write_avg 0; # usec
after_sync_page_min 0; # usec
after_sync_page_max 0; # usec
after_sync_page_avg 0; # usec
}
peer cent79_03 {
pre_send_min 0; # usec
pre_send_max 0; # usec
pre_send_avg 0; # usec
acked_min 0; # usec
acked_max 0; # usec
acked_avg 0; # usec
net_done_min 0; # usec
net_done_max 0; # usec
net_done_avg 0; # usec
}
}
peer_reqstat {
peer cent79_03 {
count 0;
submit_min 0; # usec
submit_max 0; # usec
submit_avg 0; # usec
bio_endio_min 0; # usec
bio_endio_max 0; # usec
bio_endio_avg 0; # usec
destroy_min 0; # usec
destroy_max 0; # usec
destroy_avg 0; # usec
}
}
al_stat {
al-extents 6001;
al_used 0;
al_used_max 0;
hits 0;
hits_total 2064;
misses 0;
misses_total 1998;
starving 0;
starving_total 0;
locked 0;
locked_total 0;
changed 0;
changed_total 249;
al_wait_retry_cnt 0;
al_wait_total_retry_cnt 0;
al_wait_max_retry_cnt 0;
pending_changes 0;
max_pending_changes 64;
error {
nobufs_starving 0;
nobufs_pending_slot 0;
nobufs_used_slot 0;
busy 0;
wouldblock 0;
}
flags __LC_DIRTY,__LC_LOCKED;
}
} resync_ratio {
vnr 1 { peer iostatcent79_02 {
read_iops replication 0; # byte/second
read_iocnt resync 0; # byte/second
read_kbs resync_ratio 0; # kbytes/secondpercent
read_kb 0; # kbytes}
peer writecent79_iops03 {
0; write_iocnt replication 0; # byte/second
write_kbs resync 0; # kbytesbyte/second
write_kb resync_ratio 0; # kbytes
percent
} }
ioclat { }
vnr 1 {
local_min 0; #iostat usec{
localread_maxiops 0;
# usec localread_avgiocnt 0;
# usec read_kbs master_min 0; # useckbytes/second
master_max read_kb 0; # useckbytes
masterwrite_avgiops 0;
# usec } write_iocnt 0;
reqstat { write_kbs requests0; {# kbytes/second
write_kb count 0; # kbytes
}
before_queue_min 0; # usecioclat {
local_min before_queue_max 0; # usec
local_max before_queue_avg 0; # usec
local_avg before_al_begin_min 0; # usec
master_min before_al_begin_max 0; # usec
master_max before_al_begin_avg 0; # usec
in_actlog_minmaster_avg 0; # usec
}
in_actlog_max 0; # usecreqstat {
requests {
in_actlog_avg 0; # usec count submit_min 0;
# usec before_queue_min submit_max 0; # usec
submit_avgbefore_queue_max 0; # usec
biobefore_endioqueue_minavg 0; # usec
biobefore_al_endiobegin_max min 0; # usec
biobefore_al_endiobegin_avg max 0; # usec
destroy_minbefore_al_begin_avg 0; # usec
destroyin_actlog_maxmin 0; # usec destroy_avg 0; # usec
} in_actlog_max 0; # usec
al_update { in_actlog_avg count 0; # usec
0; before_bm_write_submit_min 0; # usec
beforesubmit_bm_write_max 0; # usec
before_bm_writesubmit_avg 0; # usec
afterbio_bm_writeendio_min 0; # usec
afterbio_bm_writeendio_max 0; # usec
afterbio_bmendio_write_avg 0; # usec
afterdestroy_sync_page_min 0; # usec
after_sync_page_maxdestroy_max 0; # usec
afterdestroy_sync_page_avg 0; # usec
}
peer cent79al_03update {
pre_send_mincount 0; # usec
before_bm_write_min 0; # usec
pre_send_max before_bm_write_max 0; # usec
prebefore_bm_sendwrite_avg 0; # usec
ackedafter_bm_write_min 0; # usec
ackedafter_bm_write_max 0; # usec
ackedafter_bm_write_avg 0; # usec
netafter_sync_donepage_min 0; # usec
netafter_sync_donepage_max 0; # usec
netafter_sync_donepage_avg 0; # usec
}
} peer cent79_03 {
peer_reqstat { pre_send_min peer cent79_03 { 0; # usec
countpre_send_max 0; # usec
submit_minpre_send_avg 0; # usec
submitacked_maxmin 0; # usec
submitacked_avgmax 0; # usec
bioacked_endio_minavg 0; # usec
bionet_endiodone_maxmin 0; # usec
bionet_endiodone_avgmax 0; # usec
destroy_minnet_done_avg 0; # usec
}
destroy_max 0; # usec
}
peer_reqstat {
destroy_avg 0; # usec peer cent79_03 {
} } count 0;
al_stat { submit_min al-extents0; # usec
6001; alsubmit_usedmax 0; # usec
submit_avg 0; # usec
bio_endio_min 0; # usec
bio_endio_max 0; # usec
bio_endio_avg 0; # usec
destroy_min 0; # usec
destroy_max 0; # usec
destroy_avg 0; # usec
}
}
al_stat {
al-extents 6001;
al_used 0;
al_used_max 0;
hits 0;
hits_total 0;
misses 0;
misses_total 0;
starving 0;
starving_total 0;
locked 0;
locked_total 0;
changed 0;
changed_total 0;
al_wait_retry_cnt 0;
al_wait_total_retry_cnt 0;
al_wait_max_retry_cnt 0;
pending_changes 0;
max_pending_changes 64;
error {
nobufs_starving 0;
nobufs_pending_slot 0;
nobufs_used_slot 0;
busy 0;
wouldblock 0;
}
flags NONE;
}
} resync_ratio {
network { peer cent79_02 {
replication 0; send# byte/second
180resync 0; # byte/second
resync_ratio 0; # percent
recv 384; # byte/second }
} peer cent79_03 {
send replication 0; # byte/second
recv resync 0; # byte/second
} }
resync_ratio 0; # percent
sendbuf { }
peer cent79_02 { }
ap_in_flight network {
peer cent79_02 {
size 17301504; # bytes send 180; # byte/second
count recv 33384; # byte/second
}
peer rs_in_flightcent79_03 {
send size 0; # bytesbyte/second
countrecv 0; # byte/second
}
}
highwater sendbuf {
33; peer cent79_02 {
fill 17301504; # bytes data_streamap_in_flight {
size 2097152017301504; # bytes
count used 33;
0; # bytes }
packet { rs_in_flight {
size name P_DATA 0; # bytes
count 1; 0;
}
size 0; # bytes highwater 33;
} fill 17301504; # bytes
} controldata_stream {
size 524288020971520; # bytes
used 0; # bytes
} packet {
} name peer cent79P_03DATA
{ ap_in_flight { count 1;
size 0; # bytes size 0; # bytes
count 0;}
}
rscontrol_in_flightstream {
size 05242880; # bytes
countused 0; # bytes
} }
}
highwater 0; fill 0; # bytespeer cent79_03 {
data_streamap_in_flight {
size 209715200; # bytes
usedcount 0; #
bytes }
controlrs_in_streamflight {
size 52428800; # bytes
usedcount 0;
# bytes }
} }highwater 0;
} resync_ratio { fill 0; # bytes
peer cent79_02 { data_stream {
replication 0; # byte/second size resync 020971520; # byte/second bytes
used resync_ratio 0; # percentbytes
}
peer 0 control_stream {
replication size 05242880; # byte/secondbytes
resyncused 0; # byte/second 0; # bytes
resync_ratio cent79_03; # percent}
}
}
timestamp 2022-09-29_22:54:25.064;
}
resource r1 {
...
timestamp 2022-10-04_00:10:55.805;
}
} |
|
Expand |
---|
title | bsrmon /show /t iostat |
---|
|
Code Block |
---|
[root@cent79_01 bsr-utils]# bsrmon /show /t iostat
bsrmon {
resource r0 {
vnr 0 {
iostat {
read_iops 0;
read_iocnt 0;
read_kbs 0; # kbytes/second
read_kb 0; # kbytes
write_iops 0;
write_iocnt 0;
write_kbs 0; # kbytes/second
write_kb 0; # kbytes
}
}
vnr 1 {
iostat {
read_iops 0;
read_iocnt 0;
read_kbs 0; # kbytes/second
read_kb 0; # kbytes
write_iops 0;
write_iocnt 0;
write_kbs 0; # kbytes/second
write_kb 0; # kbytes
}
}
timestamp 2022-09-29_22:54:25.064;
}
resource r1 {
vnr 0 {
iostat {
read_iops 0;
read_iocnt 0;
read_kbs 0; # kbytes/second
read_kb 0; # kbytes
write_iops 0;
write_iocnt 0;
write_kbs 0; # kbytes/second
write_kb 0; # kbytes
}
}
timestamp 2022-10-04_00:17:52.249;
}
} |
|
Expand |
---|
title | bsrmon /show /t network,sendbuf /r r0,r1 |
---|
|
Code Block |
---|
[root@cent79_01 bsr-utils]# bsrmon /show /t network,sendbuf /r r0,r1
bsrmon {
resource r0 {
network {
peer cent79_02 {
send 180; # byte/second
recv 384; # byte/second
}
peer cent79_03 {
send 0; # byte/second
recv 0; # byte/second
}
}
sendbuf {
peer cent79_02 {
ap_in_flight {
size 17301504; # bytes
count 33;
}
rs_in_flight {
size 0; # bytes
count 0;
}
highwater 33;
fill 17301504; # bytes
data_stream {
size 20971520; # bytes
used 0; # bytes
packet {
name P_DATA
count 1;
size 0; # bytes
}
}
control_stream {
size 5242880; # bytes
used 0; # bytes
}
}
peer cent79_03 {
ap_in_flight {
size 0; # bytes
count 0;
}
rs_in_flight {
size 0; # bytes
count 0;
}
highwater 0;
fill 0; # bytes
data_stream {
size 20971520; # bytes
used 0; # bytes
}
control_stream {
size 5242880; # bytes
used 0; # bytes
}
}
}
timestamp 2022-09-29_22:54:24.021;
}
resource r1 {
network {
peer cent79_02 {
send 0; # byte/second
recv 0; # byte/second
}
peer cent79_03 {
send 0; # byte/second
recv 0; # byte/second
}
}
sendbuf {
peer cent79_02 {
ap_in_flight {
size 0; # bytes
count 0;
}
rs_in_flight {
size 0; # bytes
count 0;
}
highwater 0;
fill 0; # bytes
data_stream {
size 0; # bytes
used 0; # bytes
}
control_stream {
size 0; # bytes
used 0; # bytes
}
}
peer cent79_03 {
ap_in_flight {
size 0; # bytes
count 0;
}
rs_in_flight {
size 0; # bytes
count 0;
}
highwater 0;
fill 0; # bytes
data_stream {
size 0; # bytes
used 0; # bytes
}
control_stream {
size 0; # bytes
used 0; # bytes
}
}
}
timestamp 2022-10-04_00:19:53.026;
}
} |
|
...