From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936864Ab0CPCrw (ORCPT ); Mon, 15 Mar 2010 22:47:52 -0400 Received: from mail-pw0-f46.google.com ([209.85.160.46]:39017 "EHLO mail-pw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756467Ab0CPCrt convert rfc822-to-8bit (ORCPT ); Mon, 15 Mar 2010 22:47:49 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=lQ1Brb5aGQrC6TOEBfyWALSwW1ehivz8b56QtR+6Oa+DvRYNotxapMT6GBinu8rxck V3ENHTFbR7df8FUDWOdmMN9fPH3vHNaT9kZ/jf2n890qfmsZmh6E1apEyat3SYtCyOpp vddG1m+trLDVlg/amNNAHPD2984HIvDL7lg4o= MIME-Version: 1.0 In-Reply-To: <1268412087-13536-11-git-send-email-mel@csn.ul.ie> References: <1268412087-13536-1-git-send-email-mel@csn.ul.ie> <1268412087-13536-11-git-send-email-mel@csn.ul.ie> Date: Tue, 16 Mar 2010 11:47:48 +0900 Message-ID: <28c262361003151947p356578ffs3e7b73bc81214cfc@mail.gmail.com> Subject: Re: [PATCH 10/11] Direct compact when a high-order allocation fails From: Minchan Kim To: Mel Gorman Cc: Andrew Morton , Andrea Arcangeli , Christoph Lameter , Adam Litke , Avi Kivity , David Rientjes , KOSAKI Motohiro , Rik van Riel , linux-kernel@vger.kernel.org, linux-mm@kvack.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 13, 2010 at 1:41 AM, Mel Gorman wrote: > Ordinarily when a high-order allocation fails, direct reclaim is entered to > free pages to satisfy the allocation.  With this patch, it is determined if > an allocation failed due to external fragmentation instead of low memory > and if so, the calling process will compact until a suitable page is > freed. Compaction by moving pages in memory is considerably cheaper than > paging out to disk and works where there are locked pages or no swap. If > compaction fails to free a page of a suitable size, then reclaim will > still occur. > > Direct compaction returns as soon as possible. As each block is compacted, > it is checked if a suitable page has been freed and if so, it returns. > > Signed-off-by: Mel Gorman > Acked-by: Rik van Riel Reviewed-by: Minchan Kim At least, I can't find any fault more. :) -- Kind regards, Minchan Kim From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail144.messagelabs.com (mail144.messagelabs.com [216.82.254.51]) by kanga.kvack.org (Postfix) with SMTP id 433AA6B0164 for ; Mon, 15 Mar 2010 22:47:50 -0400 (EDT) Received: by pvg2 with SMTP id 2so894564pvg.14 for ; Mon, 15 Mar 2010 19:47:49 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1268412087-13536-11-git-send-email-mel@csn.ul.ie> References: <1268412087-13536-1-git-send-email-mel@csn.ul.ie> <1268412087-13536-11-git-send-email-mel@csn.ul.ie> Date: Tue, 16 Mar 2010 11:47:48 +0900 Message-ID: <28c262361003151947p356578ffs3e7b73bc81214cfc@mail.gmail.com> Subject: Re: [PATCH 10/11] Direct compact when a high-order allocation fails From: Minchan Kim Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sender: owner-linux-mm@kvack.org To: Mel Gorman Cc: Andrew Morton , Andrea Arcangeli , Christoph Lameter , Adam Litke , Avi Kivity , David Rientjes , KOSAKI Motohiro , Rik van Riel , linux-kernel@vger.kernel.org, linux-mm@kvack.org List-ID: On Sat, Mar 13, 2010 at 1:41 AM, Mel Gorman wrote: > Ordinarily when a high-order allocation fails, direct reclaim is entered = to > free pages to satisfy the allocation. =C2=A0With this patch, it is determ= ined if > an allocation failed due to external fragmentation instead of low memory > and if so, the calling process will compact until a suitable page is > freed. Compaction by moving pages in memory is considerably cheaper than > paging out to disk and works where there are locked pages or no swap. If > compaction fails to free a page of a suitable size, then reclaim will > still occur. > > Direct compaction returns as soon as possible. As each block is compacted= , > it is checked if a suitable page has been freed and if so, it returns. > > Signed-off-by: Mel Gorman > Acked-by: Rik van Riel Reviewed-by: Minchan Kim At least, I can't find any fault more. :) --=20 Kind regards, Minchan Kim -- 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/ . Don't email: email@kvack.org