From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-la0-f49.google.com (mail-la0-f49.google.com [209.85.215.49]) by kanga.kvack.org (Postfix) with ESMTP id 674A86B0031 for ; Tue, 1 Apr 2014 15:03:48 -0400 (EDT) Received: by mail-la0-f49.google.com with SMTP id mc6so7283388lab.36 for ; Tue, 01 Apr 2014 12:03:47 -0700 (PDT) Received: from mail-la0-x22f.google.com (mail-la0-x22f.google.com [2a00:1450:4010:c03::22f]) by mx.google.com with ESMTPS id zv8si11371395lbb.209.2014.04.01.12.03.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 01 Apr 2014 12:03:46 -0700 (PDT) Received: by mail-la0-f47.google.com with SMTP id pn19so3078394lab.34 for ; Tue, 01 Apr 2014 12:03:46 -0700 (PDT) Date: Tue, 1 Apr 2014 23:03:44 +0400 From: Cyrill Gorcunov Subject: Re: [PATCH 2/2] x86: use pv-ops in {pte,pmd}_{set,clear}_flags() Message-ID: <20140401190344.GX4872@moon> References: <1395425902-29817-1-git-send-email-david.vrabel@citrix.com> <1395425902-29817-3-git-send-email-david.vrabel@citrix.com> <533016CB.4090807@citrix.com> <20140331122625.GR25087@suse.de> <533B0301.3010507@citrix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: Linus Torvalds , Pavel Emelyanov Cc: David Vrabel , Mel Gorman , Steven Noonan , Rik van Riel , Andrew Morton , Ingo Molnar , Peter Zijlstra , linux-mm On Tue, Apr 01, 2014 at 11:43:11AM -0700, Linus Torvalds wrote: > On Tue, Apr 1, 2014 at 11:18 AM, David Vrabel wrote: > > > > I don't think it's sufficient to avoid collisions with bits used only > > with P=0. The original value of this bit must be retained when the > > _PAGE_NUMA bit is set/cleared. > > > > Bit 7 is PAT[2] and whilst Linux currently sets up the PAT such that > > PAT[2] is a 'don't care', there has been talk up adjusting the PAT to > > include more types. So I'm not sure it's a good idea to use bit 7. > > > > What's wrong with using e.g., bit 62? And not supporting this NUMA > > rebalancing feature on 32-bit non-PAE builds? > > Sounds good to me, but it's not available in 32-bit PAE. The high bits > are all reserved, afaik. > > But you'd have to be insane to care about NUMA balancing on 32-bit, > even with PAE. So restricting it to x86-64 and using the high bits (I > think bits 52-62 are all available to SW) sounds fine to me. > > Same goes for soft-dirty. I think it's fine if we say that you won't > have soft-dirty with a 32-bit kernel. Even with PAE. Well, at the moment we use soft-dirty for x86-64 only in criu but there were plans to implement complete 32bit support as well. While personally I don't mind dropping soft-dirty for non x86-64 case, I would like to hear Pavel's opinion, Pavel? (n.b, i'm still working on cleaning up _page bits, it appeared to be harder than I've been expecting). -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org