[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1349346360.16011.36.camel@edumazet-glaptop>
Date: Thu, 04 Oct 2012 12:26:00 +0200
From: Eric Dumazet <eric.dumazet@...il.com>
To: Erik Hugne <erik.hugne@...csson.com>
Cc: "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
Jon Maloy <jon.maloy@...csson.com>,
"ying.xue@...driver.com" <ying.xue@...driver.com>,
"paul.gortmaker@...driver.com" <paul.gortmaker@...driver.com>
Subject: Re: [PATCH] tipc: flow control should not account for sk_rcvbuf
On Thu, 2012-10-04 at 11:59 +0200, Erik Hugne wrote:
> > What guarantee do we have this cannot use all kernel memory ?
> >
> > If sk->sk_rcvbuf is not an acceptable limit here, you must use a
> > different limit, but not infinity.
> >
> There is an implicit limit on how much data that can be buffered on each
> socket, controlled by TIPC_FLOW_CONTROL_WIN.
>
> This limit is:
> TIPC_FLOW_CONTROL_WIN * 2 * TIPC_MAX_USER_MSG_SIZE
And this limit is tested _before_ queueing to backlog if socket is owned
by the user ?
You'll have to demonstrate this in the changelog.
Again, I dont think this patch is safe, we need an explicit limit.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists