Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161014AbVLODqO (ORCPT ); Wed, 14 Dec 2005 22:46:14 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1161013AbVLODqO (ORCPT ); Wed, 14 Dec 2005 22:46:14 -0500 Received: from waste.org ([64.81.244.121]:50364 "EHLO waste.org") by vger.kernel.org with ESMTP id S1161014AbVLODqN (ORCPT ); Wed, 14 Dec 2005 22:46:13 -0500 Date: Wed, 14 Dec 2005 19:39:37 -0800 From: Matt Mackall To: Sridhar Samudrala Cc: Andi Kleen , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [RFC][PATCH 0/3] TCP/IP Critical socket communication mechanism Message-ID: <20051215033937.GC11856@waste.org> References: <20051214092228.GC18862@brahms.suse.de> <1134582945.8698.17.camel@w-sridhar2.beaverton.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1134582945.8698.17.camel@w-sridhar2.beaverton.ibm.com> User-Agent: Mutt/1.5.9i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1248 Lines: 28 On Wed, Dec 14, 2005 at 09:55:45AM -0800, Sridhar Samudrala wrote: > On Wed, 2005-12-14 at 10:22 +0100, Andi Kleen wrote: > > > I would appreciate any feedback or comments on this approach. > > > > Maybe I'm missing something but wouldn't you need an own critical > > pool (or at least reservation) for each socket to be safe against deadlocks? > > > > Otherwise if a critical sockets needs e.g. 2 pages to finish something > > and 2 critical sockets are active they can each steal the last pages > > from each other and deadlock. > > Here we are assuming that the pre-allocated critical page pool is big enough > to satisfy the requirements of all the critical sockets. Not a good assumption. A system can have between 1-1000 iSCSI connections open and we certainly don't want to preallocate enough room for 1000 connections to make progress when we might only have one in use. I think we need a global receive pool and per-socket send pools. -- Mathematics is the supreme nostalgia of our time. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/