[vpp-dev] Issue in building vpp

2022-05-04 Thread Sindhu Pitta
Hi Team,



We are trying to build VPP on ubuntu 20.04 with kernel version:5.4.x.

We cloned the gerrit code: https://gerrit.fd.io/r/vpp

When we try to build with : /build-root/vagrant/build.sh, we see below issues:





ubuntu@vpp:~/vpp/build-root$ cat 
/home/ubuntu/vpp/build-root/build-vpp-native/vpp/CMakeFiles/CMakeError.log

Performing C SOURCE FILE Test compiler_flag_no_stringop_overflow failed with 
the following output:

Change Dir: /home/ubuntu/vpp/build-root/build-vpp-native/vpp/CMakeFiles/CMakeTmp



Run Build Command(s):/usr/bin/ninja cmTC_155e3 && [1/2] Building C object 
CMakeFiles/cmTC_155e3.dir/src.c.o

warning: unknown warning option '-Wno-stringop-overflow'; did you mean 
'-Wno-shift-overflow'? [-Wunknown-warning-option]

1 warning generated.

[2/2] Linking C executable cmTC_155e3





Source file was:

int main(void) { return 0; }

Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following 
output:

Change Dir: /home/ubuntu/vpp/build-root/build-vpp-native/vpp/CMakeFiles/CMakeTmp



Run Build Command(s):/usr/bin/ninja cmTC_ff9c6 && [1/2] Building C object 
CMakeFiles/cmTC_ff9c6.dir/src.c.o

[2/2] Linking C executable cmTC_ff9c6

FAILED: cmTC_ff9c6

: && /usr/lib/ccache/clang --target=x86_64-linux-gnu   
CMakeFiles/cmTC_ff9c6.dir/src.c.o -o cmTC_ff9c6   && :

/usr/bin/x86_64-linux-gnu-ld: CMakeFiles/cmTC_ff9c6.dir/src.c.o: in function 
`main':

src.c:(.text+0x25): undefined reference to `pthread_create'

/usr/bin/x86_64-linux-gnu-ld: src.c:(.text+0x31): undefined reference to 
`pthread_detach'

/usr/bin/x86_64-linux-gnu-ld: src.c:(.text+0x3d): undefined reference to 
`pthread_cancel'

/usr/bin/x86_64-linux-gnu-ld: src.c:(.text+0x4f): undefined reference to 
`pthread_join'

clang: error: linker command failed with exit code 1 (use -v to see invocation)

ninja: build stopped: subcommand failed.





Source file was:

#include 



static void* test_func(void* data)

{

  return data;

}



int main(void)

{

  pthread_t thread;

  pthread_create(&thread, NULL, test_func, NULL);

  pthread_detach(thread);

  pthread_cancel(thread);

  pthread_join(thread, NULL);

  pthread_atfork(NULL, NULL, NULL);

  pthread_exit(NULL);



  return 0;

}



Checking whether the ASM compiler is GNU using "--version" did not match "(GNU 
assembler)|(GCC)|(Free Software Foundation)":

clang version 10.0.0-4ubuntu1

Target: x86_64-pc-linux-gnu

Thread model: posix

InstalledDir: /usr/bin

Determining if the function SSL_set_async_callback exists failed with the 
following output:

Change Dir: /home/ubuntu/vpp/build-root/build-vpp-native/vpp/CMakeFiles/CMakeTmp



Run Build Command(s):/usr/bin/ninja cmTC_ed864 && [1/2] Building C object 
CMakeFiles/cmTC_ed864.dir/CheckFunctionExists.c.o

[2/2] Linking C executable cmTC_ed864

FAILED: cmTC_ed864

: && /usr/lib/ccache/clang --target=x86_64-linux-gnu 
-DCHECK_FUNCTION_EXISTS=SSL_set_async_callback  
CMakeFiles/cmTC_ed864.dir/CheckFunctionExists.c.o -o cmTC_ed864  
/usr/lib/x86_64-linux-gnu/libssl.so  /usr/lib/x86_64-linux-gnu/libcrypto.so && :

/usr/bin/x86_64-linux-gnu-ld: 
CMakeFiles/cmTC_ed864.dir/CheckFunctionExists.c.o: in function `main':

