Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't get and plot data #1

Closed
abessifi opened this issue Apr 15, 2013 · 9 comments
Closed

can't get and plot data #1

abessifi opened this issue Apr 15, 2013 · 9 comments

Comments

@abessifi
Copy link

When I execute this :

python2.6 netperf-wrapper -H localhost -p ping_cdf rrul

I get this console's output :

Warning: Program exited non-zero.
Command: netperf -P 0 -v 0 -D -0.2 -4 -Y CS5,CS5 -H localhost -t TCP_STREAM -l 60 -f m
Program output:
netperf: invalid option -- '0'

Usage: netperf [global options] -- [test options]

Global options:
-a send,recv Set the local send,recv buffer alignment
-A send,recv Set the remote send,recv buffer alignment
-B brandstr Specify a string to be emitted with brief output
-c [cpu_rate] Report local CPU usage
-C [cpu_rate] Report remote CPU usage
-d Increase debugging output
-D [secs,units] * Display interim results at least every secs seconds
using units as the initial guess for units per second
-f G|M|K|g|m|k Set the output units
-F fill_file Pre-fill buffers with data from fill_file
-h Display this text
-H name|ip,fam * Specify the target machine and/or local ip and family
-i max,min Specify the max and min number of iterations (15,1)
-I lvl[,intvl] Specify confidence level (95 or 99) (99)
and confidence interval in percentage (10)
-l testlen Specify test duration (>0 secs) (<0 bytes|trans)
-L name|ip,fam * Specify the local ip|name and address family
-o send,recv Set the local send,recv buffer offsets
-O send,recv Set the remote send,recv buffer offset
-n numcpu Set the number of processors for CPU util
-N Establish no control connection, do 'send' side only
-p port,lport* Specify netserver port number and/or local port
-P 0|1 Don't/Do display test headers
-r Allow confidence to be hit on result only
-t testname Specify test to perform
-T lcpu,rcpu Request netperf/netserver be bound to local/remote cpu
-v verbosity Specify the verbosity level
-W send,recv Set the number of send,recv buffers
-v level Set the verbosity level (default 1, min 0)
-V Display the netperf version and exit

For those options taking two parms, at least one must be specified;
specifying one value without a comma will set both parms to that
value, specifying a value with a leading comma will set just the second
parm, a value with a trailing comma will set just the first. To set
each parm to unique values, specify both and separate them with a
comma.

  • For these options taking two parms, specifying one value with no comma
    will only set the first parms and will leave the second at the default
    value. To set the second value it must be preceded with a comma or be a
    comma-separated pair. This is to retain previous netperf behaviour.

Traceback (most recent call last):
File "netperf-wrapper", line 62, in
results[0].dump_dir(os.path.dirname(settings.OUTPUT) or ".")
File "/home/ahmed/Downloads/netperf-wrapper-master/netperf_wrapper/resultset.py", line 178, in dump_dir
fp.close()
File "/usr/lib/python2.6/io.py", line 1492, in close
if not self.closed:
File "/usr/lib/python2.6/io.py", line 1498, in closed
return self.buffer.closed
AttributeError: GzipFile instance has no attribute 'closed'

@tohojo
Copy link
Owner

tohojo commented Apr 15, 2013

That looks like two separate errors. The first one is probably due to netperf not being built with the --enable-demo option. You need netperf version 2.6 or newer, and --enable-demo must be passed to configure when building it. If you're on Debian or Ubuntu, I have a prebuilt package available at my repository: http://archive.tohojo.dk/apt/

The second part is due to a bug in the python2.6 standard library; I checked in a workaround that should fix it. :)

@abessifi
Copy link
Author

Thanks for your reply.
I'll test your built package and you'll get my feedbacks

Regards,
Ahmed

2013/4/15 Toke Høiland-Jørgensen notifications@github.com

That looks like two separate errors. The first one is probably due to
netperf not being built with the --enable-demo option. You need netperf
version 2.6 or newer, and --enable-demo must be passed to configure when
building it. If you're on Debian or Ubuntu, I have a prebuilt package
available at my repository: http://archive.tohojo.dk/apt/

The second part is due to a bug in the python2.6 standard library; I
checked in a workaround that should fix it. :)


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-16377157
.

"*We build software for people that build software.."

Ahmed Bessifi*

Étudiant ingénieur en informatique à la Faculté des Sciences de Tunis,
Technicien Supérieur en Télécommunication diplômé de l'ISETCom,
Membre au Club des Logiciels Libres à la FST.

