From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932113AbcFINcV (ORCPT ); Thu, 9 Jun 2016 09:32:21 -0400 Received: from gum.cmpxchg.org ([85.214.110.215]:58776 "EHLO gum.cmpxchg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932069AbcFINcT (ORCPT ); Thu, 9 Jun 2016 09:32:19 -0400 Date: Thu, 9 Jun 2016 09:32:05 -0400 From: Johannes Weiner To: Minchan Kim Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , Rik van Riel , Mel Gorman , Andrea Arcangeli , Andi Kleen , Michal Hocko , Tim Chen , kernel-team@fb.com Subject: Re: [PATCH 01/10] mm: allow swappiness that prefers anon over file Message-ID: <20160609133205.GA11719@cmpxchg.org> References: <20160606194836.3624-1-hannes@cmpxchg.org> <20160606194836.3624-2-hannes@cmpxchg.org> <20160607002550.GA26230@bbox> <20160607141818.GE9978@cmpxchg.org> <20160608000632.GA27258@bbox> <20160608155812.GC6727@cmpxchg.org> <20160609010107.GF28620@bbox> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160609010107.GF28620@bbox> User-Agent: Mutt/1.6.1 (2016-04-27) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 09, 2016 at 10:01:07AM +0900, Minchan Kim wrote: > A system has big HDD storage and SSD swap. > > HDD: 200 IOPS > SSD: 100000 IOPS > From https://en.wikipedia.org/wiki/IOPS > > So, speed gap is 500x. > x + 500x = 200 > If we use PCIe-SSD, the gap will be larger. > That's why I said 200 is enough to represent speed gap. Ah, I see what you're saying. Yeah, that's unfortunately a limitation in the current ABI. Extending the range to previously unavailable settings is doable; changing the meaning of existing values is not. We'd have to add another interface. > Such system configuration is already non-sense so it is okay to ignore such > usecases? I'm not sure we have to be proactive about it, but we can always add a more fine-grained knob to override swappiness when somebody wants to use such a setup in practice.