Displaying 5 results from an estimated 5 matches for "calc_rat".
Did you mean:
calc_rate
2019 Nov 30
4
[PATCH nbdkit v2 0/3] filters: stats: More useful, more friendly
- Use more friendly output with GiB and MiB/s
- Measure time per operation, providing finer grain stats
- Add total stats for understanding system throughput
- Add missing stats for flush
I hope that these changes will help to understand and improve virt-v2v
performance.
Changes since v1:
- Keep bytes values
- Increase precision to 0.001 GiB and 0.001 MiB/s
- Add total stats
- Show time before
2019 Nov 30
0
[PATCH nbdkit v2 3/3] filters: stats: Add flush stats
...tats/stats.c
@@ -73,6 +73,7 @@ static stat trim_st = { "trim" };
static stat zero_st = { "zero" };
static stat extents_st = { "extents" };
static stat cache_st = { "cache" };
+static stat flush_st = { "flush" };
static inline double
calc_rate (uint64_t bytes, int64_t usecs)
@@ -83,14 +84,20 @@ calc_rate (uint64_t bytes, int64_t usecs)
static inline void
print_stat (const stat *st)
{
- if (st->ops > 0)
- fprintf (fp, "%s: %" PRIu64 " ops, %.3f s, %" PRIu64 " bytes, %.3f GiB, %.3f MiB/s\n",
+ i...
2005 Mar 02
24
unstable binaries
Hi *,
i am coming from UML, and now i evaluate Xen on my desktop:
Xen-2.0.4
linux-2.6.10
"CONFIG_MODULES is not set"
"CONFIG_AGP is not set"
"CONFIG_FB_RADEON=y"
FC3, [/usr]/lib/tls moved away
It works, but some desktop applications crash once in a
while within dom0:
metacity-2.8.6
firefox-1.0.1
wnck-applet (from gnome-panel-2.8.1)
But
2019 Nov 30
0
[PATCH nbdkit v2 2/3] filters: stats: Measure time per operation
...tats.c b/filters/stats/stats.c
index 6bef65c..2c92c65 100644
--- a/filters/stats/stats.c
+++ b/filters/stats/stats.c
@@ -62,6 +62,7 @@ typedef struct {
const char *name;
uint64_t ops;
uint64_t bytes;
+ uint64_t usecs;
} stat;
/* This lock protects all the stats. */
@@ -80,28 +81,42 @@ calc_rate (uint64_t bytes, int64_t usecs)
}
static inline void
-print_stat (const stat *st, int64_t usecs)
+print_stat (const stat *st)
{
if (st->ops > 0)
- fprintf (fp, "%s: %" PRIu64 " ops, %" PRIu64 " bytes, %.3f GiB, %.3f MiB/s\n",
+ fprintf (fp, "%...
2019 Nov 30
0
[PATCH nbdkit v2 1/3] filters: stats: Add size in GiB, show rate in MiB/s
...#define GiB 1073741824.0
+#define USEC 1000000.0
+
static char *filename;
static bool append;
static FILE *fp;
@@ -70,29 +74,35 @@ static stat extents_st = { "extents" };
static stat cache_st = { "cache" };
static inline double
-calc_bps (uint64_t bytes, int64_t usecs)
+calc_rate (uint64_t bytes, int64_t usecs)
{
- return 8.0 * bytes / usecs * 1000000.;
+ return bytes / MiB / usecs * USEC;
}
static inline void
print_stat (const stat *st, int64_t usecs)
{
if (st->ops > 0)
- fprintf (fp, "%s: %" PRIu64 " ops, %" PRIu64 " bytes, %...