Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1731314

Re: [PATCH 4/5] mm:swap: respect page_cluster for readahead

From "Huang\, Ying" <ying.huang@intel.com>
Newsgroups linux.kernel
Subject Re: [PATCH 4/5] mm:swap: respect page_cluster for readahead
Date 2017-09-13 03:00 +0200
Message-ID <up4c2-bu-3@gated-at.bofh.it> (permalink)
References (6 earlier) <uoOgW-6V5-11@gated-at.bofh.it> <uoOqB-7dv-3@gated-at.bofh.it> <uoOJX-7k7-7@gated-at.bofh.it> <uoOTD-7nd-11@gated-at.bofh.it> <up2WC-7W2-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Minchan Kim <minchan@kernel.org> writes:

> On Tue, Sep 12, 2017 at 04:32:43PM +0800, Huang, Ying wrote:
>> Minchan Kim <minchan@kernel.org> 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

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH 4/5] mm:swap: respect page_cluster for readahead Minchan Kim <minchan@kernel.org> - 2017-09-12 04:40 +0200
  Re: [PATCH 4/5] mm:swap: respect page_cluster for readahead "Huang\, Ying" <ying.huang@intel.com> - 2017-09-12 07:30 +0200
    Re: [PATCH 4/5] mm:swap: respect page_cluster for readahead Minchan Kim <minchan@kernel.org> - 2017-09-12 08:30 +0200
      Re: [PATCH 4/5] mm:swap: respect page_cluster for readahead "Huang\, Ying" <ying.huang@intel.com> - 2017-09-12 08:50 +0200
        Re: [PATCH 4/5] mm:swap: respect page_cluster for readahead Minchan Kim <minchan@kernel.org> - 2017-09-12 09:00 +0200
          Re: [PATCH 4/5] mm:swap: respect page_cluster for readahead "Huang\, Ying" <ying.huang@intel.com> - 2017-09-12 09:30 +0200
            Re: [PATCH 4/5] mm:swap: respect page_cluster for readahead Minchan Kim <minchan@kernel.org> - 2017-09-12 10:00 +0200
              Re: [PATCH 4/5] mm:swap: respect page_cluster for readahead "Huang\, Ying" <ying.huang@intel.com> - 2017-09-12 10:10 +0200
                Re: [PATCH 4/5] mm:swap: respect page_cluster for readahead Minchan Kim <minchan@kernel.org> - 2017-09-12 10:30 +0200
                Re: [PATCH 4/5] mm:swap: respect page_cluster for readahead "Huang\, Ying" <ying.huang@intel.com> - 2017-09-12 10:40 +0200
                Re: [PATCH 4/5] mm:swap: respect page_cluster for readahead Minchan Kim <minchan@kernel.org> - 2017-09-13 01:40 +0200
                Re: [PATCH 4/5] mm:swap: respect page_cluster for readahead "Huang\, Ying" <ying.huang@intel.com> - 2017-09-13 03:00 +0200

csiph-web