Whamcloud - gitweb
LU-3496 ost: lprocfs batch update 56/6756/9
authorAndrew Perepechko <andrew_perepechko@xyratex.com>
Tue, 3 Jun 2014 16:47:00 +0000 (20:47 +0400)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 16 Jun 2014 03:50:20 +0000 (03:50 +0000)
commitc8c47fa11235e9d4f4faddd8b11efd27145b72a8
treee52188501b5e0bc65c7a7706273fbb79144759ca
parent65c712fe4db0042baea01fce55bb33cd750a56c6
LU-3496 ost: lprocfs batch update

Update lprocfs stats such as cache hits, misses, totals
using single calls to lprocfs_counter_add so as to
improve performance.

Non-zero number of hits/misses/totals for a single RPC
counts as a single sample for the respective hits/misses/totals
counter.

Signed-off-by: Andrew Perepechko <andrew_perepechko@xyratex.com>
Reviewed-by: Alexander Boyko <Alexander_Boyko@xyratex.com>
Reviewed-by: alexander_zarochentsev@xyratex.com
Reviewed-by: Vitaly Fertman <Vitaly_Fertman@xyratex.com>
Xyratex-bug-id: MRP-999
Change-Id: I8771e81b7e0356436a1ffcb7e9c51b87580750a9
Reviewed-on: http://review.whamcloud.com/6756
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
lustre/osd-ldiskfs/osd_io.c
lustre/tests/sanity.sh