Re: [vpp-dev] VPP 2005 is crashing on stopping the VCL applications #vpp-hoststack

2020-08-18 Thread Raj Kumar
t... > > > > *From:* vpp-dev@lists.fd.io *On > Behalf Of *Raj Kumar > *Sent:* Monday, August 17, 2020 5:09 PM > *To:* Ayush Gautam > *Cc:* Florin Coras ; > vpp-dev > *Subject:* Re: [vpp-dev] VPP 2005 is crashing on stopping the VCL > applications #vpp-hoststac

Re: [vpp-dev] VPP 2005 is crashing on stopping the VCL applications #vpp-hoststack

2020-08-18 Thread Dave Wallace
:* Ayush Gautam *Cc:* Florin Coras ; vpp-dev *Subject:* Re: [vpp-dev] VPP 2005 is crashing on stopping the VCL applications #vpp-hoststack Hi Florin, Can we please have the fix[1] on "stable/2005" branch. [1] https://gerrit.fd.io/r/c/vpp/+/28173  Thanks, -Raj On Wed, Aug 5, 2020

Re: [vpp-dev] VPP 2005 is crashing on stopping the VCL applications #vpp-hoststack

2020-08-17 Thread Dave Barach via lists.fd.io
You can press the “cherrypick” button as easily as Florin... Hint... From: vpp-dev@lists.fd.io On Behalf Of Raj Kumar Sent: Monday, August 17, 2020 5:09 PM To: Ayush Gautam Cc: Florin Coras ; vpp-dev Subject: Re: [vpp-dev] VPP 2005 is crashing on stopping the VCL applications #vpp-hoststack

Re: [vpp-dev] VPP 2005 is crashing on stopping the VCL applications #vpp-hoststack

2020-08-17 Thread Raj Kumar
Hi Florin, Can we please have the fix[1] on "stable/2005" branch. [1] https://gerrit.fd.io/r/c/vpp/+/28173 Thanks, -Raj On Wed, Aug 5, 2020 at 7:30 PM Raj Kumar via lists.fd.io wrote: > Hi Florin, > Yes , this[1] fixed the issue. > > thanks, > -Raj > > On Wed, Aug 5, 2020 at 1:57 AM Florin Co

Re: [vpp-dev] VPP 2005 is crashing on stopping the VCL applications #vpp-hoststack

2020-08-05 Thread Raj Kumar
Hi Florin, Yes , this[1] fixed the issue. thanks, -Raj On Wed, Aug 5, 2020 at 1:57 AM Florin Coras wrote: > Hi Raj, > > Does this [1] fix the issue? > > Regards, > Florin > > [1] https://gerrit.fd.io/r/c/vpp/+/28173 > > On Aug 4, 2020, at 8:24 AM, Raj Kumar wrote: > > Hi Florin, > I tried vppc

Re: [vpp-dev] VPP 2005 is crashing on stopping the VCL applications #vpp-hoststack

2020-08-04 Thread Florin Coras
Hi Raj, Does this [1] fix the issue? Regards, Florin [1] https://gerrit.fd.io/r/c/vpp/+/28173 > On Aug 4, 2020, at 8:24 AM, Raj Kumar wrote: > > Hi Florin, > I tried vppcom_epoll_wait() on 2 different servers by using a simple > application ( with onl

Re: [vpp-dev] VPP 2005 is crashing on stopping the VCL applications #vpp-hoststack

2020-08-04 Thread Raj Kumar
Hi Florin, I tried vppcom_epoll_wait() on 2 different servers by using a simple application ( with only 1 worker thread) . But, still vppcom_epoll_wait() is not being timed out if I do not use use-mq-eventfd . Here are the server details - server 1 - Red hat 7.5 , vpp release - 20.01 server 2 -

Re: [vpp-dev] VPP 2005 is crashing on stopping the VCL applications #vpp-hoststack

2020-08-04 Thread Florin Coras
Hi Raj, Interesting. For some reason, the message queue’s underlying pthread_cond_timedwait does not work in your setup. Not sure what to make of that, unless maybe you’re trying to epoll wait from multiple threads that share the same message queue. That is not supported since each thread must

Re: [vpp-dev] VPP 2005 is crashing on stopping the VCL applications #vpp-hoststack

2020-08-04 Thread Raj Kumar
Hi Florin, After adding use-mq-eventfd in VCL configuration, it is working as expected. Thanks! for your help. vcl { rx-fifo-size 400 tx-fifo-size 400 app-scope-local app-scope-global use-mq-eventfd api-socket-name /tmp/vpp-api.sock } thanks, -Raj On Tue, Aug 4, 2020 at 12:08

Re: [vpp-dev] VPP 2005 is crashing on stopping the VCL applications #vpp-hoststack

2020-08-03 Thread Florin Coras
Hi Raj, Glad to hear that issue is solved. What vcl config are you running? Did you configure use-mq-eventd? Regards, Florin > On Aug 3, 2020, at 8:33 PM, Raj Kumar wrote: > > Hi Florin, > This issue is resolved now. In my application, on receiving the kill signal > main thread was sendin

Re: [vpp-dev] VPP 2005 is crashing on stopping the VCL applications #vpp-hoststack

2020-08-03 Thread Raj Kumar
Hi Florin, This issue is resolved now. In my application, on receiving the kill signal main thread was sending phread_cancel() to the child thread because of that child thread was not exiting gracefully. I have one question; it seems that vppcom_epoll_wait(epfd, rcvEvents, MAX_RETURN_EVENTS, 6

Re: [vpp-dev] VPP 2005 is crashing on stopping the VCL applications #vpp-hoststack

2020-07-29 Thread Florin Coras
Hi Raj, In that case it should work. Just from the trace lower it’s hard to figure out what exactly happened. Also, keep in mind that vcl is not thread safe, so make sure you’re not trying to share sessions or allow two workers to interact with the message queue(s) at the same time. Regards

Re: [vpp-dev] VPP 2005 is crashing on stopping the VCL applications #vpp-hoststack

2020-07-29 Thread Raj Kumar
Hi Florin, I am using kill to stop the application. But , the application has a kill signal handler and after receiving the signal it is exiting gracefully. About vppcom_app_exit, I think this function is registered with atexit() inside vppcom_app_create() so it should call when the application ex

Re: [vpp-dev] VPP 2005 is crashing on stopping the VCL applications #vpp-hoststack

2020-07-29 Thread Florin Coras
Hi Raj, Does stopping include a call to vppcom_app_exit or killing the applications? If the latter, the apps might be killed with some mutexes/spinlocks held. For now, we only support the former. Regards, Florin > On Jul 29, 2020, at 1:49 PM, Raj Kumar wrote: > > Hi, > In my UDP applicatio

[vpp-dev] VPP 2005 is crashing on stopping the VCL applications #vpp-hoststack

2020-07-29 Thread Raj Kumar
Hi, In my UDP application , I am using VPP host stack to receive packets and memIf to transmit packets. There are a total 6 application connected to VPP. if I stop the application(s) then VPP is crashing.  In vpp configuration , 4 worker threads are configured.  If there is no worker thread confi