Re: [vpp-dev] timer wheel usage queries

2019-06-18 Thread hari_akkin via Lists.Fd.Io
Thanks Dave. Per thread TW are working as expected regards Hari -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13327): https://lists.fd.io/g/vpp-dev/message/13327 Mute This Topic: https://lists.fd.io/mt/32039603/21656 Group Owner: vpp-dev+ow...@lis

Re: [vpp-dev] timer wheel usage queries

2019-06-17 Thread Dave Barach via Lists.Fd.Io
alf Of hari_akkin via Lists.Fd.Io Sent: Monday, June 17, 2019 11:37 AM To: vpp-dev@lists.fd.io Cc: vpp-dev@lists.fd.io Subject: Re: [vpp-dev] timer wheel usage queries Hi Dave, Thanks for the quick response. Can you please point me how to tie a timer wheel to a thread? thanks H

Re: [vpp-dev] timer wheel usage queries

2019-06-17 Thread hari_akkin via Lists.Fd.Io
Hi Dave, Thanks for the quick response. Can you please point me how to tie a timer wheel to a thread? thanks Hari -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13299): https://lists.fd.io/g/vpp-dev/message/13299 Mute This Topic: https://lists.fd.i

Re: [vpp-dev] timer wheel usage queries

2019-06-17 Thread Dave Barach via Lists.Fd.Io
sessions, etc. onto specific threads; use one wheel per thread. Running one timer per thread is not suggested. D. From: vpp-dev@lists.fd.io On Behalf Of hari_akkin via Lists.Fd.Io Sent: Monday, June 17, 2019 6:54 AM To: vpp-dev@lists.fd.io Cc: vpp-dev@lists.fd.io Subject: Re: [vpp-dev] timer wheel

Re: [vpp-dev] timer wheel usage queries

2019-06-17 Thread hari_akkin via Lists.Fd.Io
Thanks Dave for the information on calling tw_timer_expire_timers_xxx(tw, now). However i have to make the node type as VLIB_NODE_TYPE_INPUT and set node state to VLIB_NODE_STATE_POLLING for polling to work. is this the right approach? I have one more query on how to implement per thread timer w

Re: [vpp-dev] timer wheel usage queries

2019-06-12 Thread Andreas Schultz
> > > From: vpp-dev@lists.fd.io on behalf of hari_akkin via > Lists.Fd.Io > Sent: Wednesday, June 12, 2019 7:00 AM > To: vpp-dev@lists.fd.io > Cc: vpp-dev@lists.fd.io > Subject: [vpp-dev] timer wheel usage queries > > Hello > I am trying t

Re: [vpp-dev] timer wheel usage queries

2019-06-12 Thread Dave Barach via Lists.Fd.Io
N=60 million concurrent timers. It's not trivially broken. D From: vpp-dev@lists.fd.io on behalf of hari_akkin via Lists.Fd.Io Sent: Wednesday, June 12, 2019 7:00 AM To: vpp-dev@lists.fd.io Cc: vpp-dev@lists.fd.io Subject: [vpp-dev] timer wheel usage queries

[vpp-dev] timer wheel usage queries

2019-06-12 Thread hari_akkin via Lists.Fd.Io
Hello I am trying to use timer_wheel framework to start a timer. I followed the examples given in fdio, but the expiry_callback function never being called back. I am not sure if timer failed to expire or my usage has problems. I used the below functions: Timer wheel Init: { tw_timer_wheel_1t_1