Whamcloud - gitweb
LU-7689 obdclass: limit lu_site hash table size on clients 48/18048/4
authorLi Dongyang <dongyang.li@anu.edu.au>
Wed, 20 Jan 2016 01:17:28 +0000 (12:17 +1100)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 14 Mar 2016 02:41:35 +0000 (02:41 +0000)
commit522c1eb4d2f5faf1fa87be07d9617df1439fc0d6
treea79a7f8b9a9e25a2767bd0914ffa933fb1fcb9f8
parent6c9384678f5555f87bcc7311bb5bf73b1e4bf4e4
LU-7689 obdclass: limit lu_site hash table size on clients

Allocating a big hash table using the formula for osd
does not really work for clients. We will create new
hash table for each mount on a single client which is
a lot of memory more than expected.

This patch limits the hash table up to 8M on clients,
which has 524288 entries.

Signed-off-by: Li Dongyang <dongyang.li@anu.edu.au>
Change-Id: I908fda102ec5fd46c1325e0e41f5fe291aaa3378
Reviewed-on: http://review.whamcloud.com/18048
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/obdclass/lu_object.c