netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* long-lived tcp connection question
@ 2012-03-22 16:56 Josh Hunt
  2012-03-22 21:51 ` Hagen Paul Pfeifer
  0 siblings, 1 reply; 4+ messages in thread
From: Josh Hunt @ 2012-03-22 16:56 UTC (permalink / raw)
  To: netdev

Given things like web sockets with presumably long-lived persistent
tcp connections and a sparse amount of data, I was wondering if there
are currently any mechanisms in the kernel or out of tree projects
which work on reducing the overhead these connections require?
Possibly storing their state after a certain period of inactivity and
then reviving them when work needs to be done? I'm thinking something
along the lines of the state info stored for time-wait sockets and
then the ability to resurrect it on an incoming packet. Keeping
resources around for such connections seems inefficient although
possibly unavoidable.

Thanks
Josh

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: long-lived tcp connection question
  2012-03-22 16:56 long-lived tcp connection question Josh Hunt
@ 2012-03-22 21:51 ` Hagen Paul Pfeifer
  2012-03-22 22:27   ` Josh Hunt
  0 siblings, 1 reply; 4+ messages in thread
From: Hagen Paul Pfeifer @ 2012-03-22 21:51 UTC (permalink / raw)
  To: Josh Hunt; +Cc: netdev

* Josh Hunt | 2012-03-22 11:56:19 [-0500]:

>Given things like web sockets with presumably long-lived persistent
>tcp connections and a sparse amount of data, I was wondering if there
>are currently any mechanisms in the kernel or out of tree projects
>which work on reducing the overhead these connections require?
>Possibly storing their state after a certain period of inactivity and
>then reviving them when work needs to be done? I'm thinking something
>along the lines of the state info stored for time-wait sockets and
>then the ability to resurrect it on an incoming packet. Keeping
>resources around for such connections seems inefficient although
>possibly unavoidable.

Do you referring to something like this:

https://datatracker.ietf.org/doc/draft-ietf-tcpm-fastopen/

The Linux code is not released yet, but I know that the required storage
overhead is small. Search the IETF email archive for more background
information about the topic.

Hagen

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: long-lived tcp connection question
  2012-03-22 21:51 ` Hagen Paul Pfeifer
@ 2012-03-22 22:27   ` Josh Hunt
  2012-03-22 22:29     ` Eric Dumazet
  0 siblings, 1 reply; 4+ messages in thread
From: Josh Hunt @ 2012-03-22 22:27 UTC (permalink / raw)
  To: Hagen Paul Pfeifer; +Cc: netdev

On Thu, Mar 22, 2012 at 4:51 PM, Hagen Paul Pfeifer <hagen@jauu.net> wrote:
> * Josh Hunt | 2012-03-22 11:56:19 [-0500]:
>
>>Given things like web sockets with presumably long-lived persistent
>>tcp connections and a sparse amount of data, I was wondering if there
>>are currently any mechanisms in the kernel or out of tree projects
>>which work on reducing the overhead these connections require?
>>Possibly storing their state after a certain period of inactivity and
>>then reviving them when work needs to be done? I'm thinking something
>>along the lines of the state info stored for time-wait sockets and
>>then the ability to resurrect it on an incoming packet. Keeping
>>resources around for such connections seems inefficient although
>>possibly unavoidable.
>
> Do you referring to something like this:
>
> https://datatracker.ietf.org/doc/draft-ietf-tcpm-fastopen/
>
> The Linux code is not released yet, but I know that the required storage
> overhead is small. Search the IETF email archive for more background
> information about the topic.
>
> Hagen
>

No, this deals more with the overhead of establishing a connection.
I'm asking more about the overhead associated with holding on to
long-lived connections which may not be doing much.

-- 
Josh

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: long-lived tcp connection question
  2012-03-22 22:27   ` Josh Hunt
@ 2012-03-22 22:29     ` Eric Dumazet
  0 siblings, 0 replies; 4+ messages in thread
From: Eric Dumazet @ 2012-03-22 22:29 UTC (permalink / raw)
  To: Josh Hunt; +Cc: Hagen Paul Pfeifer, netdev

On Thu, 2012-03-22 at 17:27 -0500, Josh Hunt wrote:
> On Thu, Mar 22, 2012 at 4:51 PM, Hagen Paul Pfeifer <hagen@jauu.net> wrote:
> > * Josh Hunt | 2012-03-22 11:56:19 [-0500]:
> >
> >>Given things like web sockets with presumably long-lived persistent
> >>tcp connections and a sparse amount of data, I was wondering if there
> >>are currently any mechanisms in the kernel or out of tree projects
> >>which work on reducing the overhead these connections require?
> >>Possibly storing their state after a certain period of inactivity and
> >>then reviving them when work needs to be done? I'm thinking something
> >>along the lines of the state info stored for time-wait sockets and
> >>then the ability to resurrect it on an incoming packet. Keeping
> >>resources around for such connections seems inefficient although
> >>possibly unavoidable.
> >
> > Do you referring to something like this:
> >
> > https://datatracker.ietf.org/doc/draft-ietf-tcpm-fastopen/
> >
> > The Linux code is not released yet, but I know that the required storage
> > overhead is small. Search the IETF email archive for more background
> > information about the topic.
> >
> > Hagen
> >
> 
> No, this deals more with the overhead of establishing a connection.
> I'm asking more about the overhead associated with holding on to
> long-lived connections which may not be doing much.
> 

So what are the actual numbers for this overhead per socket ?

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-03-22 22:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-22 16:56 long-lived tcp connection question Josh Hunt
2012-03-22 21:51 ` Hagen Paul Pfeifer
2012-03-22 22:27   ` Josh Hunt
2012-03-22 22:29     ` Eric Dumazet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).