Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932649AbWHMBLh (ORCPT ); Sat, 12 Aug 2006 21:11:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932646AbWHMBLh (ORCPT ); Sat, 12 Aug 2006 21:11:37 -0400 Received: from mx1.redhat.com ([66.187.233.31]:44522 "EHLO mx1.redhat.com") by vger.kernel.org with ESMTP id S932644AbWHMBLg (ORCPT ); Sat, 12 Aug 2006 21:11:36 -0400 Message-ID: <44DE7C34.4080909@redhat.com> Date: Sat, 12 Aug 2006 21:11:16 -0400 From: Rik van Riel Organization: Red Hat, Inc User-Agent: Thunderbird 1.5.0.4 (X11/20060614) MIME-Version: 1.0 To: David Miller CC: a.p.zijlstra@chello.nl, johnpol@2ka.mipt.ru, linux-mm@kvack.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, phillips@google.com Subject: Re: [RFC][PATCH 0/9] Network receive deadlock prevention for NBD References: <1155374390.13508.15.camel@lappy> <20060812093706.GA13554@2ka.mipt.ru> <1155377887.13508.27.camel@lappy> <20060812.174651.113732891.davem@davemloft.net> In-Reply-To: <20060812.174651.113732891.davem@davemloft.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 990 Lines: 25 David Miller wrote: > From: Peter Zijlstra > Date: Sat, 12 Aug 2006 12:18:07 +0200 > >> 65535 sockets * 128 packets * 16384 bytes/packet = >> 1^16 * 1^7 * 1^14 = 1^(16+7+14) = 1^37 = 128G of memory per IP >> >> And systems with a lot of IP numbers are not unthinkable. > > TCP restricts the amount of global memory that may be consumed > by all TCP sockets via the tcp_mem[] sysctl. This is exactly why we need to be careful which sockets we allocate memory for, when the system is about to run out of memory. -- "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." - Brian W. Kernighan - 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/