Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp311471imm; Tue, 3 Jul 2018 20:00:53 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcfFZ0vvm7p5djDBwMOdfLSH6JWjT6MDX52ZWEJP+mr9LW90YYw3G6HUKyHCPxZ0f6ibq60 X-Received: by 2002:a62:8995:: with SMTP id n21-v6mr271833pfk.83.1530673253128; Tue, 03 Jul 2018 20:00:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530673253; cv=none; d=google.com; s=arc-20160816; b=Rwanvb8W7Ue/BoW58Q0czXxJBb8imMqHb+G14zpXgWTar2ohHBWRYxYJGylTpL/4Ro 0V8tZIGjgS2koxR9NV8wBksen06TZPjvT6+W3WspB1Y/4s59kLeASZZ11R6K2T8rAYC5 DUN4mC4joGwE45GE3+9rjm04BQDPnASekU6k3Bp7N5HVPTY4rIJiLy1aOQO0mXUIqRly QEGCpyY2xeoaavvnV8WFfKqAkSQU8l7sFCeuaAFf/7gwYjuDq5i64atE0jeLGZuiO4Ua 0Ye49N1N1Sx2+RNb6BCIybl8TV1baUMLLg9ZmtMlMT2lz0/B5ZWEkJLNbd+NdBB1SrRW xnsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from :arc-authentication-results; bh=f3LJ2NWjC7cCLqDrTgW0b0IzJytMWaL4bz92rIo0IAo=; b=V2tu+yGO0ROsmrAmhwBUnombJqmLhgtc89TpnCse/Yxr1kqZnuFLkByV4f+w8IpW/d /MvTQV/0r4oXZqMORjpnUxFr1NTpvINZwZJMM5t4Ksqr350Elyoldh8sAOB5sxxyCzJ4 XsYAZrYzHP93/aH1JAlt+5zPPagBaIHkIAAiBc7hlfRS6t9X3gSv5iHEVo/1vNUqx9P5 yff4kCij/pTeGYYiyDLLGfb/o6dlWKtlVwvtRJQ5GGYkzC1toVnuLWFRqbZjYKah861N qaK6WhKFUYcsqY8EKQ2hA3g3bIZ/WhdbvPtwt0iupHMoNvLOFhZHaj7lKhPPbsEZm2W+ C+cQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d37-v6si2500428pla.85.2018.07.03.20.00.37; Tue, 03 Jul 2018 20:00:53 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753492AbeGDC76 (ORCPT + 99 others); Tue, 3 Jul 2018 22:59:58 -0400 Received: from mga09.intel.com ([134.134.136.24]:57263 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752916AbeGDC75 (ORCPT ); Tue, 3 Jul 2018 22:59:57 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Jul 2018 19:59:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,306,1526367600"; d="scan'208";a="72071482" Received: from yhuang-dev.sh.intel.com (HELO yhuang-dev) ([10.239.13.118]) by orsmga002.jf.intel.com with ESMTP; 03 Jul 2018 19:59:55 -0700 From: "Huang\, Ying" To: Sergey Senozhatsky Cc: Andrew Morton , , , Hugh Dickins , "Kirill A. Shutemov" , Daniel Jordan Subject: Re: [PATCH -mm -v4 00/21] mm, THP, swap: Swapout/swapin THP in one piece References: <20180622035151.6676-1-ying.huang@intel.com> <20180627215144.73e98b01099191da59bff28c@linux-foundation.org> <20180704021153.GA3346@jagdpanzerIV> <878t6rvj12.fsf@yhuang-dev.intel.com> <20180704022734.GB3346@jagdpanzerIV> Date: Wed, 04 Jul 2018 10:59:55 +0800 In-Reply-To: <20180704022734.GB3346@jagdpanzerIV> (Sergey Senozhatsky's message of "Wed, 4 Jul 2018 11:27:34 +0900") Message-ID: <87zhz7u2ms.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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sergey Senozhatsky writes: > 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. Thanks! > 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. Yes. I think so too. Best Regards, Huang, Ying