From mboxrd@z Thu Jan 1 00:00:00 1970 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 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-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail203.messagelabs.com (mail203.messagelabs.com [216.82.254.243]) by kanga.kvack.org (Postfix) with ESMTP id 8DCA0900086 for ; Thu, 14 Apr 2011 09:00:48 -0400 (EDT) Received: by bwz17 with SMTP id 17so2036315bwz.14 for ; Thu, 14 Apr 2011 06:00:45 -0700 (PDT) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes 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> Sender: owner-linux-mm@kvack.org List-ID: 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 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, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org