Re: [PATCH] sctp: avoid refreshing heartbeat timer too often

2016-03-31 Thread Marcelo Ricardo Leitner
On Thu, Mar 31, 2016 at 06:25:12PM -0300, 'Marcelo Ricardo Leitner' wrote: > On Thu, Mar 31, 2016 at 11:16:52AM +, David Laight wrote: > > From: Marcelo Ricardo Leitner > > > Sent: 30 March 2016 13:13 > > > Em 30-03-2016 06:37, David Laight escreveu: > > > > From: Marcelo Ricardo Leitner > > >

Re: [PATCH] sctp: avoid refreshing heartbeat timer too often

2016-03-31 Thread 'Marcelo Ricardo Leitner'
On Thu, Mar 31, 2016 at 11:16:52AM +, David Laight wrote: > From: Marcelo Ricardo Leitner > > Sent: 30 March 2016 13:13 > > Em 30-03-2016 06:37, David Laight escreveu: > > > From: Marcelo Ricardo Leitner > > >> Sent: 29 March 2016 14:42 > > >> > > >> Currently on high rate SCTP streams the hear

RE: [PATCH] sctp: avoid refreshing heartbeat timer too often

2016-03-31 Thread David Laight
From: Marcelo Ricardo Leitner > Sent: 30 March 2016 13:13 > Em 30-03-2016 06:37, David Laight escreveu: > > From: Marcelo Ricardo Leitner > >> Sent: 29 March 2016 14:42 > >> > >> Currently on high rate SCTP streams the heartbeat timer refresh can > >> consume quite a lot of resources as timer updat

Re: [PATCH] sctp: avoid refreshing heartbeat timer too often

2016-03-30 Thread Marcelo Ricardo Leitner
Em 30-03-2016 06:37, David Laight escreveu: From: Marcelo Ricardo Leitner Sent: 29 March 2016 14:42 Currently on high rate SCTP streams the heartbeat timer refresh can consume quite a lot of resources as timer updates are costly and it contains a random factor, which a) is also costly and b) in

RE: [PATCH] sctp: avoid refreshing heartbeat timer too often

2016-03-30 Thread David Laight
From: Marcelo Ricardo Leitner > Sent: 29 March 2016 14:42 > > Currently on high rate SCTP streams the heartbeat timer refresh can > consume quite a lot of resources as timer updates are costly and it > contains a random factor, which a) is also costly and b) invalidates > mod_timer() optimization f

[PATCH] sctp: avoid refreshing heartbeat timer too often

2016-03-29 Thread Marcelo Ricardo Leitner
Currently on high rate SCTP streams the heartbeat timer refresh can consume quite a lot of resources as timer updates are costly and it contains a random factor, which a) is also costly and b) invalidates mod_timer() optimization for not editing a timer to the same value. It may even cause the time