Skip to content
Snippets Groups Projects
Commit afa08363 authored by Dmitry Fleytman's avatar Dmitry Fleytman Committed by Nadav Har'El
Browse files

netperf: since alarm() support added no special patch is needed


  1. Netperf patch removed from repository
  2. Documentation updated

Signed-off-by: default avatarDmitry Fleytman <dmitry@daynix.com>
Signed-off-by: default avatarNadav Har'El <nyh@cloudius-systems.com>
parent ee88c900
No related branches found
No related tags found
No related merge requests found
To measure netwroking throughput we use netperf-2.6.0, To measure networking throughput we use netperf-2.6.0,
The netperf client isn't working in OS-v, only netserver, The netperf client isn't working in OS-v, only netserver.
and only after applying a small patch to the source.
Additional limitation is inability of netserver to track test execution time
on OS-v, when using TCP_MAERTS mode limit test duration by number of bytes transferred
and not by time.
How to compile netperf from source so it'll run on osv: How to compile netperf from source so it'll run on osv:
...@@ -17,14 +12,11 @@ $ ./configure ...@@ -17,14 +12,11 @@ $ ./configure
$ make $ make
$ sudo make install $ sudo make install
3. apply the osv patch to netperf 3. build again
$ patch -p1 < osv.patch
4. build again
$ make clean $ make clean
$ make CFLAGS="-fPIC -shared" $ make CFLAGS="-fPIC -shared"
5. copy src/netserver and use it in OS-v. 4. copy src/netserver and use it in OS-v.
......
diff --git a/src/netlib.c b/src/netlib.c
index 206e002..8433d59 100644
--- a/src/netlib.c
+++ b/src/netlib.c
@@ -888,7 +888,7 @@ void
stop_timer()
{
#ifndef WIN32
- alarm(0);
+ //alarm(0);
#else
/* at some point we may need some win32 equivalent */
if (hAlarm != (HANDLE) INVALID_HANDLE_VALUE) {
@@ -1095,6 +1095,7 @@ void
start_timer(int time)
{
+ return;
#ifdef WIN32
/*+*+SAF What if StartTimer is called twice without the first timer */
/*+*+SAF expiring? */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment