]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
staging: lustre: obdclass: limit lu_site hash table size on clients
authorLi Dongyang <dongyang.li@anu.edu.au>
Sat, 3 Dec 2016 00:53:17 +0000 (19:53 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 Dec 2016 09:54:33 +0000 (10:54 +0100)
commit817990ba1a1545875fed01a9014ac7f78dedf16d
tree8e9157ec764d161324353729e9d1a365a957dbef
parentbfb9944c215d1207bae47b53ddc5900c8d570007
staging: lustre: obdclass: limit lu_site hash table size on clients

Allocating a big hash table using the current formula
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 for clients,
which has 524288 entries.

Signed-off-by: Li Dongyang <dongyang.li@anu.edu.au>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7689
Reviewed-on: http://review.whamcloud.com/18048
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/obdclass/lu_object.c