Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751366AbXF2HAt (ORCPT ); Fri, 29 Jun 2007 03:00:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751689AbXF2HAk (ORCPT ); Fri, 29 Jun 2007 03:00:40 -0400 Received: from netops-testserver-3-out.sgi.com ([192.48.171.28]:46773 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751455AbXF2HAk (ORCPT ); Fri, 29 Jun 2007 03:00:40 -0400 Date: Fri, 29 Jun 2007 00:00:39 -0700 (PDT) From: Christoph Lameter X-X-Sender: clameter@schroedinger.engr.sgi.com To: David Miller cc: hugh@veritas.com, James.Bottomley@steeleye.com, rmk+lkml@arm.linux.org.uk, akpm@linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Containment measures for slab objects on scatter gather lists In-Reply-To: <20070628.220606.112621271.davem@davemloft.net> Message-ID: References: <20070628.212825.78710369.davem@davemloft.net> <20070628.220606.112621271.davem@davemloft.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 881 Lines: 22 On Thu, 28 Jun 2007, David Miller wrote: > Really, it would be great if we could treat kmalloc() objects > just like real pages. Everything wants to do I/O on pages > but sometimes (like the networking) you have a kmalloc > chunk which is technically just a part of a page. > > The fact that there is no easy way to make this work is > frustrating :-) There is easy way: Allocate a page and just use the first N bytes. You can specify the bytes to be used when putting the memory onto the scatter gather list. This wastes memory but it works. You have real refcounting since you got a real page. How frequent are these objects? - 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/