CheckFunctionExists.c:(.text+0x17): undefined reference to 
`SSL_set_async_callback'

clang: error: linker command failed with exit code 1 (use -v to see invocation)

ninja: build stopped: subcommand failed.





We have seen posts on similar issue (vpp-dev@lists.fd.io | Arm build failures 
on Qualcomm, ThunderX2, Mellanox 
Bluefield),but
 couldn’t find a proper answer.



We tried with a stable version also, but seeing same issue.



Can anyone please share your points on this.



Regards,

Sindhu

Get Outlook for iOS

L&T Technology Services Ltd

www.LTTS.com

L&T Technology Services Limited (LTTS) is committed to safeguard your data 
privacy. For more information to view our commitment towards data privacy under 
GDPR, please visit the privacy policy on our website www.Ltts.com. This Email 
may contain confidential or privileged information for the intended recipient 
(s). If you are not the intended recipient, please do not use or disseminate 
the information, notify the sender and delete it from your system.

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

[vpp-dev] [fdio2106]drops at memif

2022-05-04 Thread vipin allawadhi
Hello Expert,

our user application (User_App) communicates to VPP via memif. user
application is configured in Slave mode.

User_App sends 100msg/sec to VPP and VPP is coded to respond back to each
packet. we see some weird drops at memif at ring boundary. when rx packet
count on memif interface reaches around 2048, VPP drops one packet at
ip-plugin.

*fdio version:2106*

*memif configuration in VPP:*
vpp# show memif memif0/2
sockets
  id  listenerfilename
  0   yes (4) /run/vpp/memif.sock

interface memif0/2
  remote-name "User_App"
  remote-interface "memif_conn"
  socket-id 0 id 2 mode ip
  flags admin-up connected
  listener-fd 54 conn-fd 53
  num-s2m-rings 1 num-m2s-rings 1 buffer-size 0 num-regions 2
  region 0 size 65792 fd 60
  region 1 size 268431360 fd 65
master-to-slave ring 0:
  region 0 offset 32896 ring-size 2048 int-fd 73
  head 5152 tail 3104 flags 0x interrupts 146
slave-to-master ring 0:
  region 0 offset 0 ring-size 2048 int-fd 69
  head 3105 tail 3105 flags 0x0001 interrupts 0
vpp#

*Memif stats:*

vpp# show int memif0/2
   Name   IdxState  MTU (L3/IP4/IP6/MPLS)
 Counter  Count
memif0/2  5  up 0/65535/0/0 rx
packets  3100
rx
bytes   202802000
tx
packets  3099
tx
bytes   202736580
*drops
2*
ip4
 3100

*VPP Node Counters:*

vpp# show node counters
Count Node   Reason
1 ip4-input  ip4 ttl <= 1
1 ip4-icmp-error hop limit exceeded response
sent
1 null-node  blackholed packets

dropped packet content in gdb indicates that packets content is overwritten
partially with the content of next packet.
for example, IP header for below packet is at 0x101182c98*e* which is not
correct. had this been 0x101182c98*f* then this packet would have
considered fine and not dropped.

(gdb) p ip0
$1 = (ip4_header_t *) 0x101182c98e
(gdb)
(gdb) x/100xb 0x101182c98e
0x101182c98e:   0x450x450x000xff0x8c0x000x000x00
0x101182c996:   0x000x400xc80xf50x550xc00xa80x02
0x101182c99e:   0x020xc00xa80x020x010x070x000x00
0x101182c9a6:   0x000x000x000x000x000x000x000x00
0x101182c9ae:   0x000x000x000x000x000x000x000x00
0x101182c9b6:   0x000x000x000x000x000x000x000x00
0x101182c9be:   0x000x000x000x000x000x1a0x000x00
0x101182c9c6:   0x000x000x000x000x000x000x000x00
0x101182c9ce:   0x000x000x000x000x000x000x000x00
0x101182c9d6:   0x000x000x000x000x000x000x000x00
0x101182c9de:   0x000x000x000x000x000x000x000x00
0x101182c9e6:   0x000x000x000x000x000x000x000x00
0x101182c9ee:   0x000x000x000x00
(gdb)

please share your opinion on this.

Thanks
Vipin Kumar

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21364): https://lists.fd.io/g/vpp-dev/message/21364
Mute This Topic: https://lists.fd.io/mt/90906043/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] test performance of nginx using vpp host stack#vpp-hoststack

2022-05-04 Thread 汪翰林
Can you check if [1] patch merged?


[1] https://gerrit.fd.io/r/c/vpp/+/33496 


Regards,
Hanlin


| |
汪翰林
|
|
hanlin_w...@163.com
|
On 5/5/2022 10:51, wrote:
Hi,
   When I set a long connection, the performance of vpp proxy is higher than 
before. But we need to set a short connection between vpp and upstream server.
Thanks.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21363): https://lists.fd.io/g/vpp-dev/message/21363
Mute This Topic: https://lists.fd.io/mt/90793836/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] test performance of nginx using vpp host stack#vpp-hoststack

2022-05-04 Thread weizhen9612
Hi,
When I set a long connection, the performance of vpp proxy is higher than 
before. But we need to set a short connection between vpp and upstream server.
Thanks.

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21362): https://lists.fd.io/g/vpp-dev/message/21362
Mute This Topic: https://lists.fd.io/mt/90793836/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] test performance of nginx using vpp host stack#vpp-hoststack

2022-05-04 Thread 汪翰林
You can try to set the long downstream and upstream connections in nginx 
configruation like this:
 http {

...

keepalive_timeout 65;
keepalive_requests 100;

upstream backend{
 ...
 keepalive 3;
 }

 }


Regards,
Hanlin
| |
汪翰林
|
|
hanlin_w...@163.com
|
On 5/5/2022 09:29, wrote:
Hi,
I test the performance of upstream server.

Just as you see, the performance of upstream is more higher than vpp proxy. In 
addition, I don't find any drops.
Thanks.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21361): https://lists.fd.io/g/vpp-dev/message/21361
Mute This Topic: https://lists.fd.io/mt/90793836/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] test performance of nginx using vpp host stack#vpp-hoststack

2022-05-04 Thread Florin Coras
Next step then. What’s segment-size and add-segment-size in vcl.conf? Could you 
set them to something large like 40? Also event-queue-size 100, 
just to make sure mq and fifo segments are not a limiting factor. In vpp under 
session stanza, set event-queue-length 20. 

Try also to run the test twice to make sure the issue is not pool warmup. 
Finally, if perf doesn’t improve, before test do "clear error" and after test 
"show error” and let’s see if there’s something there. 

Regards,
Florin 

> On May 4, 2022, at 6:25 PM, weizhen9...@163.com wrote:
> 
> Hi,
> I test the performance of upstream server.
> 
> Just as you see, the performance of upstream is more higher than vpp proxy. 
> In addition, I don't find any drops.
> Thanks.
> 
> 
> 


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21360): https://lists.fd.io/g/vpp-dev/message/21360
Mute This Topic: https://lists.fd.io/mt/90793836/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] test performance of nginx using vpp host stack#vpp-hoststack

2022-05-04 Thread weizhen9612
Hi,
I test the performance of upstream server.

Just as you see, the performance of upstream is more higher than vpp proxy. In 
addition, I don't find any drops.
Thanks.

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21359): https://lists.fd.io/g/vpp-dev/message/21359
Mute This Topic: https://lists.fd.io/mt/90793836/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 22.06. - 3 weeks until RC1 milestone !

2022-05-04 Thread Andrew Yourtchenko
Hi all,

Just a small reminder we are 3 weeks away from RC1 milestone for VPP 22.06

--a // your friendly 22.06 release manager

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21358): https://lists.fd.io/g/vpp-dev/message/21358
Mute This Topic: https://lists.fd.io/mt/90896738/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] test performance of nginx using vpp host stack#vpp-hoststack

2022-05-04 Thread Florin Coras
As mentioned previously, is the upstream server handling the load? Do you see 
drops between vpp and the upstream server? 

Regards,
Florin

> On May 4, 2022, at 9:10 AM, weizhen9...@163.com wrote:
> 
> Hi,
>According to your suggestion, I config the src-address.
> 
> 
> But the performance is lower than that before.
> 
> 
> 
> Thanks.
> 
> 
> 


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21357): https://lists.fd.io/g/vpp-dev/message/21357
Mute This Topic: https://lists.fd.io/mt/90793836/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] test performance of nginx using vpp host stack#vpp-hoststack

2022-05-04 Thread Florin Coras
What’s the result prior to multiple addresses? Also, can you give it the whole 
/24? No need to configure the ips, just tcp src-address 
192.168.6.6-192.168.6.250

Forgot to ask before but is the server that’s being proxied for handling the 
load? It will also need to accept a lot of connections. 

Regards,
Florin

> On May 4, 2022, at 8:35 AM, weizhen9...@163.com wrote:
> 
> According to your suggestion, I test with multiple source ips. But the 
> performance is still low.
> 
> The ip is as follows.
> 
> vpp#tcp src-address 192.168.6.6-192.168.6.9
> Thanks.
> 
> 
> 


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21355): https://lists.fd.io/g/vpp-dev/message/21355
Mute This Topic: https://lists.fd.io/mt/90793836/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] test performance of nginx using vpp host stack#vpp-hoststack

2022-05-04 Thread weizhen9612
According to your suggestion, I test with multiple source ips. But the 
performance is still low.

The ip is as follows.

vpp#tcp src-address 192.168.6.6-192.168.6.9
Thanks.

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21354): https://lists.fd.io/g/vpp-dev/message/21354
Mute This Topic: https://lists.fd.io/mt/90793836/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] test performance of nginx using vpp host stack#vpp-hoststack

2022-05-04 Thread Florin Coras
Hi, 

That shouldn’t be the issue. Half-opens are on main because connection 
establishment needs locks before it sends out a syn packet. Handshakes are not 
completed on main but on workers. VPP with one worker + main should be able to 
handle 100k+ CPS with warmed up pools. 

Long term we’ll switch from main to first worker for syns but again, that’s not 
the thing that limits performance in your case. Instead, it’s probably the 
number of ports. You should be able to confirm that by testing with multiple 
source ips. 

Regards,
Florin

> On May 4, 2022, at 8:00 AM, weizhen9...@163.com wrote:
> 
> Hi,
>Is this the reason for the low performance? In general, the main threads 
> handles management functions(debug CLI, API, stats collection) and one or 
> more worker threads handle packet processing from input to output of the 
> packet. Why does the main core handle the session? Does the condition 
> influence the performance? If yes, what should I do?
> Thanks. 
> 
> 


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21353): https://lists.fd.io/g/vpp-dev/message/21353
Mute This Topic: https://lists.fd.io/mt/90793836/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] test performance of nginx using vpp host stack#vpp-hoststack

2022-05-04 Thread weizhen9612
Hi,
Is this the reason for the low performance? In general, the main threads 
handles management functions(debug CLI, API, stats collection) and one or more 
worker threads handle packet processing from input to output of the packet. Why 
does the main core handle the session? Does the condition influence the 
performance? If yes, what should I do?
Thanks.

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21352): https://lists.fd.io/g/vpp-dev/message/21352
Mute This Topic: https://lists.fd.io/mt/90793836/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] test performance of nginx using vpp host stack#vpp-hoststack

2022-05-04 Thread Florin Coras
Hi, 

Those are half-open connects. So yes, they’re expected if nginx opens a new 
connection for each request.

Regards,
Florin

> On May 4, 2022, at 6:48 AM, weizhen9...@163.com wrote:
> 
> Hi,
> When I use wrk to test the performance of  nginx proxy using vpp host 
> stack, I execute the command "show session" by vppctl. The result is 
> following.
> 
> The main core has most of sessions. Is this normal? If not, what should I DO?
> Thanks.
> 
> 
> 


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21351): https://lists.fd.io/g/vpp-dev/message/21351
Mute This Topic: https://lists.fd.io/mt/90793836/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] test performance of nginx using vpp host stack#vpp-hoststack

2022-05-04 Thread weizhen9612
Hi,
When I use wrk to test the performance of  nginx proxy using vpp host stack, I 
execute the command "show session" by vppctl. The result is following.

The main core has most of sessions. Is this normal? If not, what should I DO?
Thanks.

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