Re: [vpp-dev] VPP Iperf3 test

2022-03-22 Thread Florin Coras
Hi Shankar, 

What vpp version is this? For optimizations, could you take a look at a recent 
version of [1]?

Having said that, let’s try debugging this in small steps. First, I’d recommend 
not exporting LD_PRELOAD instead doing something like:

sudo sh -c “LD_PRELOAD= VCL_CONFIG= iperf3 -4 -s”
sudo sh -c “LD_PRELOAD= VCL_CONFIG= iperf3 -c 10.21.120.181”

I’m assuming here that you’re running 2 vpps on two different hosts. Also, no 
need for -b on client side, tcp tests scale up by default. 

With respect to your startup.conf, no need to configure default buffer size, 
buffers can be kept at 16384. With recent vpp versions  evt_qs_memfd_seg is no 
longer needed under session stanza. 

If results don’t change. “show session verbose 2” on both client and server 
side vpp. 

Regards,
Florin

[1] https://wiki.fd.io/view/VPP/HostStack/LDP/iperf

> On Mar 22, 2022, at 1:39 PM, Shankar Raju  wrote:
> 
> Hi Guys,
>  
> I’m trying to test VPP configuration with iperf3 and I running into the 
> following issue. 
> · Iperf3 client is able to make a connection with the server, but the 
> client receives data for the first 0-1 second and then it does not receive 
> any traffic from the server. The bitrate is zero after that.
>  
> Here’s my startup.conf and vcl.conf
>  
> STARTUP.CONF
>  
> unix {
>   nodaemon
>   log /var/log/vpp/vpp.log
>   full-coredump
>   cli-listen /run/vpp/cli.sock
>   gid vpp
>  
>   ## run vpp in the interactive mode
>   # interactive
>  
>   ## do not use colors in terminal output
>   # nocolor
>  
>   ## do not display banner
>   # nobanner
> }
>  
>  
> api-segment {
>   gid vpp
> }
>  
> socksvr {
>   default
> }
>  
> dpdk {
>   uio-driver vfio-pci
>   dev :00:06.0 {
> name eth1
>   }
> }
>  
> buffers {
>   buffers-per-numa 65536
>   default data-size 2048
> }
>  
> cpu {
>   main-core 0
>   workers 1
> }
>  
> session {
>   evt_qs_memfd_seg
> }
>  
> VCL.CONF
> vcl {
>   rx-fifo-size 80
>   tx-fifo-size 80
>   app-scope-local
>   app-scope-global
>   api-socket-name /var/run/vpp/api.sock
> }
>  
> Steps I followed:
>  
> · Set IP address through vpcctl
> Iperf3 server command:
> · export LD_PRELOAD=$LDP_PATH && export VCL_CONFIG=$VCL_CFG
> · iperf3 -4 -s -A 1 -V
>  
> iperf3 client command:
> · export LD_PRELOAD=$LDP_PATH && export VCL_CONFIG=$VCL_CFG
> · iperf3 -c 10.21.120.181 -u -A 1 -V -b 0
>  
> Client side output:
>  
> iperf3 -c 10.21.120.181 -A 1 -V
> iperf 3.7
> Linux ip-10-21-120-48 5.13.0-1019-aws #21~20.04.1-Ubuntu SMP Wed Mar 16 
> 11:54:08 UTC 2022 x86_64
> Control connection MSS 1448
> Time: Tue, 22 Mar 2022 19:38:53 GMT
> Connecting to host 10.21.120.181, port 5201
>   Cookie: 3crb2g5fkqv6atlhbe7z6kr4r5kcgjj2tfeb
>   TCP MSS: 1448 (default)
> [ 33] local 10.21.120.128 port 35336 connected to 10.21.120.181 port 5201
> Starting Test: protocol: TCP, 1 streams, 131072 byte blocks, omitting 0 
> seconds, 10 second test, tos 0
> [ ID] Interval   Transfer Bitrate Retr  Cwnd
> [ 33]   0.00-1.00   sec   256 KBytes  2.10 Mbits/sec0   0.00 Bytes
> [ 33]   1.00-2.01   sec  0.00 Bytes  0.00 bits/sec0   0.00 Bytes
> [ 33]   2.01-3.00   sec  0.00 Bytes  0.00 bits/sec0   0.00 Bytes
> [ 33]   3.00-4.01   sec  0.00 Bytes  0.00 bits/sec0   0.00 Bytes
> [ 33]   4.01-5.00   sec  0.00 Bytes  0.00 bits/sec0   0.00 Bytes
>  
> Server side output:
>  
> iperf3 -4 -s -A 1 -V
> iperf 3.7
> Linux ip-10-21-120-83 5.13.0-1019-aws #21~20.04.1-Ubuntu SMP Wed Mar 16 
> 11:54:08 UTC 2022 x86_64
> ---
> Server listening on 5201
> ---
> Time: Tue, 22 Mar 2022 19:38:53 GMT
> Accepted connection from 10.21.120.128, port 2061
>   Cookie: 3crb2g5fkqv6atlhbe7z6kr4r5kcgjj2tfeb
>   TCP MSS: 0 (default)
> [ 34] local 10.21.120.181 port 5201 connected to 10.21.120.128 port 35336
> Starting Test: protocol: TCP, 1 streams, 131072 byte blocks, omitting 0 
> seconds, 10 second test, tos 0
> [ ID] Interval   Transfer Bitrate
> [ 34]   0.00-1.00   sec  0.00 Bytes  0.00 bits/sec
> [ 34]   1.00-2.00   sec  0.00 Bytes  0.00 bits/sec
> [ 34]   2.00-3.01   sec  0.00 Bytes  0.00 bits/sec
> [ 34]   3.01-4.01   sec  0.00 Bytes  0.00 bits/sec
>  
> Please let me know if I’m configuring something wrong.
>  
> Thanks
>  
> Shankar Raju
>  
>  
> 
> 


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21098): https://lists.fd.io/g/vpp-dev/message/21098
Mute This Topic: https://lists.fd.io/mt/89961794/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] VPP Iperf3 Test #vpp-dev

