Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933895Ab0BQBqJ (ORCPT ); Tue, 16 Feb 2010 20:46:09 -0500 Received: from mx1.redhat.com ([209.132.183.28]:18628 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933803Ab0BQBqH (ORCPT ); Tue, 16 Feb 2010 20:46:07 -0500 Message-ID: <4B7B49FA.6040605@redhat.com> Date: Tue, 16 Feb 2010 20:44:26 -0500 From: Rik van Riel Organization: Red Hat, Inc User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-4.fc12 Lightning/1.0pre Thunderbird/3.0 MIME-Version: 1.0 To: Mel Gorman CC: Andrea Arcangeli , Christoph Lameter , Adam Litke , Avi Kivity , David Rientjes , KOSAKI Motohiro , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH 04/12] Export fragmentation index via /proc/pagetypeinfo References: <1265976059-7459-1-git-send-email-mel@csn.ul.ie> <1265976059-7459-5-git-send-email-mel@csn.ul.ie> In-Reply-To: <1265976059-7459-5-git-send-email-mel@csn.ul.ie> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1045 Lines: 23 On 02/12/2010 07:00 AM, Mel Gorman wrote: > Fragmentation index is a value that makes sense when an allocation of a > given size would fail. The index indicates whether an allocation failure is > due to a lack of memory (values towards 0) or due to external fragmentation > (value towards 1). For the most part, the huge page size will be the size > of interest but not necessarily so it is exported on a per-order and per-zone > basis via /proc/pagetypeinfo. > > The index is normally calculated as a value between 0 and 1 which is > obviously unsuitable within the kernel. Instead, the first three decimal > places are used as a value between 0 and 1000 for an integer approximation. > > Signed-off-by: Mel Gorman Acked-by: Rik van Riel -- All rights reversed. -- 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/