sock/posix: enable pipe buffer on arm64

The pipe buffer gives about 19% randwrite and 56% randread
performance boost on arm64 from my test. We can also enable it on
arm64.

Signed-off-by: Richael Zhuang <richael.zhuang@arm.com>
Change-Id: Iff4c6eaffb4ec5ae8fe02b35f72aed7f6b272bb5
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2255
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Richael Zhuang 2020-05-08 10:08:22 +08:00 committed by Tomasz Zawadzki
parent 257734a1e1
commit 4664d683cc

View File

@ -258,13 +258,10 @@ spdk_posix_sock_set_recvbuf(struct spdk_sock *_sock, int sz)
assert(sock != NULL);
#ifndef __aarch64__
/* On ARM systems, this buffering does not help. Skip it. */
rc = spdk_posix_sock_alloc_pipe(sock, sz);
if (rc) {
return rc;
}
#endif
/* Set kernel buffer size to be at least SO_RCVBUF_SIZE */
if (sz < SO_RCVBUF_SIZE) {