From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751415AbdILIW6 (ORCPT ); Tue, 12 Sep 2017 04:22:58 -0400 Received: from LGEAMRELO12.lge.com ([156.147.23.52]:35913 "EHLO lgeamrelo12.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751214AbdILIW4 (ORCPT ); Tue, 12 Sep 2017 04:22:56 -0400 X-Original-SENDERIP: 156.147.1.127 X-Original-MAILFROM: minchan@kernel.org X-Original-SENDERIP: 10.177.220.163 X-Original-MAILFROM: minchan@kernel.org Date: Tue, 12 Sep 2017 17:22:53 +0900 From: Minchan Kim To: "Huang, Ying" Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-team , Ilya Dryomov , Sergey Senozhatsky Subject: Re: [PATCH 4/5] mm:swap: respect page_cluster for readahead Message-ID: <20170912082253.GA2875@bbox> References: <1505183833-4739-1-git-send-email-minchan@kernel.org> <1505183833-4739-4-git-send-email-minchan@kernel.org> <87vakopk22.fsf@yhuang-dev.intel.com> <20170912062524.GA1950@bbox> <874ls8pga3.fsf@yhuang-dev.intel.com> <20170912065244.GC2068@bbox> <87r2vcnzme.fsf@yhuang-dev.intel.com> <20170912075645.GA2837@bbox> <87mv60nxwa.fsf@yhuang-dev.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87mv60nxwa.fsf@yhuang-dev.intel.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 12, 2017 at 04:07:01PM +0800, Huang, Ying wrote: < snip > > >> > My concern is users have been disabled swap readahead by page-cluster would > >> > be regressed. Please take care of them. > >> > >> How about disable VMA based swap readahead if zram used as swap? Like > >> we have done for hard disk? > > > > It could be with SWP_SYNCHRONOUS_IO flag which indicates super-fast, > > no seek cost swap devices if this patchset is merged so VM automatically > > disables readahead. It is in my TODO but it's orthogonal work. > > > > The problem I raised is "Why shouldn't we obey user's decision?", > > not zram sepcific issue. > > > > A user has used SSD as swap devices decided to disable swap readahead > > by some reason(e.g., small memory system). Anyway, it has worked > > via page-cluster for a several years but with vma-based swap devices, > > it doesn't work any more. > > Can they add one more line to their configuration scripts? > > echo 0 > /sys/kernel/mm/swap/vma_ra_max_order We call it as "regression", don't we?