Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp292227imm; Tue, 3 Jul 2018 19:29:50 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdMG8g3L0+j94RSkYkVtN7jHWzpoQeAKxFeh+7vvqn7Ir58Qkdl5BfJ46hguWZ1c5PURVuP X-Received: by 2002:a62:748:: with SMTP id b69-v6mr179605pfd.177.1530671390546; Tue, 03 Jul 2018 19:29:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530671390; cv=none; d=google.com; s=arc-20160816; b=wX/KdItfUihVgMebBZoeEqq8cKYycL2IFMy8rl2QUj9mlET9YG5QD0P7zLy4ZEh0bz G4maKgWESIFGascN/9n2zMjflEy1lSnXxZdhAjW/2+ol2zZTK8HSCBGf7XZoH4Qc5aFd J+LPKe1r4Dq9i00hRbpUCmLfjCd82bj/KN+SeEPPBWiHSyJiaDmMegcid/wx6hH12MDl kn/kupR/laV2XJSm3TfWnHfYLkrOBLx3EL+mu5xnTNwRGAKzzdFMnR8F0/Eg+dj6eqG2 nmLLCO0I5q8pRumvTXrowhPYPxovECQUis4mtA/3V2rOVUuFVEEg6DU0ute0+IQPwNtB vwOw== 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=vGrGWSaef8Er5LE0M975lNcBLCNbdhjN9yKgwC/4sVI=; b=vkAluZ1DcwTlakzrJHJyIyEOCOGygPCconKNoX+aY4hFWteX54Dz74RUI86svP+ERb D0i0ONF9jsDXTH/bNwUlbCKtNslO0PSDPuqPaPlM47vZ16nKlAtEruGoKnJf8opVjYgL zmkZmJFsRjt9KPRzXitdNlxT9IFa+F/7jrP/U3eN/UWmnKXdiHfvsDTAQ+eWjSY3ZLhe aN1EzojHHlKoxT1lMJOdilB5czb7lWfOH8FCqf/nB97KsiI+hTuj1CR2ruXxMpck6Pw3 n8BqSjmL46TBtg9+dUhPlpqqSU7KZ6lY0MSukjxAEbeLZYdgEklxbSiCIKZgzAI0g1nG UtQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nnD2eelI; 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 t5-v6si2541942plz.286.2018.07.03.19.29.36; Tue, 03 Jul 2018 19:29: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=nnD2eelI; 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 S932924AbeGDC1l (ORCPT + 99 others); Tue, 3 Jul 2018 22:27:41 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:43631 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932109AbeGDC1j (ORCPT ); Tue, 3 Jul 2018 22:27:39 -0400 Received: by mail-pl0-f68.google.com with SMTP id c41-v6so1902681plj.10 for ; Tue, 03 Jul 2018 19:27:39 -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=vGrGWSaef8Er5LE0M975lNcBLCNbdhjN9yKgwC/4sVI=; b=nnD2eelIYnk50EA50fOKy3HM48cRASvxv50tEZWTYIeNGANHxWGufJjo2tAnW0dDZ5 4Rt6HViDf52bqFFRB75jA5uK6eE8k3dRrc5Z1OJ9AgUEWBJQbNxaVBTKNvDM+vLOQFdr 7WgvT825PWVOx5aHU53K5iN5EuJwHVf9fHAdf09/jvUPufJ8c3DxLWFP1ej1UG/aM3Vw EDxlNblL4M/8ZGIeu3RSPy+L+HUZ+c0gGIXsCTCwq/FSqeQS02owgQf18BN5CcfSShZs nazUx1vwyV5E2uVpgWAq0NMlyWZi3HNJcjHMWfcwbNVgGEEBEZzKo6uaS1aUlYxkzrHN yCSg== 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=vGrGWSaef8Er5LE0M975lNcBLCNbdhjN9yKgwC/4sVI=; b=AIZqc0OcP/Smf1fNsTigUdZDIuKrRKlVIyKSEMBjNI0KlT5EMWJ1oVZUxC+SDaQMLS WC/aEeieBMZeCbE6jeExBKtwuC5fhEEd0qpJFMTWu479Q45TtCtfsvOSGLFVoIJ5rgHn gFr9QK84yyLlxW0oj7c0rKS6SG6glVcjV+APcHwF0CSqAOw4R5nMOym4+qBmi3ZU6oG9 ga4RbVkridElkkUcsMQdOeEJalgdmn6VcShA9NLesn/Yj69IutCkSBhC+Vuk6ohCs25C ozg1nYRlXmZHBQwmOUtI/i/DnxBr+ElE2DKsmyPkpoGlQn+Szc+tT/eTcc6tfdDfTjBN kTmg== X-Gm-Message-State: APt69E2HB3kC4HFM+5mABul+OgZx6hk0J235RYViLqxemEEHIGdNIhkL eSVup4azdeKLRlWHSS5WZgw= X-Received: by 2002:a17:902:64c2:: with SMTP id y2-v6mr179566pli.53.1530671259134; Tue, 03 Jul 2018 19:27:39 -0700 (PDT) Received: from localhost ([175.223.14.150]) by smtp.gmail.com with ESMTPSA id l8-v6sm5423653pfb.102.2018.07.03.19.27.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Jul 2018 19:27:37 -0700 (PDT) Date: Wed, 4 Jul 2018 11:27:34 +0900 From: Sergey Senozhatsky To: "Huang, Ying" Cc: Sergey Senozhatsky , Andrew Morton , 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: <20180704022734.GB3346@jagdpanzerIV> References: <20180622035151.6676-1-ying.huang@intel.com> <20180627215144.73e98b01099191da59bff28c@linux-foundation.org> <20180704021153.GA3346@jagdpanzerIV> <878t6rvj12.fsf@yhuang-dev.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <878t6rvj12.fsf@yhuang-dev.intel.com> 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 (07/04/18 10:20), Huang, Ying wrote: > > 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; > > } > > That's not on my TODO list. Do you have interest to work on this? I'd say I'm interested. Can't promise that I'll have enough spare time any time soon, tho. The numbers you posted do look fantastic indeed, embedded devices [which normally use zswap/zram quite heavily] _probably_ should see some performance improvement as well once zswap [and may be zram] can handle THP. -ss