Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758068Ab1DNMcD (ORCPT ); Thu, 14 Apr 2011 08:32:03 -0400 Received: from mail-bw0-f46.google.com ([209.85.214.46]:42525 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757330Ab1DNMcB (ORCPT ); Thu, 14 Apr 2011 08:32:01 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:content-type:to:cc:subject:references:date:mime-version :content-transfer-encoding:from:message-id:in-reply-to:user-agent; b=iU2n/bdG+gCjYZS5xWiGVCETcvyxIe7fX5qiQ6YgyInqtHaQnSirZjVP28CLmiIGyB angk+vGysL/V6OGGE0wtNpB0OQC99Aj6cO8cEjcuSoT0+BAPUc5eWGtoInwNrlCYMAJ5 umJ6vyiwh+cYsXmXhH5C5aG0sqTJ0RJCMIcIY= Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: =?utf-8?Q?Am=C3=A9rico_Wang?= , "Pintu Agarwal" Cc: "Andrew Morton" , "Eric Dumazet" , "Changli Gao" , "Jiri Slaby" , azurIt , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, "Jiri Slaby" Subject: Re: Regarding memory fragmentation using malloc.... References: <858878.89812.qm@web162015.mail.bf1.yahoo.com> Date: Thu, 14 Apr 2011 14:31:57 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Michal Nazarewicz" Message-ID: In-Reply-To: <858878.89812.qm@web162015.mail.bf1.yahoo.com> User-Agent: Opera Mail/11.01 (Linux) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1225 Lines: 27 On Thu, 14 Apr 2011 14:24:56 +0200, Pintu Agarwal wrote: > Sorry. There was a small typo in my last sentence (mitigating not > *migitating* memory fragmentation) > That means how can I measure the memory fragmentation either from user > space or from kernel space. > Is there a way to measure the amount of memory fragmentation in linux? I'm still not entirely sure what you need. You may try to measure fragmentation by the number of low order pages -- the more low order pages compared to high order pages the bigger the fragmentation. As of how to mitigate... There's memory compaction. There's some optimisations in buddy system. I'm probably not the best person to ask anyway. -- Best regards, _ _ .o. | Liege of Serenely Enlightened Majesty of o' \,=./ `o ..o | Computer Science, Michal "mina86" Nazarewicz (o o) ooo +----------ooO--(_)--Ooo-- -- 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/