From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.3 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 78BB8C433E0 for ; Tue, 9 Feb 2021 21:33:12 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id F035564E92 for ; Tue, 9 Feb 2021 21:33:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F035564E92 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 6F5A86B0005; Tue, 9 Feb 2021 16:33:11 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 67E9B6B006C; Tue, 9 Feb 2021 16:33:11 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 40DD46B006E; Tue, 9 Feb 2021 16:33:11 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0095.hostedemail.com [216.40.44.95]) by kanga.kvack.org (Postfix) with ESMTP id 1ADF46B0005 for ; Tue, 9 Feb 2021 16:33:11 -0500 (EST) Received: from smtpin18.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id D9692181BCDA2 for ; Tue, 9 Feb 2021 21:33:10 +0000 (UTC) X-FDA: 77800030140.18.922BE0C Received: from mail-ot1-f50.google.com (mail-ot1-f50.google.com [209.85.210.50]) by imf01.hostedemail.com (Postfix) with ESMTP id 6EAD420001DB for ; Tue, 9 Feb 2021 21:33:10 +0000 (UTC) Received: by mail-ot1-f50.google.com with SMTP id r21so10381990otk.13 for ; Tue, 09 Feb 2021 13:33:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DubnR59jAY/eOT03jh9Sc1n0fr2f+9zEJ5dJmvj8mQo=; b=N0QEv+V+b8Pk7r/94W49Azdo5ySkDcPHHRLOkLJVEcPthpGjZDtBqoQ3yb3cfHB/se hxx4BDaK81wOCZLSXRB2Oe9UTvi/9sqRgRj3QqOnsxe2U5eV2CWsJHqe7AxFr3oSWWxI cR9A7EjQonGwJejyo1ibxBatzfL50pDSZHCooCZGkNX72uJRvji1qJpWNxT+UH1T+a1p 2QeRY9MWem+0qOaBfXpmT77o6hvzg2v0C1kgIWftPdhDCab2NlBw63IQGrY9gRwXMUrf QGhg0sShE7sMV5d0qr3zvIrJg9IMB7J5+XSXJUZugphojqSlmSfqlrctQkpkx9pBaYZT zWTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DubnR59jAY/eOT03jh9Sc1n0fr2f+9zEJ5dJmvj8mQo=; b=gCYR1fh4IYeXX+ncpTAjjvjIFhpni9x/JpPkBjHomDfky5Ve/bC2eBzXD7hPjUKdfL zq4S9Lnxu8V07W4ikpCDv7CPtpgiJw6Kj/AtbwwDA3qM5dduhN20Hu31Q/zNWkxlNfcZ SjjTeBFUgSxPWhOovtvqiO7hoSwUdSsz6gP5LY2CJux/a3QpPQFH7VkX9RFCCxVsSZ/B 5/Ku0FU//RhSy36hEIbH9BCAvgbqbi8e17fxpG5fQWtBFLx2xmUE8WtuD3puQBrPyzcR UqMvbEgUAhIC2Gf2zhkrjTZLlH2crDQcKplvkOdyUfOYzU2qWhU/LqoFXXmOTXzdexP6 rxKg== X-Gm-Message-State: AOAM531N88P3Zdw26kk0nKJWtex/MQXJTZfu6QhO+No8dmo9X3VMXtcF jM3mLN+JNhktHjdUH2KbQgRPukB00NHUKy5NAfBcCQ== X-Google-Smtp-Source: ABdhPJzgsrqOvA5diVA1gUUZvIRYR0Xc8yzoxRR9IHuBSuq0Wdtj0vxIz3wjTSlEQ8NGpmadCS1vGVxOg/2NiSRMExE= X-Received: by 2002:a9d:6016:: with SMTP id h22mr10236542otj.63.1612906389614; Tue, 09 Feb 2021 13:33:09 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Jesse Barnes Date: Tue, 9 Feb 2021 13:32:58 -0800 Message-ID: Subject: Re: [page-reclaim] Augmented Page Reclaim To: Yu Zhao , Sonny Rao , Jann Horn , Matthew Wilcox Cc: linux-mm@kvack.org, Linux Kernel Mailing List , page-reclaim@google.com Content-Type: text/plain; charset="UTF-8" X-Stat-Signature: hsbyt3z8zm9srrpx7qc3fy1981kxintr X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 6EAD420001DB Received-SPF: none (google.com>: No applicable sender policy available) receiver=imf01; identity=mailfrom; envelope-from=""; helo=mail-ot1-f50.google.com; client-ip=209.85.210.50 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1612906390-223869 X-Bogosity: Ham, tests=bogofilter, spamicity=0.290602, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: > ====================== > Augmented Page Reclaim > ====================== > We would like to share a work with you and see if there is enough > interest to warrant a run for the mainline. This work is a part of > result from a decade of research and experimentation in memory > overcommit at Google: an augmented page reclaim that, in our > experience, is performant, versatile and, more importantly, simple. Per discussion on IRC, maybe some additional background would help. In looking at browser workloads on Chrome OS, we found that reclaim was: 1) too expensive in terms of CPU usage 2) often making poor decisions about what to reclaim This work was mainly targeted toward improving those things, with an eye toward interactive performance for browser workloads. We have a few key tests we use for that, that measure tab switch times and number of tab discards when under memory pressure, and this approach significantly improves these (see Yu's data). We do expect this approach will also be beneficial to cloud workloads, and so are looking for people to try it out in their environments with their favorite key tests or workloads. Thanks, Jesse