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.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -250,6 +250,7 @@ struct rds_info_rdma_connection { · 249 unmodified lines | |||
| 250 | __u32 rdma_mr_max; | 250 | __u32 rdma_mr_max; |
| 251 | __u32 rdma_mr_size; | 251 | __u32 rdma_mr_size; |
| 252 | __u8 tos; | 252 | __u8 tos; |
| 253 | __u32 cache_allocs; | ||
| 253 | }; | 254 | }; |
| 254 | 255 | ||
| 255 | struct rds6_info_rdma_connection { | 256 | struct rds6_info_rdma_connection { |
| @@ -264,6 +265,7 @@ struct rds6_info_rdma_connection { · 8 unmodified lines | |||
| 264 | __u32 rdma_mr_max; | 265 | __u32 rdma_mr_max; |
| 265 | __u32 rdma_mr_size; | 266 | __u32 rdma_mr_size; |
| 266 | __u8 tos; | 267 | __u8 tos; |
| 268 | __u32 cache_allocs; | ||
| 267 | }; | 269 | }; |
| 268 | 270 | ||
| 269 | /* RDS message Receive Path Latency points */ | 271 | /* RDS message Receive Path Latency points */ |