Whamcloud - gitweb
LU-11897 ost: improve memory allocation for ost 27/34127/7
authorAndrew Perepechko <c17827@cray.com>
Fri, 26 Oct 2018 08:29:03 +0000 (11:29 +0300)
committerOleg Drokin <green@whamcloud.com>
Mon, 18 Feb 2019 06:37:41 +0000 (06:37 +0000)
commit3a90458bd84d43cc75c5a80f8c02f30d6412690a
treeb0454b05da160c01cff01cf449194d19ba6a0113
parentb8e6c8bdca9bd0e12d78cd4a06800c13f4293325
LU-11897 ost: improve memory allocation for ost

OST_BUFSIZE is defined as 17 KiB. Lustre uses
OBD_CPT_ALLOC_LARGE() to allocate buffers, which,
in turn, uses kmalloc_node(). kmalloc_node(8192+) falls
back to the traditional buddy allocator kmalloc_large_node().

In the end, 32 KiB is allocated using a 17 KiB allocation
request.

This patch changes OST_BUFSIZE to 32 KiB so we can
effectively use the whole allocated buffer.

Change-Id: I93ce5b26eff4a6a1a17b2a9bfb83161528570197
Signed-off-by: Andrew Perepechko <c17827@cray.com>
Reviewed-by: Alexey Lyashkov <c17817@cray.com>
Reviewed-by: Alexander Zarochentsev <c17826@cray.com>
Tested-by: Alexander Lezhoev <c17454@cray.com>
Cray-bug-id: LUS-6657
Reviewed-on: https://review.whamcloud.com/34127
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
lustre/include/lustre_net.h
lustre/ptlrpc/service.c