2022-03-22 Thread Shankar Raju
Hi Guys,

I’m trying to test VPP configuration with iperf3 and I running into the 
following issue.

· Iperf3 client is able to make a connection with the server, but the client 
receives data for the first 0-1 second and then it does not receive any traffic 
from the server. The bitrate is zero after that.

Here’s my startup.conf and vcl.conf

STARTUP.CONF

unix {

nodaemon

log /var/log/vpp/vpp.log

full-coredump

cli-listen /run/vpp/cli.sock

gid vpp

## run vpp in the interactive mode

# interactive

## do not use colors in terminal output

# nocolor

## do not display banner

# nobanner

}

api-segment {

gid vpp

}

socksvr {

default

}

dpdk {

uio-driver vfio-pci

dev :00:06.0 {

name eth1

}

}

buffers {

buffers-per-numa 65536

default data-size 2048

}

cpu {

main-core 0

workers 1

}

session {

evt_qs_memfd_seg

}

VCL.CONF

vcl {

rx-fifo-size 80

tx-fifo-size 80

app-scope-local

app-scope-global

api-socket-name /var/run/vpp/api.sock

}

Steps I followed:

· Set IP address through vpcctl

Iperf3 server command:

· export LD_PRELOAD=$LDP_PATH && export VCL_CONFIG=$VCL_CFG

· iperf3 -4 -s -A 1 -V

iperf3 client command:

· export LD_PRELOAD=$LDP_PATH && export VCL_CONFIG=$VCL_CFG

· iperf3 -c 10.21.120.181 -u -A 1 -V -b 0

Client side output:

iperf3 -c 10.21.120.181 -A 1 -V

iperf 3.7

Linux ip-10-21-120-48 5.13.0-1019-aws #21~20.04.1-Ubuntu SMP Wed Mar 16 
11:54:08 UTC 2022 x86_64

Control connection MSS 1448

Time: Tue, 22 Mar 2022 19:38:53 GMT

Connecting to host 10.21.120.181, port 5201

Cookie: 3crb2g5fkqv6atlhbe7z6kr4r5kcgjj2tfeb

TCP MSS: 1448 (default)

[ 33] local 10.21.120.128 port 35336 connected to 10.21.120.181 port 5201

Starting Test: protocol: TCP, 1 streams, 131072 byte blocks, omitting 0 
seconds, 10 second test, tos 0

[ ID] Interval   Transfer Bitrate Retr  Cwnd

[ 33]   0.00-1.00   sec   256 KBytes  2.10 Mbits/sec    0   0.00 Bytes

[ 33]   1.00-2.01   sec  0.00 Bytes  0.00 bits/sec    0   0.00 Bytes

