From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752762Ab1GDAnM (ORCPT ); Sun, 3 Jul 2011 20:43:12 -0400 Received: from mail-qw0-f46.google.com ([209.85.216.46]:52145 "EHLO mail-qw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752524Ab1GDAnK (ORCPT ); Sun, 3 Jul 2011 20:43:10 -0400 MIME-Version: 1.0 In-Reply-To: <1309721963-5577-1-git-send-email-dmitry.fink@palm.com> References: <1309721963-5577-1-git-send-email-dmitry.fink@palm.com> Date: Mon, 4 Jul 2011 09:43:09 +0900 Message-ID: Subject: Re: [PATCH 1/1] mmap: Don't count shmem pages as free in __vm_enough_memory From: Minchan Kim To: Dmitry Fink Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Dmitry Fink Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 4, 2011 at 4:39 AM, Dmitry Fink wrote: > shmem pages can't be reclaimed and if they are swapped out > that doesn't affect the overall available memory in the system, > so don't count them along with the rest of the file backed pages. > > Signed-off-by: Dmitry Fink Reviewed-by: Minchan Kim I am not sure the description is good. :( But I think this patch is reasonable. In swapless system,guessing overcommit can have a problem. And in current implementation of OVERCOMMIT_GUESS, we consider anon pages as empty space of swap so shmem pages should be accounted by that. -- Kind regards, Minchan Kim 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 981F79000C2 for ; Sun, 3 Jul 2011 20:43:12 -0400 (EDT) Received: by qwa26 with SMTP id 26so3242810qwa.14 for ; Sun, 03 Jul 2011 17:43:10 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1309721963-5577-1-git-send-email-dmitry.fink@palm.com> References: <1309721963-5577-1-git-send-email-dmitry.fink@palm.com> Date: Mon, 4 Jul 2011 09:43:09 +0900 Message-ID: Subject: Re: [PATCH 1/1] mmap: Don't count shmem pages as free in __vm_enough_memory From: Minchan Kim Content-Type: text/plain; charset=UTF-8 Sender: owner-linux-mm@kvack.org List-ID: To: Dmitry Fink Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Dmitry Fink On Mon, Jul 4, 2011 at 4:39 AM, Dmitry Fink wrote: > shmem pages can't be reclaimed and if they are swapped out > that doesn't affect the overall available memory in the system, > so don't count them along with the rest of the file backed pages. > > Signed-off-by: Dmitry Fink Reviewed-by: Minchan Kim I am not sure the description is good. :( But I think this patch is reasonable. In swapless system,guessing overcommit can have a problem. And in current implementation of OVERCOMMIT_GUESS, we consider anon pages as empty space of swap so shmem pages should be accounted by that. -- 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/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org