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
Additionally to Dave's answer, you also have to be very careful with the expected precision of the timers. When you're inserting a timer with a interval on N into a timer with a period of P, you timeout is not guaranteed to be N * P, it is more something like (N-1)*P < timeout < N*P. The reason fo

Re: [vpp-dev] timer wheel usage queries

2019-06-12 Thread Dave Barach via Lists.Fd.Io
You didn't mention calling tw_timer_expire_timers_xxx(tw, now), which is the only force of physics which will actually cause a timer to expire. See also .../src/vppinfra/test_tw_timer.c, src/vlib/main.c or src/vnet/tcp/tcp.c for usage examples. The timer wheel code has been tested to N=60 milli