From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751691AbdIMAzb (ORCPT ); Tue, 12 Sep 2017 20:55:31 -0400 Received: from mga06.intel.com ([134.134.136.31]:46115 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751385AbdIMAza (ORCPT ); Tue, 12 Sep 2017 20:55:30 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,384,1500966000"; d="scan'208";a="311011135" From: "Huang\, Ying" To: Minchan Kim Cc: "Huang\, Ying" , Andrew Morton , , , kernel-team , "Ilya Dryomov" , Sergey Senozhatsky Subject: Re: [PATCH 4/5] mm:swap: respect page_cluster for readahead References: <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> <20170912082253.GA2875@bbox> <87ingonwpg.fsf@yhuang-dev.intel.com> <20170912233434.GA3686@bbox> Date: Wed, 13 Sep 2017 08:55:28 +0800 In-Reply-To: <20170912233434.GA3686@bbox> (Minchan Kim's message of "Wed, 13 Sep 2017 08:34:34 +0900") Message-ID: <87efrbo1rz.fsf@yhuang-dev.intel.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=ascii Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Minchan Kim writes: > On Tue, Sep 12, 2017 at 04:32:43PM +0800, Huang, Ying wrote: >> Minchan Kim writes: >> >> > 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? >> >> I think this always happen when we switch default algorithm. For >> example, if we had switched default IO scheduler, then the user scripts >> to configure the parameters of old default IO scheduler will fail. > > I don't follow what you are saying with specific example. > If kernel did it which breaks something on userspace which has worked well, > it should be fixed. No doubt. > > Even although it happened by mistakes, it couldn't be a excuse to break > new thing, either. > > Simple. Fix the regression. > > If you insist on "swap users should fix it by themselves via modification > of their script or it's not a regression", I don't want to waste my time to > persuade you any more. I will ask reverting your patches to Andrew. There is no functionality regression definitely. It may cause some performance regression for some users, which could be resolved via some scripts changing. Please don't mix them. Best Regards, Huang, Ying