History

net: rds: add per rds connection cache statistics

The variable cache_allocs is to indicate how many frags (KiB) are in one rds connection frag cache. The command "rds-info -Iv" will output the rds connection cache statistics as below: " RDS IB Connections: LocalAddr RemoteAddr Tos SL LocalDev RemoteDev 1.1.1.14 1.1.1.14 58 255 fe80::2:c903:a:7a31 fe80::2:c903:a:7a31 send_wr=256, recv_wr=1024, send_sge=8, rdma_mr_max=4096, rdma_mr_size=257, cache_allocs=12 " This means that there are about 12KiB frag in this rds connection frag cache. Since rds.h in rds-tools is not related with the kernel rds.h, the change in kernel rds.h does not affect rds-tools. rds-info in rds-tools 2.0.5 and 2.0.6 is tested with this commit. It works well.

Zhu Yanjun committed 7 years ago

Commit fe3475a1 parent dceebd42 files · +4 −0Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/rds.h+2−0
@@ -250,6 +250,7 @@ struct rds_info_rdma_connection { · 249 unmodified lines
250250 __u32 rdma_mr_max;
251251 __u32 rdma_mr_size;
252252 __u8 tos;
253+ __u32 cache_allocs;
253254 };
254255
255256 struct rds6_info_rdma_connection {
@@ -264,6 +265,7 @@ struct rds6_info_rdma_connection { · 8 unmodified lines
264265 __u32 rdma_mr_max;
265266 __u32 rdma_mr_size;
266267 __u8 tos;
268+ __u32 cache_allocs;
267269 };
268270
269271 /* RDS message Receive Path Latency points */