Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933880AbXHFXRT (ORCPT ); Mon, 6 Aug 2007 19:17:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932203AbXHFXRD (ORCPT ); Mon, 6 Aug 2007 19:17:03 -0400 Received: from dsl081-085-152.lax1.dsl.speakeasy.net ([64.81.85.152]:60511 "EHLO moonbase.phunq.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932681AbXHFXRA (ORCPT ); Mon, 6 Aug 2007 19:17:00 -0400 From: Daniel Phillips To: Andrew Morton Subject: Re: [PATCH 02/10] mm: system wide ALLOC_NO_WATERMARK Date: Mon, 6 Aug 2007 16:16:46 -0700 User-Agent: KMail/1.9.5 Cc: Christoph Lameter , Matt Mackall , Peter Zijlstra , linux-kernel@vger.kernel.org, linux-mm@kvack.org, David Miller , Daniel Phillips , Pekka Enberg , Lee Schermerhorn , Steve Dickson References: <20070806102922.907530000@chello.nl> <20070806132747.4b9cea80.akpm@linux-foundation.org> In-Reply-To: <20070806132747.4b9cea80.akpm@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200708061616.46611.phillips@phunq.net> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1706 Lines: 40 On Monday 06 August 2007 13:27, Andrew Morton wrote: > On Mon, 6 Aug 2007 13:19:26 -0700 (PDT) Christoph Lameter wrote: > > The solution may be as simple as configuring the reserves right and > > avoid the unbounded memory allocations. That is possible if one > > would make sure that the network layer triggers reclaim once in a > > while. > > Such a simple fix would be attractive. Some of the net drivers now > have remarkably large rx and tx queues. One wonders if this is > playing a part in the problem and whether reducing the queue sizes > would help. There is nothing wrong with having huge rx and tx queues, except when they lie in the vm writeout path. In that case, we do indeed throttle them to reasonable numbers. See: http://zumastor.googlecode.com/svn/trunk/ddsnap/kernel/dm-ddsnap.c down(&info->throttle_sem); The only way we have ever gotten ddsnap to run reliably under heavy load without deadlocking is with Peter's patch set (a distant descendant of mine from two years or so ago) and we did put a lot of effort into trying to make congestion_wait and friends do the job instead. To be sure, it is a small subset of Peter's full patch set that actually does the job that congestion_wait cannot be made to do, which is to guarantee that socket->write() is always able to get enough memory to send out the vm traffic without recursing. What Peter's patches do is make it _nice_ to fix these problems. Regards, Daniel - 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/