[netperf-talk] NetPerf fails in Windows 2008 Server
Vinod Pademar
vinod323 at yahoo.com
Tue Jul 26 08:07:06 PDT 2011
Hi Rick,
Thank you for your mail. I have managed to compile netperf on Win7 by fixing some of the type mismatches as advised.
For the better understanding, I have attached build/errors from the log file "buildfre_win7_x86.log".
I have also attached the WinDDK Warnings message snapshot as well.
Now that I am trying to run my test and it results in same old error. (the output listed below with debug option eneabled.
I will appreciate, if you could help me to ressolve this issue so that I can run the test from a windows r2 64 bit later on.
Regards
Vinod
1>c:\netperf-2.5.0\src\netlib.c(3982) : error C2220: warning treated as error - no 'object' file generated
1>errors in directory c:\netperf-2.5.0\src\netperfdir
1>c:\netperf-2.5.0\src\netlib.c(3982) : error C2220: warning treated as error - no 'object' file generated
1>c:\netperf-2.5.0\src\netlib.c(3982) : warning C4244: 'initializing' : conversion from 'const double' to 'int', possible loss of data
1>warnings in directory c:\netperf-2.5.0\src\netperfdir
1>c:\netperf-2.5.0\src\netlib.c(3982) : warning C4244: 'initializing' : conversion from 'const double' to 'int', possible loss of data
1> C:\WinDDK\7600.16385.1\Bin\x86\oacr\oacrcl @c:\netperf-2.5.0\src\netperfdir\objfre_win7_x86\i386\cl.rsp
1>Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.207 for 80x86
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>cl /Fo"c:\netperf-2.5.0\src\netperfdir\objfre_win7_x86\i386/"
FIX ==========
/* get percentile from histogram */
int
HIST_get_percentile(HIST h, const double percentile){
const double num1 = (int) h->total * percentile;
int num = (int) num1;
int last = 0;
int current = 0;
int result;
===========
1>netlib.c
1>c:\netperf-2.5.0\src\netlib.c(2989) : error C2220: warning treated as error - no 'object' file generated
1>errors in directory c:\netperf-2.5.0\src\netperfdir
1>c:\netperf-2.5.0\src\netlib.c(2989) : error C2220: warning treated as error - no 'object' file generated
1>c:\netperf-2.5.0\src\netlib.c(2989) : warning C4018: '<' : signed/unsigned mismatch
1>warnings in directory c:\netperf-2.5.0\src\netperfdir
1>c:\netperf-2.5.0\src\netlib.c(2989) : warning C4018: '<' : signed/unsigned mismatch
1> C:\WinDDK\7600.16385.1\Bin\x86\oacr\oacrcl @c:\netperf-2.5.0\src\netperfdir\objfre_win7_x86\i386\cl.rsp
1>Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.207 for 80x86
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>cl /Fo"c:\netperf-2.5.0\src\netperfdir\objfre_win7_x86\i386/"
FIX ===========
for (i = 0; i < (int)temp->ai_addrlen; i++) {
===========
Testing ( Windows -> Linux Server @ 10.219.192.20)
C:\netperf-2.5.0\src\NetPerfDir\objfre_win7_x86\i386>netperf.exe -d -f m -i 9,3 -t TCP_STREAM -H 10.219.192.20 -l 20 -c -- -s 131072 -S 131072
resolve_host called with host '10.219.192.20' port '(null)' family AF_UNSPEC getaddrinfo returned the following for host '10.219.192.20' port '(null)' family AF_UNSPEC
cannonical name: '10.219.192.20'
flags: 4 family: AF_INET: socktype: SOCK_STREAM protocol IPPROTO_TCP addrlen 16
sa_family: AF_INET sadata: 0 0 10 219 192 20 0 0 0 0 0 0 0 0 237 104
scan_sockets_args called with the following argument vector netperf.exe -d -f m -i 9 -t TCP_STREAM -H 10.219.192.20 -l 20 -c -- -s 131072 -S 131072
Program name: netperf.exe
Local send alignment: 8
Local recv alignment: 8
Remote send alignment: 8
Remote recv alignment: 8
Report local CPU 1
Report remote CPU 0
Verbosity: 1
Debug: 1
Port: 12865
Test name: TCP_STREAM
Test bytes: 0 Test time: 20 Test trans: 0
Host name: 10.219.192.20
remotehost is 10.219.192.20 and port 12865
resolve_host called with host '10.219.192.20' port '12865' family AF_INET getaddrinfo returned the following for host '10.219.192.20' port '12865' family AF_INET
cannonical name: '10.219.192.20:12865'
flags: 4 family: AF_INET: socktype: SOCK_STREAM protocol IPPROTO_TCP add
rlen 16
sa_family: AF_INET sadata: 50 65 10 219 192 20 0 0 0 0 0 0 0 0 250 104
resolve_host called with host '0.0.0.0' port '0' family AF_UNSPEC getaddrinfo returned the following for host '0.0.0.0' port '0' family AF_UNSPEC
cannonical name: '0.0.0.0'
flags: 4 family: AF_INET: socktype: SOCK_STREAM protocol IPPROTO_TCP addrlen 16
sa_family: AF_INET sadata: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 249 104
establish_control called with host '10.219.192.20' port '12865' remfam AF_INET local '0.0.0.0' port '0' locfam AF_UNSPEC
bound control socket to 0.0.0.0 and 0
successful connection to remote netserver at 10.219.192.20 and 12865
complete_addrinfo using hostname 10.219.192.20 port 0 family AF_INET type SOCK_STREAM prot IPPROTO_TCP flags 0x0
getaddrinfo returned the following for host '10.219.192.20' port '0' family AF_INET
cannonical name: '10.219.192.20'
flags: 4 family: AF_INET: socktype: SOCK_STREAM protocol IPPROTO_TCP addrlen 16
sa_family: AF_INET sadata: 0 0 10 219 192 20 0 0 0 0 0 0 0 0 237 104
local_data_address not set, using local_host_name of '0.0.0.0'
complete_addrinfo using hostname 0.0.0.0 port 0 family AF_UNSPEC type SOCK_STREAM prot IPPROTO_TCP flags 0x1
getaddrinfo returned the following for host '0.0.0.0' port '0' family AF_UNSPEC
cannonical name: '0.0.0.0'
flags: 4 family: AF_INET: socktype: SOCK_STREAM protocol IPPROTO_TCP addrlen 16
sa_family: AF_INET sadata: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 255 104
TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 10.219.192.20 (10.219.192.20) port 0 AF_INET : +/-2.500% @ 99% conf.
create_data_socket: socket 88 obtained...
netperf: get_sock_buffer: send socket size determined to be 131072
netperf: get_sock_buffer: receive socket size determined to be 131072
send_tcp_stream: send_socket obtained...
recv_response: received a 256 byte response
remote listen done.
recv_response: received a 256 byte response
remote reporting results for 20.05 seconds
correction factor: 1.000000
calc_service_demand called: units_sent = 17301504.000000
elapsed_time = 0.000000
cpu_util = 0.000000
num cpu = 0
calc_service_demand using: units_sent = 17301504.000000
elapsed_time = 20.202000
cpu_util = 0.270270
num cpu = 4
calc_service_demand got: thruput = 836.352850
servdem = 12.926136
calculate_confidence: itr 1; time 20.202000; res 6.851403
lcpu 0.270270; rcpu -1.000000
lsdm 12.926136; rsdm -1.000000
create_data_socket: socket 88 obtained...
netperf: get_sock_buffer: send socket size determined to be 131072
netperf: get_sock_buffer: receive socket size determined to be 131072
send_tcp_stream: send_socket obtained...
recv_response: received a 256 byte response
remote listen done.
emulate_alarm - HandlesClosedFlags: 1
netperf: cannot shutdown tcp stream socket: An operation was attempted on something that is not a socket.
C:\netperf-2.5.0\src\NetPerfDir\objfre_win7_x86\i386>
--- On Tue, 7/26/11, Rick Jones <rick.jones2 at hp.com> wrote:
From: Rick Jones <rick.jones2 at hp.com>
Subject: Re: [netperf-talk] NetPerf fails in Windows 2008 Server
To: "Vinod Pademar" <vinod323 at yahoo.com>
Cc: "netperf-talk at netperf.org" <netperf-talk at netperf.org>
Date: Tuesday, July 26, 2011, 2:26 AM
I have been told that the full text of the compiler's messages about warnings/errors should be in a build.log file.
rick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.netperf.org/pipermail/netperf-talk/attachments/20110726/ae2a8b48/attachment.html>
More information about the netperf-talk
mailing list