Commit 4664d683 authored by Richael Zhuang's avatar Richael Zhuang Committed by Tomasz Zawadzki
Browse files

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: default avatarRichael Zhuang <richael.zhuang@arm.com>
Change-Id: Iff4c6eaffb4ec5ae8fe02b35f72aed7f6b272bb5
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2255


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: default avatarAleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
parent 257734a1
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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) {