From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757629Ab2DZPg7 (ORCPT ); Thu, 26 Apr 2012 11:36:59 -0400 Received: from mail-pz0-f51.google.com ([209.85.210.51]:58871 "EHLO mail-pz0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756412Ab2DZPg6 (ORCPT ); Thu, 26 Apr 2012 11:36:58 -0400 Message-ID: <4F996BA6.9010900@gmail.com> Date: Thu, 26 Apr 2012 11:37:10 -0400 From: KOSAKI Motohiro User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: Christoph Lameter CC: Richard Davies , Satoru Moriya , KOSAKI Motohiro , Jerome Marchand , KOSAKI Motohiro , "jweiner@redhat.com" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , "riel@redhat.com" , "lwoodman@redhat.com" , "shaohua.li@intel.com" , "dle-develop@lists.sourceforge.net" , Seiji Aguchi , Minchan Kim Subject: Re: [RFC][PATCH] avoid swapping out with swappiness==0 References: <20120424082019.GA18395@alpha.arachsys.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org (4/26/12 10:50 AM), Christoph Lameter wrote: > On Tue, 24 Apr 2012, Richard Davies wrote: > >> I strongly believe that Linux should have a way to turn off swapping unless >> absolutely necessary. This means that users like us can run with swap >> present for emergency use, rather than having to disable it because of the >> side effects. > > Agree. And this ooperation mode should be the default behavior given that > swapping is a very slow and tedious process these days. Even though current patch is not optimal, I don't disagree this opinion. Can you please explain your use case? Why don't you use swapoff? Off topic: I hope linux is going to aim good swap clustered io in future. Especially when using THP, 4k size io is not really good. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx198.postini.com [74.125.245.198]) by kanga.kvack.org (Postfix) with SMTP id 5C6496B004A for ; Thu, 26 Apr 2012 11:36:59 -0400 (EDT) Received: by dadq36 with SMTP id q36so1943199dad.8 for ; Thu, 26 Apr 2012 08:36:58 -0700 (PDT) Message-ID: <4F996BA6.9010900@gmail.com> Date: Thu, 26 Apr 2012 11:37:10 -0400 From: KOSAKI Motohiro MIME-Version: 1.0 Subject: Re: [RFC][PATCH] avoid swapping out with swappiness==0 References: <20120424082019.GA18395@alpha.arachsys.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Christoph Lameter Cc: Richard Davies , Satoru Moriya , KOSAKI Motohiro , Jerome Marchand , KOSAKI Motohiro , "jweiner@redhat.com" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , "riel@redhat.com" , "lwoodman@redhat.com" , "shaohua.li@intel.com" , "dle-develop@lists.sourceforge.net" , Seiji Aguchi , Minchan Kim (4/26/12 10:50 AM), Christoph Lameter wrote: > On Tue, 24 Apr 2012, Richard Davies wrote: > >> I strongly believe that Linux should have a way to turn off swapping unless >> absolutely necessary. This means that users like us can run with swap >> present for emergency use, rather than having to disable it because of the >> side effects. > > Agree. And this ooperation mode should be the default behavior given that > swapping is a very slow and tedious process these days. Even though current patch is not optimal, I don't disagree this opinion. Can you please explain your use case? Why don't you use swapoff? Off topic: I hope linux is going to aim good swap clustered io in future. Especially when using THP, 4k size io is not really good. -- 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