[ 33]   2.01-3.00   sec  0.00 Bytes  0.00 bits/sec    0   0.00 Bytes

[ 33]   3.00-4.01   sec  0.00 Bytes  0.00 bits/sec    0   0.00 Bytes

[ 33]   4.01-5.00   sec  0.00 Bytes  0.00 bits/sec    0   0.00 Bytes

Server side output:

iperf3 -4 -s -A 1 -V

iperf 3.7

Linux ip-10-21-120-83 5.13.0-1019-aws #21~20.04.1-Ubuntu SMP Wed Mar 16 
11:54:08 UTC 2022 x86_64

---

Server listening on 5201

---

Time: Tue, 22 Mar 2022 19:38:53 GMT

Accepted connection from 10.21.120.128, port 2061

Cookie: 3crb2g5fkqv6atlhbe7z6kr4r5kcgjj2tfeb

TCP MSS: 0 (default)

[ 34] local 10.21.120.181 port 5201 connected to 10.21.120.128 port 35336

Starting Test: protocol: TCP, 1 streams, 131072 byte blocks, omitting 0 
seconds, 10 second test, tos 0

[ ID] Interval   Transfer Bitrate

[ 34]   0.00-1.00   sec  0.00 Bytes  0.00 bits/sec

[ 34]   1.00-2.00   sec  0.00 Bytes  0.00 bits/sec

[ 34]   2.00-3.01   sec  0.00 Bytes  0.00 bits/sec

[ 34]   3.01-4.01   sec  0.00 Bytes  0.00 bits/sec

Please let me know if I’m configuring something wrong.

Thanks

Shankar Raju

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21097): https://lists.fd.io/g/vpp-dev/message/21097
Mute This Topic: https://lists.fd.io/mt/89961818/21656
Mute #vpp-dev:https://lists.fd.io/g/vpp-dev/mutehashtag/vpp-dev
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] VPP Iperf3 test

2022-03-22 Thread Shankar Raju
Hi Guys,

I’m trying to test VPP configuration with iperf3 and I running into the 
following issue.
• Iperf3 client is able to make a connection with the server, but the 
client receives data for the first 0-1 second and then it does not receive any 
traffic from the server. The bitrate is zero after that.

Here’s my startup.conf and vcl.conf

STARTUP.CONF

unix {
  nodaemon
  log /var/log/vpp/vpp.log
  full-coredump
  cli-listen /run/vpp/cli.sock
  gid vpp

  ## run vpp in the interactive mode
  # interactive

  ## do not use colors in terminal output
  # nocolor

  ## do not display banner
  # nobanner
}


api-segment {
  gid vpp
}

socksvr {
  default
}

dpdk {
  uio-driver vfio-pci
  dev :00:06.0 {
name eth1
  }
}

buffers {
  buffers-per-numa 65536
  default data-size 2048
}

cpu {
  main-core 0
  workers 1
}

session {
  evt_qs_memfd_seg
}

VCL.CONF
vcl {
  rx-fifo-size 80
  tx-fifo-size 80
  app-scope-local
  app-scope-global
  api-socket-name /var/run/vpp/api.sock
}

Steps I followed:

• Set IP address through vpcctl
Iperf3 server command:
• export LD_PRELOAD=$LDP_PATH && export VCL_CONFIG=$VCL_CFG
• iperf3 -4 -s -A 1 -V

iperf3 client command:
• export LD_PRELOAD=$LDP_PATH && export VCL_CONFIG=$VCL_CFG
• iperf3 -c 10.21.120.181 -u -A 1 -V -b 0

Client side output:

iperf3 -c 10.21.120.181 -A 1 -V
iperf 3.7
Linux ip-10-21-120-48 5.13.0-1019-aws #21~20.04.1-Ubuntu SMP Wed Mar 16 
11:54:08 UTC 2022 x86_64
Control connection MSS 1448
Time: Tue, 22 Mar 2022 19:38:53 GMT
Connecting to host 10.21.120.181, port 5201
  Cookie: 3crb2g5fkqv6atlhbe7z6kr4r5kcgjj2tfeb
  TCP MSS: 1448 (default)
