Thanks Dave. I used the VLIB_NODE_TYPE_INPUT, but I now observe that, in presence of worker threads, my main thread is going to 100 % cpu utilization as well. Without my new node, the main thread does not go to 100 % cpu utilization. I want the polling to happen only in worker threads (or the main thread if there are no workers) Can I do something at the runtime to achieve that ?
Regards -Prashant On Thu, Nov 22, 2018 at 7:02 PM Dave Barach (dbarach) <[email protected]> wrote: > > Use VLIB_NODE_TYPE_INPUT. Pre-input nodes - of which there is one - exist to > make sure that a certain epoll(...) call happens at the top of the loop. > > D. > > -----Original Message----- > From: [email protected] <[email protected]> On Behalf Of Prashant > Upadhyaya > Sent: Thursday, November 22, 2018 7:41 AM > To: [email protected] > Subject: [vpp-dev] Difference between PRE_INPUT and INPUT nodes > > Hi, > > What is the difference between -- > .type = VLIB_NODE_TYPE_PRE_INPUT > and > .type = VLIB_NODE_TYPE_INPUT > > when the -- > .state = VLIB_NODE_STATE_POLLING > > Typically when should the PRE_INPUT be used and when the INPUT, would > appreciate any advice on this. My usecase needs to do a high speed polling. > > Regards > -Prashant
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11367): https://lists.fd.io/g/vpp-dev/message/11367 Mute This Topic: https://lists.fd.io/mt/28286049/21656 Group Owner: [email protected] Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
