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

Fail to run iperf3 on osv #305

Closed
asias opened this issue May 15, 2014 · 2 comments
Closed

Fail to run iperf3 on osv #305

asias opened this issue May 15, 2014 · 2 comments

Comments

@asias
Copy link
Contributor

asias commented May 15, 2014

We are missing some symbols.

[asias@hjpc osv]$ scripts/check-libcfunc-avail.sh release apps/iperf3/libiperf.so.0.0.0
__h_errno_location not found
getpeername not found
system not found
sched_setaffinity not found
sendfile not found
hstrerror not found
[asias@hjpc osv]$ scripts/check-libcfunc-avail.sh release apps/iperf3/iperf3.so
daemon not found

The iperf3 module for osv is here: https://github.com/asias/osv-apps/tree/iperf3

asias added a commit to asias/osv that referenced this issue May 23, 2014
This is needed to run iperf3.

cloudius-systems#305

Signed-off-by: Asias He <[email protected]>
@asias
Copy link
Contributor Author

asias commented May 23, 2014

With getpeername and __h_errno_location implemented, we are able to run iperf3 now. But another issue occurred.

[asias@muninn osv]$ sudo scripts/run.py -nv -c1
OSv v0.08-200-gaf2cd23
eth0: 192.168.122.89

Server listening on 5201

Accepted connection from 192.168.122.1, port 53354
[ 5] local 192.168.122.89 port 5201 connected to 192.168.122.1 port 53355
iperf3: getsockopt - Protocol not available
tcpi_snd_cwnd 0 tcpi_snd_mss 4294950912
[ ID] Interval Transfer Bandwidth
[ 5] 0.00-1.00 sec 5.93 GBytes 50.9 Gbits/sec
iperf3: getsockopt - Protocol not available
tcpi_snd_cwnd 4294950912 tcpi_snd_mss 4294950912
[ 5] 1.00-2.00 sec 6.18 GBytes 53.1 Gbits/sec
iperf3: getsockopt - Protocol not available
tcpi_snd_cwnd 4294950912 tcpi_snd_mss 4294950912
[ 5] 2.00-3.00 sec 6.46 GBytes 55.5 Gbits/sec
iperf3: getsockopt - Protocol not available
tcpi_snd_cwnd 4294950912 tcpi_snd_mss 4294950912
[ 5] 3.00-4.00 sec 6.45 GBytes 55.4 Gbits/sec
iperf3: getsockopt - Protocol not available
tcpi_snd_cwnd 4294950912 tcpi_snd_mss 4294950912
[ 5] 4.00-5.00 sec 6.42 GBytes 55.1 Gbits/sec
iperf3: getsockopt - Protocol not available
tcpi_snd_cwnd 4294950912 tcpi_snd_mss 4294950912
[ 5] 5.00-6.00 sec 6.44 GBytes 55.3 Gbits/sec
iperf3: getsockopt - Protocol not available
tcpi_snd_cwnd 4294950912 tcpi_snd_mss 4294950912
[ 5] 6.00-7.00 sec 6.47 GBytes 55.5 Gbits/sec
iperf3: getsockopt - Protocol not available
tcpi_snd_cwnd 4294950912 tcpi_snd_mss 4294950912
[ 5] 7.00-8.00 sec 6.50 GBytes 55.8 Gbits/sec
iperf3: getsockopt - Protocol not available
tcpi_snd_cwnd 4294950912 tcpi_snd_mss 4294950912
[ 5] 8.00-9.00 sec 6.52 GBytes 56.0 Gbits/sec
iperf3: getsockopt - Protocol not available
tcpi_snd_cwnd 4294950912 tcpi_snd_mss 4294950912
[ 5] 9.00-10.00 sec 6.47 GBytes 55.5 Gbits/sec
trying to execute null pointer
[backtrace]
0x0000000000372f06 <ex_pf+34>

[asias@muninn iperf-3.0.3]$ iperf3 -c 192.168.122.89
Connecting to host 192.168.122.89, port 5201
[ 4] local 192.168.122.1 port 53355 connected to 192.168.122.89 port 5201
[ ID] Interval Transfer Bandwidth Retr Cwnd
[ 4] 0.00-1.00 sec 6.14 GBytes 52.7 Gbits/sec 0 1.80 MBytes
[ 4] 1.00-2.00 sec 6.19 GBytes 53.1 Gbits/sec 0 1.80 MBytes
[ 4] 2.00-3.00 sec 6.47 GBytes 55.6 Gbits/sec 0 1.80 MBytes
[ 4] 3.00-4.00 sec 6.44 GBytes 55.3 Gbits/sec 0 1.80 MBytes
[ 4] 4.00-5.00 sec 6.42 GBytes 55.1 Gbits/sec 0 1.80 MBytes
[ 4] 5.00-6.00 sec 6.44 GBytes 55.3 Gbits/sec 0 1.80 MBytes
[ 4] 6.00-7.00 sec 6.47 GBytes 55.6 Gbits/sec 0 1.80 MBytes
[ 4] 7.00-8.00 sec 6.50 GBytes 55.8 Gbits/sec 0 1.80 MBytes
[ 4] 8.00-9.00 sec 6.52 GBytes 56.0 Gbits/sec 0 1.80 MBytes

(gdb) bt
#0 0x00000000003d1212 in cli_hlt () at /data/asias/osv/arch/x64/processor.hh:241
#1 halt_no_interrupts () at /data/asias/osv/arch/x64/arch.hh:48
#2 osv::halt () at /data/asias/osv/core/power.cc:34
#3 0x000000000021fe60 in abort (fmt=fmt@entry=0x6384c0 "trying to execute null pointer") at /data/asias/osv/runtime.cc:126
#4 0x000000000037405b in page_fault (ef=0xffffc0003ed0d038) at /data/asias/osv/arch/x64/mmu.cc:27
#5
#6 0x0000000000000000 in ?? ()
#7 0x0000000000000000 in ?? ()

penberg pushed a commit that referenced this issue May 28, 2014
This is needed to run iperf3.

#305

Signed-off-by: Asias He <[email protected]>
Signed-off-by: Pekka Enberg <[email protected]>
@wkozaczuk
Copy link
Collaborator

We can definitely run iperf3 now on OSv at least as of cloudius-systems/osv-apps@1807b4d. Closing it.

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