[ 33] local 10.21.120.128 port 35336 connected to 10.21.120.181 port 5201
Starting Test: protocol: TCP, 1 streams, 131072 byte blocks, omitting 0 
seconds, 10 second test, tos 0
[ ID] Interval   Transfer Bitrate Retr  Cwnd
[ 33]   0.00-1.00   sec   256 KBytes  2.10 Mbits/sec0   0.00 Bytes
[ 33]   1.00-2.01   sec  0.00 Bytes  0.00 bits/sec0   0.00 Bytes
[ 33]   2.01-3.00   sec  0.00 Bytes  0.00 bits/sec0   0.00 Bytes
[ 33]   3.00-4.01   sec  0.00 Bytes  0.00 bits/sec0   0.00 Bytes
[ 33]   4.01-5.00   sec  0.00 Bytes  0.00 bits/sec0   0.00 Bytes

Server side output:

iperf3 -4 -s -A 1 -V
iperf 3.7
Linux ip-10-21-120-83 5.13.0-1019-aws #21~20.04.1-Ubuntu SMP Wed Mar 16 
11:54:08 UTC 2022 x86_64
---
Server listening on 5201
---
Time: Tue, 22 Mar 2022 19:38:53 GMT
Accepted connection from 10.21.120.128, port 2061
  Cookie: 3crb2g5fkqv6atlhbe7z6kr4r5kcgjj2tfeb
  TCP MSS: 0 (default)
[ 34] local 10.21.120.181 port 5201 connected to 10.21.120.128 port 35336
Starting Test: protocol: TCP, 1 streams, 131072 byte blocks, omitting 0 
seconds, 10 second test, tos 0
[ ID] Interval   Transfer Bitrate
[ 34]   0.00-1.00   sec  0.00 Bytes  0.00 bits/sec
[ 34]   1.00-2.00   sec  0.00 Bytes  0.00 bits/sec
[ 34]   2.00-3.01   sec  0.00 Bytes  0.00 bits/sec
[ 34]   3.01-4.01   sec  0.00 Bytes  0.00 bits/sec

Please let me know if I’m configuring something wrong.

Thanks

Shankar Raju



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21096): https://lists.fd.io/g/vpp-dev/message/21096
Mute This Topic: https://lists.fd.io/mt/89961794/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] In regards of the memif library from the vpp Git repository

2022-03-22 Thread Benoit Ganne (bganne) via lists.fd.io
That's great news, thanks Dave!

Best
ben

> -Original Message-
> From: Dave Wallace 
> Sent: Tuesday, March 22, 2022 19:17
> To: Benoit Ganne (bganne) ; Catalin Iordache
> 
> Cc: vpp-dev@lists.fd.io
> Subject: Re: [vpp-dev] In regards of the memif library from the vpp Git
> repository
> 
> Funny you should mention 30573 --  yesterday I noticed this was in limbo &
> broken.  I am in the process of fixing the bugs in this documentation so
> that it can be merged.
> 
> While I'm at it, I will be be updating the CI verify job to upload the doc
> verify results to an AWS S3 bucket with a 7 day retention policy to
> enhance the documentation review process.
> 
> Thanks,
> -daw-
> 
> 
> On 3/22/22 5:21 AM, Benoit Ganne (bganne) via lists.fd.io wrote:
> 
> 
>   Hi Catalin,
> 
>   CC'ed vpp-dev, but examples and doc can be found here
> https://gerrit.fd.io/r/c/vpp/+/30573
>   It would be good to have this patch merged I guess but it looks
> like there are some issues to fix in the doc.
> 
>   Best
>   Ben
> 
> 
>   From: Catalin Iordache 
> 
>   Date: Mar 20, 2022 15:36
>   Subject: In regards of the memif library from the vpp Git
> repository
>   To: benoit.ga...@gmail.com 
>   Cc:
> 
> 
> 
>   Hello,
> 
>   I noticed that the latest version of the memif library
> is lacking
>   documentation and the things that are in there seem a bit
> outdated.
> 
>   I am mostly interested in the multi threaded support
> in memif,
>   which in older versions seemed to be offered by the library
> but now
>   they’ve been removed.
> 
>   Do you have some documentation and code examples on
> how memif
>   should be handled by multiple threads concurrently?
> 
>   Best regards,
>   Catalin
> 
> 
> 
> 
> 
> 
>   
> 
> 


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21095): https://lists.fd.io/g/vpp-dev/message/21095
Mute This Topic: https://lists.fd.io/mt/89948379/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] In regards of the memif library from the vpp Git repository

2022-03-22 Thread Dave Wallace
Funny you should mention 30573 -- yesterday I noticed this was in limbo 
& broken.  I am in the process of fixing the bugs in this documentation 
so that it can be merged.


