]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
perfcounters: fl -> time, use u64 nsec instead of double
authorSage Weil <sage@inktank.com>
Mon, 26 Nov 2012 22:34:44 +0000 (14:34 -0800)
committerSage Weil <sage@inktank.com>
Mon, 26 Nov 2012 23:30:25 +0000 (15:30 -0800)
commit94423ac90f90688a60b1ccab439e07947e38daef
tree8705487431950357230c6caa746cfd891dde8b81
parent3a0ee8e49dbaa84ff0faf6fbad5d24945aafce1f
perfcounters: fl -> time, use u64 nsec instead of double

(Almost) all current float users are actually time values, so switch to
a utime_t-based interface and internally using nsec in a u64.  This avoids
using floating point in librbd, which is problematic for windows VMs that
leave the FPU in an unfriendly state.

There are two non-time users in the mds and osd that log the CPU load.
Just multiply those values by 100 and report as ints instead.

Fixes: #3521
Signed-off-by: Sage Weil <sage@inktank.com>
22 files changed:
src/client/Client.cc
src/client/SyntheticClient.cc
src/common/Finisher.h
src/common/Mutex.cc
src/common/Throttle.cc
src/common/perf_counters.cc
src/common/perf_counters.h
src/include/utime.h
src/librbd/AioCompletion.h
src/librbd/ImageCtx.cc
src/librbd/internal.cc
src/mds/MDS.cc
src/mds/Server.cc
src/os/FileJournal.cc
src/os/FileStore.cc
src/osd/OSD.cc
src/osd/ReplicatedPG.cc
src/osdc/Journaler.cc
src/osdc/ObjectCacher.cc
src/rgw/rgw_common.cc
src/rgw/rgw_op.cc
src/test/perf_counters.cc