* [PATCH 1/4] Partly revert 8172fe97 in 2008 (A few debug debug log fixes)
@ 2017-01-10 17:39 kusumi.tomohiro
2017-01-10 17:39 ` [PATCH 2/4] Add missing trailing \n in dprint() kusumi.tomohiro
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: kusumi.tomohiro @ 2017-01-10 17:39 UTC (permalink / raw)
To: axboe, fio; +Cc: Tomohiro Kusumi
From: Tomohiro Kusumi <tkusumi@tuxera.com>
Not sure what the point of 8172fe97 was, but shouldn't all the
prints within a single line be dprint() (or all be log_info()) ?
Signed-off-by: Tomohiro Kusumi <tkusumi@tuxera.com>
---
ioengine.h | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/ioengine.h b/ioengine.h
index 08e8fab..89873e7 100644
--- a/ioengine.h
+++ b/ioengine.h
@@ -238,12 +238,9 @@ static inline void dprint_io_u(struct io_u *io_u, const char *p)
dprint(FD_IO, "%s: io_u %p: off=%llu/len=%lu/ddir=%d", p, io_u,
(unsigned long long) io_u->offset,
io_u->buflen, io_u->ddir);
- if (fio_debug & (1 << FD_IO)) {
- if (f)
- log_info("/%s", f->file_name);
-
- log_info("\n");
- }
+ if (f)
+ dprint(FD_IO, "/%s", f->file_name);
+ dprint(FD_IO, "\n");
}
#else
#define dprint_io_u(io_u, p)
--
2.5.5
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/4] Add missing trailing \n in dprint()
2017-01-10 17:39 [PATCH 1/4] Partly revert 8172fe97 in 2008 (A few debug debug log fixes) kusumi.tomohiro
@ 2017-01-10 17:39 ` kusumi.tomohiro
2017-01-10 17:39 ` [PATCH 3/4] Fix README regarding fio snapshots kusumi.tomohiro
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: kusumi.tomohiro @ 2017-01-10 17:39 UTC (permalink / raw)
To: axboe, fio; +Cc: Tomohiro Kusumi
From: Tomohiro Kusumi <tkusumi@tuxera.com>
Signed-off-by: Tomohiro Kusumi <tkusumi@tuxera.com>
---
iolog.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/iolog.c b/iolog.c
index 25d8dd0..2e8da13 100644
--- a/iolog.c
+++ b/iolog.c
@@ -277,7 +277,7 @@ restart:
overlap = 1;
if (overlap) {
- dprint(FD_IO, "iolog: overlap %llu/%lu, %llu/%lu",
+ dprint(FD_IO, "iolog: overlap %llu/%lu, %llu/%lu\n",
__ipo->offset, __ipo->len,
ipo->offset, ipo->len);
td->io_hist_len--;
--
2.5.5
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 3/4] Fix README regarding fio snapshots
2017-01-10 17:39 [PATCH 1/4] Partly revert 8172fe97 in 2008 (A few debug debug log fixes) kusumi.tomohiro
2017-01-10 17:39 ` [PATCH 2/4] Add missing trailing \n in dprint() kusumi.tomohiro
@ 2017-01-10 17:39 ` kusumi.tomohiro
2017-01-10 17:39 ` [PATCH 4/4] Python style/portability fix kusumi.tomohiro
2017-01-10 20:21 ` [PATCH 1/4] Partly revert 8172fe97 in 2008 (A few debug debug log fixes) Jens Axboe
3 siblings, 0 replies; 5+ messages in thread
From: kusumi.tomohiro @ 2017-01-10 17:39 UTC (permalink / raw)
To: axboe, fio; +Cc: Tomohiro Kusumi
From: Tomohiro Kusumi <tkusumi@tuxera.com>
As of now, fio-git-*.tar.{gz,bz2} are git repositories,
but fio-`version`.tar.gz are archives without .git/ meta data.
Signed-off-by: Tomohiro Kusumi <tkusumi@tuxera.com>
---
README | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/README b/README
index 875d2be..31d53fe 100644
--- a/README
+++ b/README
@@ -21,7 +21,8 @@ If git:// does not work, use the http protocol instead:
http://git.kernel.dk/fio.git
-Snapshots are frequently generated and include the git meta data as well.
+Snapshots are frequently generated and fio-git-*.tar.gz include the git
+meta data as well. Other tarballs are archives of official fio releases.
Snapshots can download from:
http://brick.kernel.dk/snaps/
@@ -262,7 +263,7 @@ the copyright and license requirements currently apply to examples/ files.
Client/server
-------------
+-------------
Normally fio is invoked as a stand-alone application on the machine
where the IO workload should be generated. However, the frontend and
--
2.5.5
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 4/4] Python style/portability fix
2017-01-10 17:39 [PATCH 1/4] Partly revert 8172fe97 in 2008 (A few debug debug log fixes) kusumi.tomohiro
2017-01-10 17:39 ` [PATCH 2/4] Add missing trailing \n in dprint() kusumi.tomohiro
2017-01-10 17:39 ` [PATCH 3/4] Fix README regarding fio snapshots kusumi.tomohiro
@ 2017-01-10 17:39 ` kusumi.tomohiro
2017-01-10 20:21 ` [PATCH 1/4] Partly revert 8172fe97 in 2008 (A few debug debug log fixes) Jens Axboe
3 siblings, 0 replies; 5+ messages in thread
From: kusumi.tomohiro @ 2017-01-10 17:39 UTC (permalink / raw)
To: axboe, fio; +Cc: Tomohiro Kusumi
From: Tomohiro Kusumi <tkusumi@tuxera.com>
In practice, one would normally explicitly derive a class from
object class (was called new-style class back then).
https://docs.python.org/release/2.5.2/ref/node33.html
https://wiki.python.org/moin/NewClassVsClassicClass
print needs parentheses for portability with Python3.x.
xrange() only exists in Python2.x (i.e. breaks on Python3.x).
Using range() (which pre-allocates a whole list in Python2.x)
won't be a problem unless len(averages) is huge enough to give
any pressure to vm subsystem.
Signed-off-by: Tomohiro Kusumi <tkusumi@tuxera.com>
---
tools/fiologparser.py | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/tools/fiologparser.py b/tools/fiologparser.py
index 685f419..5a95009 100755
--- a/tools/fiologparser.py
+++ b/tools/fiologparser.py
@@ -45,7 +45,7 @@ def print_full(ctx, series):
while (start < ftime):
end = ftime if ftime < end else end
results = [ts.get_value(start, end) for ts in series]
- print "%s, %s" % (end, ', '.join(["%0.3f" % i for i in results]))
+ print("%s, %s" % (end, ', '.join(["%0.3f" % i for i in results])))
start += ctx.interval
end += ctx.interval
@@ -57,7 +57,7 @@ def print_sums(ctx, series):
while (start < ftime):
end = ftime if ftime < end else end
results = [ts.get_value(start, end) for ts in series]
- print "%s, %0.3f" % (end, sum(results))
+ print("%s, %0.3f" % (end, sum(results)))
start += ctx.interval
end += ctx.interval
@@ -69,7 +69,7 @@ def print_averages(ctx, series):
while (start < ftime):
end = ftime if ftime < end else end
results = [ts.get_value(start, end) for ts in series]
- print "%s, %0.3f" % (end, float(sum(results))/len(results))
+ print("%s, %0.3f" % (end, float(sum(results))/len(results)))
start += ctx.interval
end += ctx.interval
@@ -147,11 +147,11 @@ def print_default(ctx, series):
end += ctx.interval
total = 0
- for i in xrange(0, len(averages)):
+ for i in range(0, len(averages)):
total += averages[i]*weights[i]
- print '%0.3f' % (total/sum(weights))
+ print('%0.3f' % (total/sum(weights)))
-class TimeSeries():
+class TimeSeries(object):
def __init__(self, ctx, fn):
self.ctx = ctx
self.last = None
@@ -185,7 +185,7 @@ class TimeSeries():
value += sample.get_contribution(start, end)
return value
-class Sample():
+class Sample(object):
def __init__(self, ctx, start, end, value):
self.ctx = ctx
self.start = start
--
2.5.5
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/4] Partly revert 8172fe97 in 2008 (A few debug debug log fixes)
2017-01-10 17:39 [PATCH 1/4] Partly revert 8172fe97 in 2008 (A few debug debug log fixes) kusumi.tomohiro
` (2 preceding siblings ...)
2017-01-10 17:39 ` [PATCH 4/4] Python style/portability fix kusumi.tomohiro
@ 2017-01-10 20:21 ` Jens Axboe
3 siblings, 0 replies; 5+ messages in thread
From: Jens Axboe @ 2017-01-10 20:21 UTC (permalink / raw)
To: kusumi.tomohiro; +Cc: fio, Tomohiro Kusumi
On Wed, Jan 11 2017, kusumi.tomohiro@gmail.com wrote:
> From: Tomohiro Kusumi <tkusumi@tuxera.com>
>
> Not sure what the point of 8172fe97 was, but shouldn't all the
> prints within a single line be dprint() (or all be log_info()) ?
Applied 1-4, thanks.
--
Jens Axboe
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-01-10 20:21 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-10 17:39 [PATCH 1/4] Partly revert 8172fe97 in 2008 (A few debug debug log fixes) kusumi.tomohiro
2017-01-10 17:39 ` [PATCH 2/4] Add missing trailing \n in dprint() kusumi.tomohiro
2017-01-10 17:39 ` [PATCH 3/4] Fix README regarding fio snapshots kusumi.tomohiro
2017-01-10 17:39 ` [PATCH 4/4] Python style/portability fix kusumi.tomohiro
2017-01-10 20:21 ` [PATCH 1/4] Partly revert 8172fe97 in 2008 (A few debug debug log fixes) Jens Axboe
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.