Commit 90c4ca8
committed
Introduce RDMA transport
Main changes in this patch:
* implement server side of connection module only, this means we can *NOT*
compile RDMA support as built-in.
* add necessary information in README.md
* support 'CONFIG SET/GET', for example, 'CONFIG Set rdma.port 6380', then
check this by 'rdma res show cm_id' and valkey-cli(with RDMA support,
but not implemented in this patch)
* the full listeners show like():
listener0:name=tcp,bind=*,bind=-::*,port=6379
listener1:name=unix,bind=/var/run/valkey.sock
listener2:name=rdma,bind=xx.xx.xx.xx,bind=yy.yy.yy.yy,port=6379
listener3:name=tls,bind=*,bind=-::*,port=16379
valgrind test works fine:
valgrind --track-origins=yes --suppressions=./src/valgrind.sup
--show-reachable=no --show-possibly-lost=no --leak-check=full
--log-file=err.txt ./src/valkey-server --port 6379
--loadmodule src/valkey-rdma.so port=6379 bind=xx.xx.xx.xx
--loglevel verbose --protected-mode no --server_cpulist 2
--bio_cpulist 3 --aof_rewrite_cpulist 3 --bgsave_cpulist 3
--appendonly no
performance test:
server side: ./src/valkey-server --port 6379 # TCP port 6379 has no conflict with RDMA port 6379
--loadmodule src/valkey-rdma.so port=6379 bind=xx.xx.xx.xx bind=yy.yy.yy.yy
--loglevel verbose --protected-mode no --server_cpulist 2 --bio_cpulist 3
--aof_rewrite_cpulist 3 --bgsave_cpulist 3 --appendonly no
build a valkey-benchmark with RDMA support(not implemented in this patch), run
on a x86(Intel Platinum 8260) with RoCEv2 interface(Mellanox ConnectX-5):
client side: ./src/valkey-benchmark -h xx.xx.xx.xx -p 6379 -c 30 -n 10000000 --threads 4
-d 1024 -t ping,get,set --rdma
====== PING_INLINE ======
480561.28 requests per second, 0.060 msec avg latency.
====== PING_MBULK ======
540482.06 requests per second, 0.053 msec avg latency.
====== SET ======
399952.00 requests per second, 0.073 msec avg latency.
====== GET ======
443498.31 requests per second, 0.065 msec avg latency.
Signed-off-by: zhenwei pi <[email protected]>1 parent 6bab2d7 commit 90c4ca8
3 files changed
+1957
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
34 | 40 | | |
35 | 41 | | |
36 | 42 | | |
| |||
155 | 161 | | |
156 | 162 | | |
157 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
158 | 194 | | |
159 | 195 | | |
160 | 196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
335 | 356 | | |
336 | 357 | | |
337 | 358 | | |
| |||
409 | 430 | | |
410 | 431 | | |
411 | 432 | | |
412 | | - | |
| 433 | + | |
413 | 434 | | |
414 | 435 | | |
415 | 436 | | |
| |||
432 | 453 | | |
433 | 454 | | |
434 | 455 | | |
| 456 | + | |
435 | 457 | | |
436 | 458 | | |
437 | 459 | | |
| |||
484 | 506 | | |
485 | 507 | | |
486 | 508 | | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
487 | 513 | | |
488 | 514 | | |
489 | 515 | | |
| |||
0 commit comments