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)
commit65dc702123f91c4fb2ae25604f98e195fcc15544
tree33d8d0a35d095e9767579f5982b7d05312c0b9ca
parentd73f5d18e6a9dd1b925265ed60a749e1a6287555
LU-1282 misc: Use present cpu numbers to save memory.

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>
libcfs/include/libcfs/linux/kp30.h
libcfs/include/libcfs/user-prim.h
libcfs/include/libcfs/winnt/winnt-prim.h
libcfs/libcfs/linux/linux-tracefile.c
lustre/include/lprocfs_status.h
lustre/lvfs/lvfs_lib.c
lustre/obdclass/lprocfs_status.c
lustre/ost/ost_handler.c