Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1258944imu; Tue, 11 Dec 2018 16:02:48 -0800 (PST) X-Google-Smtp-Source: AFSGD/VjzicaSfrGw+Sm0mIDdxT7HpPR8wTaic/K3DdaDM/ABEr12GLV6/3b+aHcnUgcPIRuKxU9 X-Received: by 2002:a62:c683:: with SMTP id x3mr17839063pfk.10.1544572968274; Tue, 11 Dec 2018 16:02:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544572968; cv=none; d=google.com; s=arc-20160816; b=I+culKcfSZqN4L3PgG2cGaNIQY+mwVE4OcjM0wElUw3FHqYRFsEyHD0hMx8dzVXMdw qj7d0JJrMfZ4fOKge9Stbrmf4q/c2EyIkbwV5yzAfGpvdgXUI6L0BQd5eek//y5kCnkL 98c4iqzHx8836jzrvzVnfxElZb1fwgJbo9+HKepcEFaDbtBFjq5pds0rEPEVv42XctOm F9eWNh955i4o4Gx82u62M5LpAq0Oc7c1YgWJybUnR37Ea78GDpjUWpvhpueZPXsZCcAu cen8vLYl4fIHcgKSnNupBgOwVDzgbdHm7TqsLDReuRJevkD1bBA5PocbDR0JGJq8CNGE mmYg== 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:references :message-id:in-reply-to:subject:cc:to:from:date; bh=TQ1TTex57boGT8ql5vMDmQPJGeAAAdscEtJ57o6bJkM=; b=Rd2rhOjhmLD01IiEuFYwrzcMjEb26KdV8sZ4N9WoGYcTob7MIyN+a0XzJ2PIuT/ZeF tYRIiuM/Pf52yKuCDlq8tkmRXQMg76t1aLBb9ehP+F3dtYy0Q3229KWHBLBNN4A7IJK2 8C0fwQ79FCS8+IT2T6H94Cz7R0O9h7gME+xweR5isupJbVvRdLj0jfG44zjafAjO2GIv BBVPnD6kzXdt+2yC6nRVgz1Q2n0OVgjcvTXbIkCwwO85NZFUaQa2Oxty+2N0/TiXSV2+ 7SULL4IVJNBhs/dpb2q2j5TCiPGhXbQEFixrEUugvyret6P9auhoV+dXYK2Rzy5JQiaw 4KoA== 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 t75si14214992pfa.170.2018.12.11.16.02.33; Tue, 11 Dec 2018 16:02:48 -0800 (PST) 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 S1726255AbeLLAAN (ORCPT + 99 others); Tue, 11 Dec 2018 19:00:13 -0500 Received: from eddie.linux-mips.org ([148.251.95.138]:48146 "EHLO cvs.linux-mips.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726183AbeLLAAN (ORCPT ); Tue, 11 Dec 2018 19:00:13 -0500 Received: (from localhost user: 'macro', uid#1010) by eddie.linux-mips.org with ESMTP id S23992965AbeLLAAK4WVit (ORCPT ); Wed, 12 Dec 2018 01:00:10 +0100 Date: Wed, 12 Dec 2018 00:00:10 +0000 (GMT) From: "Maciej W. Rozycki" To: Shawn Rutledge cc: linux-kernel@vger.kernel.org Subject: Re: Can we drop upstream Linux x32 support? In-Reply-To: <20181211203812.GA14983@i7.vpn> Message-ID: References: <20181211203812.GA14983@i7.vpn> User-Agent: Alpine 2.21 (LFD 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 11 Dec 2018, Shawn Rutledge wrote: > I like the idea of x32 in theory: any machine with 4GB or less of memory > for sure does not really need to waste any precious space storing 64-bit > pointers; and even if more memory is available, software that needs to > access more than 4GB per process is somewhat rare (as it should be). You can't mmap(2) files the size of which exceeds the size of the 32-bit user address space with an ILP32 ABI though, regardless of how much physical memory a given system supports or has actually installed. Also you can have a process's VM size exceed the 32-bit user address space where swap files are used, e.g. I have a system with 3GiB of DRAM installed and as much swap space available, where the amount of memory consumed by a process sometimes exceeds 4GiB -- it's enough to open a couple of web pages at once in a browser these days to get there (don't ask me what it uses all that memory for). So there are still use cases for an LP64 ABI even for systems the whole physical memory of which can be handled with 32-bit addressing. Maciej