Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp172117pxv; Wed, 14 Jul 2021 01:01:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwufos94iYUzxMirUk7/M4Xrj8BJ3ypL7Ad4PgDFZoAI9rcu/VO7KJ1x5UooSWonyR6+lj8 X-Received: by 2002:a17:906:22d0:: with SMTP id q16mr10816966eja.248.1626249705650; Wed, 14 Jul 2021 01:01:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626249705; cv=none; d=google.com; s=arc-20160816; b=BnhN/gxzrsfQS9RUhKobIrfyd1NQaqDfcKRF9yAftSlXVJNbfsFvbT2Ha6/pniPMZi OIJg+HaZ6tvZdUWJwpWqTmA9DDF0NnWLweHWc0NrvmReCDIcdEmQ0C2hVHloz0GS7e/P w35Foz29aka0T58QJEJxawTkIpAXGOPKCgxeBZVsUU0IMktDGBHnUrjLjSGAYXsQ0iD4 G4n2k7kmwmnndGt7uAiRvstfJAF5zrACnghMoNgTrrccewX5dtXdsNqWY3a+vTmqqE41 HTe3PiMzguj0zMN/n+KFu3r90mluLRxsOLGFxS//5T3aShuzzV6rfBY9aVdLgD0YI5BB 767w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ZA2FMKo94s4usb30QHwB12/TZioc1f+l11L4qEZdChg=; b=S1+PYwvfaIEM3C2aXkL1W3t7CdfJBdCKl+YXqr4YsjOJr2qZ6vUykHb+r2Is30VAFd ZQ5Hhb8EbQ/84kZLsAngOlFZc2ftYFfgixksfg7t2PR9aDx/DHfU258Tmi0fQkvKkfmm I1EV/1YvZGk14668UtVFWgSi/oISHPqiomm7BHc1vLkRfA8U8Y21PWN/6zF8viUgojmV zwGlDqnnosx3graclhBuBpZ6u3fk0OdNP9J8KISJXAdV6RZ4UbHBLcp68q6pHNkVfyYh AwP2MzhLPnFz1t7ZLfeXJVscGun7+2LMl0M+O09ehReMXtkz27Qc04gQx5B1+oc+65hh oIrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=I5KeuLY0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dn9si1801776ejc.461.2021.07.14.01.01.23; Wed, 14 Jul 2021 01:01:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=I5KeuLY0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238376AbhGNIDM (ORCPT + 99 others); Wed, 14 Jul 2021 04:03:12 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:47896 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238287AbhGNIDL (ORCPT ); Wed, 14 Jul 2021 04:03:11 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 8EE0022823; Wed, 14 Jul 2021 08:00:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1626249619; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ZA2FMKo94s4usb30QHwB12/TZioc1f+l11L4qEZdChg=; b=I5KeuLY0FF7OsP8T86dtLC+OVmDbMIJOOwGazCjrgeU26cVGVJ/QP6YvzJsAk/JPGVeVk+ bGQaymcZeqYhc3qHGDry3Rp4jK3p9iUzXYqp3MWQn72FlwVYBJ7HH9e9IsMxXwA3kDVLiW 7tB5+RSbNEy9moFZznhpeqZajyC5YNk= Received: from suse.cz (unknown [10.100.201.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 1F2D3A3B90; Wed, 14 Jul 2021 08:00:19 +0000 (UTC) Date: Wed, 14 Jul 2021 10:00:19 +0200 From: Michal Hocko To: David Hildenbrand Cc: Evan Green , Andrew Morton , Pavel Machek , Alex Shi , Alistair Popple , Jens Axboe , Johannes Weiner , Joonsoo Kim , "Matthew Wilcox (Oracle)" , Miaohe Lin , Minchan Kim , Vlastimil Babka , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-api@vger.kernel.org Subject: Re: [PATCH v2] mm: Enable suspend-only swap spaces Message-ID: References: <20210709105012.v2.1.I09866d90c6de14f21223a03e9e6a31f8a02ecbaf@changeid> <30dddfb1-388c-a593-0987-73e821216da9@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 14-07-21 09:51:13, David Hildenbrand wrote: [...] > Anyhow, the proposal here does not sound completely crazy to me, although > it's unfortunate how we decided to mangle hibernation and swapping into the > same mechanism originally; a different interface to active "hibernation only > backends" would be cleaner than doing a "swapon ..." without swapping. Completely agreed! And I suspect that a special swap flag just digs that hole even deeper. While the flag might look simple enough now I am a bit worried this will open traps in the future. I am not saying the idea is crazy either, it is just a hack on top of the existing hack and as such it requires a very good reasoning. So far I have heard rather vague justification and I am especially curious about the "no mixing with the regular swapout" concern. It might be very well the case that there are more usecases which would benefit from it. -- Michal Hocko SUSE Labs