From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx201.postini.com [74.125.245.201]) by kanga.kvack.org (Postfix) with SMTP id 7C6F96B007E for ; Mon, 2 Apr 2012 10:42:32 -0400 (EDT) Received: by iajr24 with SMTP id r24so5661098iaj.14 for ; Mon, 02 Apr 2012 07:42:31 -0700 (PDT) Date: Mon, 2 Apr 2012 07:41:56 -0700 (PDT) From: Hugh Dickins Subject: Re: swap on eMMC and other flash In-Reply-To: <201204021145.43222.arnd@arndb.de> Message-ID: References: <201203301744.16762.arnd@arndb.de> <201203301850.22784.arnd@arndb.de> <201204021145.43222.arnd@arndb.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org List-ID: To: Arnd Bergmann Cc: linaro-kernel@lists.linaro.org, Rik van Riel , "linux-mmc@vger.kernel.org" , Alex Lemberg , linux-kernel@vger.kernel.org, "Luca Porzio (lporzio)" , linux-mm@kvack.org, Hyojin Jeong , kernel-team@android.com, Yejin Moon On Mon, 2 Apr 2012, Arnd Bergmann wrote: > > Another option would be batched discard as we do it for file systems: > occasionally stop writing to swap space and scanning for areas that > have become available since the last discard, then send discard > commands for those. I'm not sure whether you've missed "swapon --discard", which switches on discard_swap_cluster() just before we allocate from a new cluster; or whether you're musing that it's no use to you because you want to repurpose the swap cluster to match erase block: I'm mentioning it in case you missed that it's already there (but few use it, since even done at that scale it's often more trouble than it's worth). Hugh -- 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