From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx185.postini.com [74.125.245.185]) by kanga.kvack.org (Postfix) with SMTP id A4E1A6B00BA for ; Wed, 22 May 2013 09:52:44 -0400 (EDT) From: Jeff Moyer Subject: Re: [RFC PATCH 02/02] swapon: add "cluster-discard" support References: <398ace0dd3ca1283372b3aad3fceeee59f6897d7.1369084886.git.aquini@redhat.com> <519AC7B3.5060902@gmail.com> <20130521102648.GB11774@x2.net.home> <519BD640.4040102@gmail.com> <20130521211300.GE20178@optiplex.redhat.com> <519BEED7.6030605@gmail.com> Date: Wed, 22 May 2013 09:52:34 -0400 In-Reply-To: <519BEED7.6030605@gmail.com> (KOSAKI Motohiro's message of "Tue, 21 May 2013 18:01:59 -0400") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-linux-mm@kvack.org List-ID: To: KOSAKI Motohiro Cc: Rafael Aquini , Karel Zak , linux-kernel@vger.kernel.org, linux-mm@kvack.org, akpm@linux-foundation.org, hughd@google.com, shli@kernel.org, riel@redhat.com, lwoodman@redhat.com, mgorman@suse.de KOSAKI Motohiro writes: >> Instead of reverting and renaming --discard, what about making it accept an >> optional argument, so we could use --discard (to enable all thing and keep >> backward compatibility); --discard=cluster & --discard=batch (or whatever we >> think it should be named). I'll try to sort this approach out if you folks think >> it's worthwhile. > > Optional argument looks nice, at least to me. > > But hmm.. > > "cluster" and "batch" describes current kernel implementation, not user visible effect. > Usually I suggest to pick up a word from man pages because it describe user visible action. > e.g. --discard=freed-pages or --discard=io or --discard=swapon or --discard=once, etc.. > > But this is not strong opinion. You can ignore it. I don't think I have good English sense. :-) I like discard=swapon. For the fine-grained discards, I don't have a strong opinion, but I guess I'd lean towards freed-pages. Cheers, Jeff -- 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