Re: [vpp-dev] The VCL server CPU utilization is 100% , if there is no message to the epoll_wait

2018-06-05 Thread Dave Wallace

Hi Xyxue,

listen() sits in a polling loop for the short amount of time it takes 
for VPP to process the bind VPE api message.


send, recv, and connect may sit in a polling loop if the session is 
configured as blocking when there is nothing to be done (i.e. is blocked 
waiting for resources).


Thanks,
-daw-

On 6/5/2018 1:48 AM, 薛欣颖 wrote:


Hi daw,

Thank you for your reply . Another question :If the 'listen 
,send,recv,connect' will cause the cpu utilization 100%?


Thanks,
Xyxue


*发件人:* Dave Wallace 
*发送时间:* 2018-06-05 02:22
*收件人:* vpp-dev ; 薛欣颖

*主题:* Re: [vpp-dev] The VCL server CPU utilization is 100% , if
there is no message to the epoll_wait
Xyxue,

This is a known by-product of the existing [prototype] epoll_wait
implementation. There is currently no mechanism in epoll_wait to
have the thread block on a condvar which would cause the thread to
sleep instead of sitting in a continuous polling loop.

Fixing this is on the list of things to do in VCL, but there is
currently no ETA for when it will be resolved.

Thanks,
-daw-

On 6/4/2018 6:13 AM, xyxue wrote:


Hi guys,

I‘m testing the VCL . The VCL server CPU utilization is 100% ,if
there is no message to the epoll_wait. Is there anything I can do
to slove it?
Is there  the same problem in the VCL client?

Thanks,
Xyxue









Re: [vpp-dev] The VCL server CPU utilization is 100% , if there is no message to the epoll_wait

2018-06-04 Thread xyxue

Hi daw,

Thank you for your reply . Another question :If the 'listen ,send,recv,connect' 
will cause the cpu utilization 100%?

Thanks,
Xyxue


 
发件人: Dave Wallace
发送时间: 2018-06-05 02:22
收件人: vpp-dev; 薛欣颖
主题: Re: [vpp-dev] The VCL server CPU utilization is 100% , if there is no 
message to the epoll_wait
Xyxue,

This is a known by-product of the existing [prototype] epoll_wait 
implementation. There is currently no mechanism in epoll_wait to have the 
thread block on a condvar which would cause the thread to sleep instead of 
sitting in a continuous polling loop.

Fixing this is on the list of things to do in VCL, but there is currently no 
ETA for when it will be resolved.

Thanks,
-daw-

On 6/4/2018 6:13 AM, xyxue wrote:

Hi guys,

I‘m testing the VCL . The VCL server CPU utilization is 100% ,if there is no 
message to the epoll_wait. Is there anything I can do to slove it?
Is there  the same problem in the VCL client?

Thanks,
Xyxue






Re: [vpp-dev] The VCL server CPU utilization is 100% , if there is no message to the epoll_wait

2018-06-04 Thread Dave Wallace

Xyxue,

This is a known by-product of the existing [prototype] epoll_wait 
implementation. There is currently no mechanism in epoll_wait to have 
the thread block on a condvar which would cause the thread to sleep 
instead of sitting in a continuous polling loop.


Fixing this is on the list of things to do in VCL, but there is 
currently no ETA for when it will be resolved.


Thanks,
-daw-

On 6/4/2018 6:13 AM, xyxue wrote:


Hi guys,

I‘m testing the VCL . The VCL server CPU utilization is 100% ,if there 
is no message to the epoll_wait. Is there anything I can do to slove it?

Is there  the same problem in the VCL client?

Thanks,
Xyxue






[vpp-dev] The VCL server CPU utilization is 100% , if there is no message to the epoll_wait

2018-06-04 Thread xyxue

Hi guys,

I‘m testing the VCL . The VCL server CPU utilization is 100% ,if there is no 
message to the epoll_wait. Is there anything I can do to slove it?
Is there  the same problem in the VCL client?

Thanks,
Xyxue