Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp281283imm; Tue, 3 Jul 2018 19:12:50 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeJdzGs6+VSzLUPGY4ROHLKdGAA5sr2G36pQ3vlc/qyRU4tkPN6LaY1wcxYZmliL7Sc/Grf X-Received: by 2002:a17:902:8607:: with SMTP id f7-v6mr154367plo.138.1530670370784; Tue, 03 Jul 2018 19:12:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530670370; cv=none; d=google.com; s=arc-20160816; b=w+GWkC5Bt8v+BMx3V5ZQK6ii7bmNnh8qZyGG4KCXg7urdGca/OqhOsWeYrpF8t67Rl Zzb5AsVVTWpQYpNX9CNTjOib39/GPv8DbdcWcmiSPAd3iw351hC1R+CzFDuzU5ciljjn NFDqgdQZmvCVDkZB4/730JW0GXsjpa6oUfhpSaT+QqtaR4NMwu2wVwq1bC8kZNnoWo/I eJrib87ia1zSt0sipBO97XzcSsqKslpPC/MwgeyQGJBSJlsPThAVROGeYViNHPk8opXL xqCzllxOiFaDiUGvyRRZS9iJQnQs88fzYsZkiCc/ChbxnAMUM+YaRgvDAmAr0MiN/eqf qxew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=ceqP5mxuI7bg8UcgLhrWNYxZyAjv7uvgRju9/kvOU/E=; b=jLFgAKEqKbabDyDLMm53eSc2WoPOrfp5xb3uqcB4PMHZdh1LG5HM5YJ5fxER0n0r9h QEztt+UbhyatIMIF2yWzOHWT/QanmSfdJWwRCuFcyTqjpZjH5HrJH5YkfvPg5KUvaBWJ ZqJ3Wx4taaxqzvVW/qz77rRODtdHQJVQWPvo9ZCXFTcMrfWl0c7VU8i/a/DsFqKvupfX d6c58uyir57geVSqWuloifScBEOxEydrjkWMNwqbEcUxEq92VirXIl3R4b+NXCMSwjUe G1qiUUwbHiNRgMH5Qgv60EKKvQIeYbHOruZqjscJBpFpuCaFZTynV899UkDgAig8Ngr5 eD5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Q1m2QqzI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a21-v6si2221753pls.237.2018.07.03.19.12.36; Tue, 03 Jul 2018 19:12:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Q1m2QqzI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932876AbeGDCL7 (ORCPT + 99 others); Tue, 3 Jul 2018 22:11:59 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:37838 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932739AbeGDCL6 (ORCPT ); Tue, 3 Jul 2018 22:11:58 -0400 Received: by mail-pl0-f66.google.com with SMTP id 31-v6so1890291plc.4 for ; Tue, 03 Jul 2018 19:11:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=ceqP5mxuI7bg8UcgLhrWNYxZyAjv7uvgRju9/kvOU/E=; b=Q1m2QqzICakk9bqEHriDbvLB5FSjNDvuKHmrRa13AYvVgYYSFbtH3tXjid4kPhzrRo c3r5gU2+XAHsPR7YfAYGu0PquEmuNaxegAf+QdlXMQjnFDp03Kb33H0dK5FhcIrnilK4 T+lVqgwN78g3f9kn7y559a9VVIctTTNgma3rqdLNa6zuYMRbsT5Upe1oH9yeQ887DGlc iSwrjDsJe8dDcGqHlXyxjHtXiB7v6nysnDTfqIBqXLp8NeiRNVH4acIa9w1iGJ3pnwfp DPcinmBpk9RTLdcmoNpguy9VOA5AGdo5x6Q25fo8ouyoxMXAcZklpTKfJFk2/fnuwdas sdSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=ceqP5mxuI7bg8UcgLhrWNYxZyAjv7uvgRju9/kvOU/E=; b=N5xPsltNn3t04B1VOXTuc+CUi2ZaoDU8n1k5lUOp93HhpQLT1oHGt0QaRs7EhFBOtR pU0+P3K+jyR/y0CnRfL+DAdy2MCu5xC5jZ5QjlH4fAmvbhXn4sDfkYDoM4QO+8AgcVJ8 h9aLzC97K4NsfLjGMjqKp4UfUy/uPAV6gVcSB488IFcYRlXxYC/0H6oLF2D9ICpsvvfP uAT6SBZH1cq5hxpS2yd2diHTIGI+7rQbPsprJC7tS1xREdTNTaj6lyKsYGlNEjB/h1rA JSGdqg9BHO+/vjngh6yP0sJef2K+9iHWkaQs7ZvvzWCD7HK0Q7L9dovYhl5hhuZo3GHt b/vQ== X-Gm-Message-State: APt69E3R1qCGfCNUwLmf6xYpI7DTaZmliU2IvSYePob9cIJIxlxFA+m1 EKLc7pnLqoDB5x7ozTwLkLVDwmBp X-Received: by 2002:a17:902:6b86:: with SMTP id p6-v6mr132354plk.75.1530670317661; Tue, 03 Jul 2018 19:11:57 -0700 (PDT) Received: from localhost ([175.223.14.150]) by smtp.gmail.com with ESMTPSA id l11-v6sm3625988pff.50.2018.07.03.19.11.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Jul 2018 19:11:56 -0700 (PDT) Date: Wed, 4 Jul 2018 11:11:53 +0900 From: Sergey Senozhatsky To: "Huang, Ying" , Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Hugh Dickins , "Kirill A. Shutemov" , Daniel Jordan Subject: Re: [PATCH -mm -v4 00/21] mm, THP, swap: Swapout/swapin THP in one piece Message-ID: <20180704021153.GA3346@jagdpanzerIV> References: <20180622035151.6676-1-ying.huang@intel.com> <20180627215144.73e98b01099191da59bff28c@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180627215144.73e98b01099191da59bff28c@linux-foundation.org> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (06/27/18 21:51), Andrew Morton wrote: > On Fri, 22 Jun 2018 11:51:30 +0800 "Huang, Ying" wrote: > > > This is the final step of THP (Transparent Huge Page) swap > > optimization. After the first and second step, the splitting huge > > page is delayed from almost the first step of swapout to after swapout > > has been finished. In this step, we avoid splitting THP for swapout > > and swapout/swapin the THP in one piece. > > It's a tremendously good performance improvement. It's also a > tremendously large patchset :( Will zswap gain a THP swap out/in support at some point? mm/zswap.c: static int zswap_frontswap_store(...) ... /* THP isn't supported */ if (PageTransHuge(page)) { ret = -EINVAL; goto reject; } -ss