Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1755199imm; Wed, 1 Aug 2018 23:59:02 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd1f+yTsrh182qoqaT5DSUAQu9uoKYp1Y00hNHPKEoIpkO6L+ohRKa5h7cGuMviNQ90x99z X-Received: by 2002:a65:5bc4:: with SMTP id o4-v6mr1484592pgr.448.1533193142100; Wed, 01 Aug 2018 23:59:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533193142; cv=none; d=google.com; s=arc-20160816; b=vDh/9PPPVN8MGGXlr+m+A9z24m23pZqVHxYZ0cQhLqzgyARA3cr3jaF6iozk45+0Hw 2OIDq7jDixO5RhhKxu7vKdWkodR4HTgemZ7wV/8Rxyu372vlqZ9eykNF4jI+D9TnAgpP 46PVp50gspkBo1nS1mWrdurzaGOcHb0PIRWQHp3e7pJYdydqudtJxB8slDzNgNSB7ekh mzrW4w+BIPNmmYHoBBGHyv00YjROwY8frleH8TLZWnEy7qmwbVci5EIHDohsspaJ2Elb Z6n4Ha1tmP59pquBvnlqqO97RTLg8CIVhD1kCD4D3UZl9putXwBwy8+jdQ1MjgHT5ASI U+4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=6IxzyrtyMjeh63IZQ4R+pmsgo7Lp5JTvmA78M1RvNSU=; b=rb5fbCZrnP59yuah4+UxQrDTFpXbcLW30g4Iz07grKuPna2gJUbNU517auJFEF9W5v PmRuDDq2R2n0ngx3mO+ko7g+z+khrWGf2PhkmtXcJancPCg3OkZzF3NJfG6IlygGKknF W+e9NzQ1o83jc8eOenopHnGgalUHFZWCoQuKL5UmAKGrgoPPLvOR97FCPuPZhx7bAIof DSI2D5BggL4lqRoYy56oNtpmq/NX28I5cWyzM+RODvwB2Bm9MSWClaSG52U3gUXsZeN+ aWUipGRVtayNWsbLF4GsSCxSoj7tqx3fENiTxrv/ZXHdwOX7/c5LWlATHvaKMjeOVNPO q8Fw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n7-v6si1207628pgm.612.2018.08.01.23.58.47; Wed, 01 Aug 2018 23:59:02 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727278AbeHBIrR (ORCPT + 99 others); Thu, 2 Aug 2018 04:47:17 -0400 Received: from seldsegrel01.sonyericsson.com ([37.139.156.29]:8325 "EHLO SELDSEGREL01.sonyericsson.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726145AbeHBIrR (ORCPT ); Thu, 2 Aug 2018 04:47:17 -0400 Subject: Re: [PATCH 2/9] mm: workingset: tell cache transitions from workingset thrashing To: Ingo Molnar , Peter Zijlstra , Andrew Morton , Linus Torvalds , Johannes Weiner CC: Tejun Heo , Suren Baghdasaryan , Daniel Drake , Vinayak Menon , Christopher Lameter , Mike Galbraith , Shakeel Butt , , , , References: <20180801151308.32234-1-hannes@cmpxchg.org> <20180801151308.32234-3-hannes@cmpxchg.org> From: peter enderborg Message-ID: Date: Thu, 2 Aug 2018 08:57:31 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180801151308.32234-3-hannes@cmpxchg.org> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Language: en-GB Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/01/2018 05:13 PM, Johannes Weiner wrote: > diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h > index e34a27727b9a..7af1c3c15d8e 100644 > --- a/include/linux/page-flags.h > +++ b/include/linux/page-flags.h > @@ -69,13 +69,14 @@ > */ > enum pageflags { > PG_locked, /* Page is locked. Don't touch. */ > - PG_error, > PG_referenced, > PG_uptodate, > PG_dirty, > PG_lru, > PG_active, > + PG_workingset, > PG_waiters, /* Page has waiters, check its waitqueue. Must be bit #7 and in the same byte as "PG_locked" */ > + PG_error, > PG_slab, > PG_owner_priv_1, /* Owner use. If pagecache, fs may use*/ > PG_arch_1, > @@ -280,6 +281,8 @@ PAGEFLAG(Dirty, dirty, PF_HEAD) TESTSCFLAG(Dirty, dirty, PF_HEAD) Any reason why the PG_error was moved? And dont you need to do some handling of this flag in proc/fs/page.c ? Some KFP_WORKINGSET ?