Whamcloud - gitweb
LU-1282 misc: Use present cpu numbers to save memory.
authorBobi Jam <bobijam@whamcloud.com>
Thu, 5 Apr 2012 06:25:40 +0000 (14:25 +0800)
committerOleg Drokin <green@whamcloud.com>
Wed, 30 May 2012 21:41:02 +0000 (17:41 -0400)
lprocfs stats data should allocated by the number of present cpus in
stead of by possible cpu number which wastes a lot of memory.

When new cpus are hot-plugged in, alloc necessary percpu array
elements on demand.

OSS minimum thread number also better be decided by online cpu
number.

Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: Id1690f185f4f83fae75be7eddb756e413cbc4fba
Reviewed-on: http://review.whamcloud.com/2451
Tested-by: Hudson
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>

No differences found