Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964952AbWHLUGG (ORCPT ); Sat, 12 Aug 2006 16:06:06 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964950AbWHLUGG (ORCPT ); Sat, 12 Aug 2006 16:06:06 -0400 Received: from helium.samage.net ([83.149.67.129]:5025 "EHLO helium.samage.net") by vger.kernel.org with ESMTP id S964949AbWHLUGE (ORCPT ); Sat, 12 Aug 2006 16:06:04 -0400 Message-ID: <46805.81.207.0.53.1155413148.squirrel@81.207.0.53> In-Reply-To: <1155408846.13508.115.camel@lappy> References: <20060812141415.30842.78695.sendpatchset@lappy> <33471.81.207.0.53.1155401489.squirrel@81.207.0.53> <1155404014.13508.72.camel@lappy> <47227.81.207.0.53.1155406611.squirrel@81.207.0.53> <1155408846.13508.115.camel@lappy> Date: Sat, 12 Aug 2006 22:05:48 +0200 (CEST) Subject: Re: [RFC][PATCH 0/4] VM deadlock prevention -v4 From: "Indan Zupancic" To: "Peter Zijlstra" Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, "Evgeniy Polyakov" , "Daniel Phillips" , "Rik van Riel" , "David Miller" User-Agent: SquirrelMail/1.4.3a X-Mailer: SquirrelMail/1.4.3a MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Priority: 3 (Normal) Importance: Normal Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1461 Lines: 40 On Sat, August 12, 2006 20:54, Peter Zijlstra said: > - single allocation group per packet - that is, when I free a packet > and all its associated object I get my memory back. This is easy. > - not waste too much space managing the various objects This too, when ignoring clones and COW. > skb operations want to allocate various sk_buffs for the same data > clones. Also, it wants to be able to break the COW or realloc the data. So this seems to be what adds all the complexity. > So I tried manual packing (parts of that you have seen in previous > attempts). This gets hard when you want to do unlimited clones and COW > breaks. To do either you need to go link several pages. It gets messy quite quickly, yes. > So needing a list of pages and wanting packing gave me SROG. The biggest > wart is having to deal with higher order pages. Explicitly coding in > knowledge of the object you're packing just makes the code bigger - such > is the power of abstraction. I assume you meant "Not explicitly coding in", or else I'm tempted to disagree. Abstraction that has only one user which uses it in one way only adds bloat. But looking at the code a bit more I'm afraid you're right. Greetings, Indan - 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/