From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx158.postini.com [74.125.245.158]) by kanga.kvack.org (Postfix) with SMTP id 619BA6B0062 for ; Mon, 10 Sep 2012 13:08:05 -0400 (EDT) Received: by iagk10 with SMTP id k10so2569626iag.14 for ; Mon, 10 Sep 2012 10:08:04 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <5038E7AA.5030107@gmail.com> <1347209830.7709.39.camel@deadeye.wl.decadent.org.uk> <504CCECF.9020104@redhat.com> From: Shentino Date: Mon, 10 Sep 2012 10:07:24 -0700 Message-ID: Subject: Re: Consider for longterm kernels: mm: avoid swapping out with swappiness==0 Content-Type: text/plain; charset=UTF-8 Sender: owner-linux-mm@kvack.org List-ID: To: Cong Wang Cc: linux-mm@kvack.org, stable@vger.kernel.org On Mon, Sep 10, 2012 at 6:36 AM, Cong Wang wrote: > On Sun, 09 Sep 2012 at 18:03 GMT, Shentino wrote: >> >> Just curious, but what theoretically would happen if someone were to >> want to set swappiness to 200 or something? >> >> Should it be sorta like vfs_cache_pressure? >> > > > How could it be set to 200? As 0~100 is valid: > > { > .procname = "swappiness", > .data = &vm_swappiness, > .maxlen = sizeof(vm_swappiness), > .mode = 0644, > .proc_handler = proc_dointvec_minmax, > .extra1 = &zero, > .extra2 = &one_hundred, > }, My comment/question was more abstract and focusing on the comparison to vfs_cache_pressure. :P > > -- > 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 -- 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