Skip to contentSkip to conversation

perf tools: Fix an error on perf-bench document

PATCH In review Namhyung Kim 3 participants 7 messages Jun 17, 2012 – Jul 1, 2012 perf events

lore
Share & tools
lore

Namhyung Kim

author maintainer
#0 lore raw

PATCH 1/1 perf tools: Fix an error on perf-bench document

The pipe should be messaging.

---
 tools/perf/Documentation/perf-bench.txt |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tools/perf/Documentation/perf-bench.txt +2 -2
index a3dbadb26ef5..d53d22f0c6ee 100644
@@ -51,8 +51,8 @@ SUITES FOR 'sched'
 Suite for evaluating performance of scheduler and IPC mechanisms.
 Based on hackbench by Rusty Russell.
 
-Options of *pipe*
-^^^^^^^^^^^^^^^^^
+Options of *messaging*
+^^^^^^^^^^^^^^^^^^^^^^
 -p::
 --pipe::
 Use pipe() instead of socketpair()
Signature · 1 line
1.7.9.2
#1 lore raw
Quoted 13 lines · Namhyung Kim

The pipe should be messaging.

---
 tools/perf/Documentation/perf-bench.txt |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tools/perf/Documentation/perf-bench.txt +0 -0
index a3dbadb26ef5..d53d22f0c6ee 100644

tools/perf/Documentation/perf-bench.txt SUITES FOR 'sched' · line 58

Quoted 10 lines
tools/perf/Documentation/perf-bench.txt +2 -2
@@ -51,8 +51,8 @@ SUITES FOR 'sched'
 Suite for evaluating performance of scheduler and IPC mechanisms.
 Based on hackbench by Rusty Russell.
 
-Options of *pipe*
-^^^^^^^^^^^^^^^^^
+Options of *messaging*
+^^^^^^^^^^^^^^^^^^^^^^
 -p::
 --pipe::
 Use pipe() instead of socketpair()

There's several typos all across the perf bench documentation:

1)

This perf bench command is general framework for benchmark suites.

s/is general/is a general

2)

The output of 'perf bench --help' outputs weird looking formatting characters like:

           .ft C
           % perf bench sched pipe                      # with no style specified
           (executing 1000000 pipe operations between two tasks)
                   Total time:5.855 sec
                           5.855061 usecs/op
                           170792 ops/sec
           .ft

3)

This:

all: test all suite (pseudo suite)

s/all suite (psudo suite)/all benchmark suites

(this should be fixed for perf bench mem as well.)

4)

perf bench mem memcpy -h outputs:

-l, --length <1MB> Specify length of memory to copy. available unit: B, MB, GB (upper and lower)

bad capitalization: s/. a/. A

s/unit/units

5)

This:

-c, --clock Use CPU clock for measuring

should probably clarify why the CPU clock matters and what measurement is done otherwise.

Thanks,

Ingo

author maintainer
#2 lore raw

Hi, Ingo

Quoted 8 lines · Ingo Molnar

There's several typos all across the perf bench documentation:

1)

This perf bench command is general framework for benchmark suites.

s/is general/is a general

Will fix.

Quoted 5 lines

2)

The output of 'perf bench --help' outputs weird looking formatting characters like:

Quoted 8 lines
           .ft C
           % perf bench sched pipe                      # with no style specified
           (executing 1000000 pipe operations between two tasks)
                   Total time:5.855 sec
                           5.855061 usecs/op
                           170792 ops/sec
           .ft

I have no idea on this, maybe a problem of asciidoc?

Quoted 10 lines

3)

This:

all: test all suite (pseudo suite)

s/all suite (psudo suite)/all benchmark suites

(this should be fixed for perf bench mem as well.)

Will fix.

Quoted 10 lines

4)

perf bench mem memcpy -h outputs:

-l, --length <1MB> Specify length of memory to copy. available unit: B, MB, GB (upper and lower)

bad capitalization: s/. a/. A

s/unit/units

Will fix too.

Quoted 9 lines

5)

This:

-c, --clock Use CPU clock for measuring

should probably clarify why the CPU clock matters and what measurement is done otherwise.

This looks a bit weird. If -c switch was given, it'd use the cycles event not the cpu-clock event. If omitted, it'd use the gtod().

Thanks,
Namhyung

#3 lore raw
Quoted 64 lines · Namhyung Kim

Hi, Ingo

Quoted 8 lines · Ingo Molnar

There's several typos all across the perf bench documentation:

1)

       This perf bench command is general framework for benchmark suites.

s/is general/is a general

Will fix.

Quoted 5 lines

2)

The output of 'perf bench --help' outputs weird looking formatting characters like:

Quoted 8 lines

           .ft C
           % perf bench sched pipe                      # with no style specified (executing 1000000 pipe operations between two tasks) Total time:5.855 sec
                           5.855061 usecs/op
                           170792 ops/sec
           .ft