While I'm at it, I will be be updating the CI verify job to upload the 
doc verify results to an AWS S3 bucket with a 7 day retention policy to 
enhance the documentation review process.


Thanks,
-daw-

On 3/22/22 5:21 AM, Benoit Ganne (bganne) via lists.fd.io wrote:

Hi Catalin,

CC'ed vpp-dev, but examples and doc can be found 
herehttps://gerrit.fd.io/r/c/vpp/+/30573
It would be good to have this patch merged I guess but it looks like there are 
some issues to fix in the doc.

Best
Ben


From: Catalin Iordache
Date: Mar 20, 2022 15:36
Subject: In regards of the memif library from the vpp Git repository
To:benoit.ga...@gmail.com
Cc:



Hello,

I noticed that the latest version of the memif library is lacking
documentation and the things that are in there seem a bit outdated.

I am mostly interested in the multi threaded support in memif,
which in older versions seemed to be offered by the library but now
they’ve been removed.

Do you have some documentation and code examples on how memif
should be handled by multiple threads concurrently?

Best regards,
Catalin






-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21094): https://lists.fd.io/g/vpp-dev/message/21094
Mute This Topic: https://lists.fd.io/mt/89948379/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] In regards of the memif library from the vpp Git repository

2022-03-22 Thread Benoit Ganne (bganne) via lists.fd.io
Hi Catalin,

CC'ed vpp-dev, but examples and doc can be found here 
https://gerrit.fd.io/r/c/vpp/+/30573
It would be good to have this patch merged I guess but it looks like there are 
some issues to fix in the doc.

Best
Ben

> From: Catalin Iordache 
> Date: Mar 20, 2022 15:36
> Subject: In regards of the memif library from the vpp Git repository
> To: benoit.ga...@gmail.com
> Cc:
> 
> 
> 
>   Hello,
> 
>   I noticed that the latest version of the memif library is lacking
> documentation and the things that are in there seem a bit outdated.
> 
>   I am mostly interested in the multi threaded support in memif,
> which in older versions seemed to be offered by the library but now
> they’ve been removed.
> 
>   Do you have some documentation and code examples on how memif
> should be handled by multiple threads concurrently?
> 
>   Best regards,
>   Catalin
> 


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21093): https://lists.fd.io/g/vpp-dev/message/21093
Mute This Topic: https://lists.fd.io/mt/89948379/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] Cross Compile VPP from x86 ubuntu to aarch64 ubuntu , but failed #dpdk

2022-03-22 Thread 1800012701
hello everyone,
I am trying to running VPP+DPDK on my embedded development board whose 
architecture is aarch64 with system ubuntu16.4.
Finally the vpp runs, but it turns out that it doesn't include DPDK plugin so I 
can't continue my development.

My first question is, IS THERE ANY DOCUMENT FOR CROSS-COMPILATION?

and here are my steps of cross compiling:
according to https://blog.csdn.net/guoqixin2008/article/details/122415704

1. git clone vpp codes and checkout stable/2101 branch
2. make install-dep ; make install-ext-dep
(in step 2, log showed that missing Libbpf dependency)

3.download aarch64-linux-gnu-gcc ,download openssl and libuuid , config them 
with aarch64-linux-gnu-gcc (compiler and lib prefix, therefore the .so and .a 
will  be located at lib of aarch64-linux-gnu-gcc) and then make openssl and 
libuuid.
4.set vpp/src/Cmakelists.txt by adding my config of cross compilation.

5. make build
(in step 5, only openssl and libuuid is loaded, other libs like RDMA ipsec 
which were installed at step2 not. *so I wonder that whether step 2 actually 
doesn't work for cross compilation since the runtime lib should be compiled for 
aarch* *64, that's my second question* )

6. scp build-root/install-vpp_debug-native/vpp to embedded development board, 
export LD_LIBRARY_PATH and run ./vpp ./vppctl ……

Finally, though the fido vpp logo shows in the shell when running vppctl , it 
doesn't have DPDK plugin.

*what can I do?*

Sincerely Regards.
A student relying on VPP to graduate

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21092): https://lists.fd.io/g/vpp-dev/message/21092
Mute This Topic: https://lists.fd.io/mt/89948293/21656
Mute #dpdk:https://lists.fd.io/g/vpp-dev/mutehashtag/dpdk
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-