Whamcloud - gitweb
LU-3281 obdclass: remove structure holes to reduce memory 92/16692/2
authorAndreas Dilger <andreas.dilger@intel.com>
Thu, 9 May 2013 04:00:07 +0000 (22:00 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 7 Oct 2015 17:39:01 +0000 (17:39 +0000)
commit790ca7b3c47d27639390bd7a2b9693182d3f24d6
tree129b650a11338c4c7792b4ad732a0d011e0a2995
parent846efa4d098d3becb74bad343ba6adb6abc8b394
LU-3281 obdclass: remove structure holes to reduce memory

Fix the alignment of fields in commonly-used structures to reduce
memory usage on the client and server.  Structures fixed:

ptlrpc_reply_state: reduced by 8 bytes
obd_device:         reduced by 16 bytes
niobuf_local:       reduced by 8 bytes

Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: Ibe50c02e7ba823e337e846f90c6267cffc3ebbe5
Reviewed-on: http://review.whamcloud.com/16692
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lustre_net.h
lustre/include/obd.h