Whamcloud - gitweb
LU-181 ptlrpc: align fields of ptlrpc_request
authorLiang Zhen <liang@whamcloud.com>
Sun, 8 Jul 2012 16:11:08 +0000 (00:11 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Tue, 10 Jul 2012 03:58:31 +0000 (23:58 -0400)
commit4f181cce1ff0a4077f0cbdd37610c4e751484f1d
treeb7cb06c0ef13ab15864586de9b77150cd2c669b6
parent95d67b28076f7938a6c962a5256e9b581a439f71
LU-181 ptlrpc: align fields of ptlrpc_request

Size of ptlrpc_request_buffer_desc is 1048 which means we need 2K
slab for allocating rqbd. This can be changed after we align
fields in ptlrpc_reques to decrease size of ptlrpc_requestt,
because each rqbd has an embedded ptlrpc_request.
We also aligned fields of lu_context because it's embedded in
ptlrpc_request.

With this simple change, size of rqbd is 1008 bytes, and we
can save at least tens of MBs on server.

Signed-off-by: Liang Zhen <liang@whamcloud.com>
Change-Id: Iac292e4375421843785fdae083b1aa667d43b3a7
Reviewed-on: http://review.whamcloud.com/3352
Tested-by: Hudson
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Bobi Jam <bobijam@whamcloud.com>
lustre/include/lu_object.h
lustre/include/lustre_net.h