I have no idea on this, maybe a problem of asciidoc?

Quoted 10 lines

3)

This:

           all: test all suite (pseudo suite)

s/all suite (psudo suite)/all benchmark suites

(this should be fixed for perf bench mem as well.)

Will fix.

Quoted 10 lines

4)

perf bench mem memcpy -h outputs:

    -l, --length <1MB>    Specify length of memory to copy. available unit: B, MB, GB (upper and lower)

bad capitalization: s/. a/. A

s/unit/units

Will fix too.

Quoted 4 lines

5)

This:

Quoted 9 lines
Quoted 5 lines

    -c, --clock           Use CPU clock for measuring

should probably clarify why the CPU clock matters and what measurement is done otherwise.

This looks a bit weird. If -c switch was given, it'd use the cycles event not the cpu-clock event. If omitted, it'd use the gtod().

Very sorry, I misused the terms clock and cycles. The memset uses hardware cycles event, the above naming and description with "clock" is very bad...
I will write and send a patch for fix the problem.

Signature · 2 lines
Hitoshi Mitake
[email protected]
#4 lore raw
Quoted 71 lines · Hitoshi Mitake
Quoted 70 lines · Namhyung Kim

Hi, Ingo

Quoted 8 lines · Ingo Molnar

There's several typos all across the perf bench documentation:

1)

       This perf bench command is general framework for benchmark suites.

s/is general/is a general

Will fix.

Quoted 5 lines

2)

The output of 'perf bench --help' outputs weird looking formatting characters like:

Quoted 8 lines

           .ft C
           % perf bench sched pipe                      # with no style specified (executing 1000000 pipe operations between two tasks) Total time:5.855 sec
                           5.855061 usecs/op
                           170792 ops/sec
           .ft

I have no idea on this, maybe a problem of asciidoc?

Quoted 10 lines

3)

This:

           all: test all suite (pseudo suite)

s/all suite (psudo suite)/all benchmark suites

(this should be fixed for perf bench mem as well.)

Will fix.

Quoted 10 lines

4)

perf bench mem memcpy -h outputs:

    -l, --length <1MB>    Specify length of memory to copy. available unit: B, MB, GB (upper and lower)

bad capitalization: s/. a/. A

s/unit/units

Will fix too.

Quoted 9 lines

5)

This:

    -c, --clock           Use CPU clock for measuring

should probably clarify why the CPU clock matters and what measurement is done otherwise.

Quoted 8 lines
Quoted 3 lines

This looks a bit weird. If -c switch was given, it'd use the cycles event not the cpu-clock event. If omitted, it'd use the gtod().

Very sorry, I misused the terms clock and cycles. The memset uses hardware cycles event, the above naming and description with "clock" is very bad...
I will write and send a patch for fix the problem.

I wrote the simple fix for eliminatng wrong usage of "clock":
https://github.com/mitake/linux/commit/b7836d41deff430c16058ca729120dccfa41e74e

This patch assumes the change made by the Namhyung's patch. So I'm planning to send this after the Namhyung's patch is applied to tip tree. Or should the patches be unified before applied?

Signature · 2 lines
Hitoshi Mitake
[email protected]
author maintainer
#5 lore raw
Quoted 6 lines · Hitoshi Mitake

I wrote the simple fix for eliminatng wrong usage of "clock":
https://github.com/mitake/linux/commit/b7836d41deff430c16058ca729120dccfa41e74e

This patch assumes the change made by the Namhyung's patch. So I'm planning to send this after the Namhyung's patch is applied to tip tree. Or should the patches be unified before applied?

The patch is now in Arnaldo's tree. So you can see it in tip tree soon unless something bad happens.

Anyway, looking at your commit (I think it's better just to send it via email with mentioning the dependency), it seems only addresses memset part but I think memcpy has the same problem, right?

Thanks,
Namhyung

#6 lore raw
Quoted 8 lines · Namhyung Kim
Quoted 6 lines · Hitoshi Mitake

I wrote the simple fix for eliminatng wrong usage of "clock":
https://github.com/mitake/linux/commit/b7836d41deff430c16058ca729120dccfa41e74e

This patch assumes the change made by the Namhyung's patch. So I'm planning to send this after the Namhyung's patch is applied to tip tree. Or should the patches be unified before applied?

Quoted 6 lines

The patch is now in Arnaldo's tree. So you can see it in tip tree soon unless something bad happens.

Anyway, looking at your commit (I think it's better just to send it via email with mentioning the dependency), it seems only addresses memset part but I think memcpy has the same problem, right?

Thanks for your pointing. I had to fix the problem of memcpy too. I'll send the new patch later.

Signature · 2 lines
Hitoshi Mitake
[email protected]