@tohojo
Copy link
Owner

tohojo commented Apr 18, 2013

Did you get a chance to test if the fix works for you? :)

@abessifi
Copy link
Author

Yes it works.

2013/4/18 Toke Høiland-Jørgensen notifications@github.com

Did you get a chance to test if the fix works for you? :)


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-16576352
.

"*We build software for people that build software.."

Ahmed Bessifi*

Étudiant ingénieur en informatique à la Faculté des Sciences de Tunis,
Technicien Supérieur en Télécommunication diplômé de l'ISETCom,
Membre au Club des Logiciels Libres à la FST.

@tohojo
Copy link
Owner

tohojo commented Apr 18, 2013

Excellent :)

@tohojo tohojo closed this as completed Apr 18, 2013
@abessifi
Copy link
Author

Thinks :)

2013/4/18 Toke Høiland-Jørgensen notifications@github.com

Excellent :)


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-16577126
.

"*We build software for people that build software.."

Ahmed Bessifi*

Étudiant ingénieur en informatique à la Faculté des Sciences de Tunis,
Technicien Supérieur en Télécommunication diplômé de l'ISETCom,
Membre au Club des Logiciels Libres à la FST.

@abessifi
Copy link
Author

Hi,
In fact I wanted to know is it possible to plot a graph with netperf-wrapper
giving it json data that I got in some previous test.

In my case my tests will be executed in a server (no x11 server :p) so
there is no graphical interface. Then I would like to start test, get json
data and generate graphics whith my laptop (Fedora).

Regards,
Ahmed

2013/4/18 Ahmed Bessifi ahmed.bessifi@gmail.com

Thinks :)

2013/4/18 Toke Høiland-Jørgensen notifications@github.com

Excellent :)


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-16577126
.

"*We build software for people that build software.."

Ahmed Bessifi*

Étudiant ingénieur en informatique à la Faculté des Sciences de Tunis,
Technicien Supérieur en Télécommunication diplômé de l'ISETCom,
Membre au Club des Logiciels Libres à la FST.

"*We build software for people that build software.."

Ahmed Bessifi*

Étudiant ingénieur en informatique à la Faculté des Sciences de Tunis,
Technicien Supérieur en Télécommunication diplômé de l'ISETCom,
Membre au Club des Logiciels Libres à la FST.

@abessifi
Copy link
Author

Hi, it me again,
I tested this "netperf-wrapper -i json_file -p plot_type" and it works
well. I do not see that in the help description for the first time :p

Thanks.

Best regards,
Ahmed

2013/4/19 Ahmed Bessifi ahmed.bessifi@gmail.com

Hi,
In fact I wanted to know is it possible to plot a graph with netperf-wrapper
giving it json data that I got in some previous test.

In my case my tests will be executed in a server (no x11 server :p) so
there is no graphical interface. Then I would like to start test, get json
data and generate graphics whith my laptop (Fedora).

Regards,
Ahmed

2013/4/18 Ahmed Bessifi ahmed.bessifi@gmail.com

Thinks :)

2013/4/18 Toke Høiland-Jørgensen notifications@github.com

Excellent :)


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-16577126
.

"*We build software for people that build software.."

Ahmed Bessifi*

Étudiant ingénieur en informatique à la Faculté des Sciences de Tunis,
Technicien Supérieur en Télécommunication diplômé de l'ISETCom,
Membre au Club des Logiciels Libres à la FST.

"*We build software for people that build software.."

Ahmed Bessifi*

Étudiant ingénieur en informatique à la Faculté des Sciences de Tunis,
Technicien Supérieur en Télécommunication diplômé de l'ISETCom,
Membre au Club des Logiciels Libres à la FST.

"*We build software for people that build software.."

Ahmed Bessifi*

Étudiant ingénieur en informatique à la Faculté des Sciences de Tunis,
Technicien Supérieur en Télécommunication diplômé de l'ISETCom,
Membre au Club des Logiciels Libres à la FST.

@tohojo
Copy link
Owner

tohojo commented Apr 19, 2013

Ahmed Bessifi notifications@github.com writes:

Hi, it me again,
I tested this "netperf-wrapper -i json_file -p plot_type" and it works
well. I do not see that in the help description for the first time :p

Yeah, that's the way to do it. Note you can use -i multiple times if you
want to combine several data sets into one plot (works well with CDF
plots), or you can use --scale-data to use auxiliary data sets as input
to the plot axis scaling (to make the plots easier comparable).

I really should write a man page...

-Toke

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants