Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3978613imm; Tue, 11 Sep 2018 05:13:30 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZC/ifw0K8HsNYVpA4GX0qyiOusW3tqRzrGiZA5riHsa4356NJ0OQkN7lUbh3w1d7ESL7xP X-Received: by 2002:a17:902:b089:: with SMTP id p9-v6mr26854308plr.254.1536668009972; Tue, 11 Sep 2018 05:13:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536668009; cv=none; d=google.com; s=arc-20160816; b=VZAMfV+lPLLJvti0L5LX0Z9lMt2QdM3+mlHw1/iGWSea2VM4cAnPKk5KdFGc0LtBkC vSMXtBunYD2d6edVkL4ZVoGmT8WYJM4lDklNyzvhhDaK0jNBdbR5mICWkhtOOMCPNInh D6wmeRMCq7L9K1As2Yh33Jn3FcVL9CGq+ohe5QFcLmTToDjSzSM9RMdMFX4nnO5SF3VM tSKK5Vix4Yt/CcltwveHFh+ykuHLwuzTnUOElMk3EeaM+J9puuV/N0377K+43K72WfWD fflNBgtcNgvuGYMYOwOyBq5nOpKvSSWbPvLvxdiY5IPz4SrdxvoE4F4wX9ehG3+ZMaUs l4xw== 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; bh=uPRPx+SILIST6sj/ftVaCqwJyedSuGBeIJ3uwZneTTE=; b=Xll4QcejETon6WricvKmEJRZxLaJMahSz+FlQrPf3/TWK2uZSfzyBBkbdXY1Z53Myy lyktNCUoMo/jwT457TMD4OWxPPPE3BpjVMKxdql12kXaVAY5mf30bX/eDhJPTLmqxNHp WHd5uHAy0ofLM+BzdyEfE/5XROCBuCP/SaV6xp2sT8IrrhHl/ZEAS08L1wke+VPJGlNS unB6WnS9jGzeMGEc0mEvfw7CoRGs8WRvpDuWmrZsk7KS7KTS/5xfO4AZcJvATVv80cFb ScJJGPzYyzAd4UfMsIvea3u8KwOv/UYABYDUBCZaxTNErv4D0trnzALC1KB/eUqJSLI2 0gnQ== 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 n37-v6si8732208pgb.43.2018.09.11.05.13.05; Tue, 11 Sep 2018 05:13:29 -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 S1727746AbeIKRL2 (ORCPT + 99 others); Tue, 11 Sep 2018 13:11:28 -0400 Received: from mx2.suse.de ([195.135.220.15]:60896 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726678AbeIKRL1 (ORCPT ); Tue, 11 Sep 2018 13:11:27 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 16E5FAFC3; Tue, 11 Sep 2018 12:12:23 +0000 (UTC) Date: Tue, 11 Sep 2018 14:12:22 +0200 From: Joerg Roedel To: Meelis Roos Cc: Thomas Gleixner , Linux Kernel list , linux-mm@kvack.org, Andrea Arcangeli , Linus Torvalds Subject: Re: 32-bit PTI with THP = userspace corruption Message-ID: <20180911121128.ikwptix6e4slvpt2@suse.de> References: <20180830205527.dmemjwxfbwvkdzk2@suse.de> <20180831070722.wnulbbmillxkw7ke@suse.de> <20180911114927.gikd3uf3otxn2ekq@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170421 (1.8.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 11, 2018 at 02:58:10PM +0300, Meelis Roos wrote: > The machines where I have PAE off are the ones that have less memory. > PAE is off just for performance reasons, not lack of PAE. PAE should be > present on all of my affected machines anyway and current distributions > seem to mostly assume 686 and PAE anyway for 32-bit systems. Right, most distributions don't even provide a non-PAE kernel for their users anymore. How big is the performance impact of using PAE over legacy paging? It shouldn't be too big because the top-level of the page-table only has 4 entries and is completly cached in the CPU. This makes %cr3 switches slower, but the page-walk itself still only needs 2 memory accesses. The page-table entries are also 8 bytes instead of 4 bytes, so that there is less locality in page-walks and probably a higher cache-miss rate. Regards, Joerg