NetBSD Problem Report #54254
From www@netbsd.org Fri May 31 20:36:46 2019
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 360D17A18A
for <gnats-bugs@gnats.NetBSD.org>; Fri, 31 May 2019 20:36:46 +0000 (UTC)
Message-Id: <20190531203645.5F3AA7A1E7@mollari.NetBSD.org>
Date: Fri, 31 May 2019 20:36:45 +0000 (UTC)
From: cmhanson@eschatologist.net
Reply-To: cmhanson@eschatologist.net
To: gnats-bugs@NetBSD.org
Subject: Switch 68K to 8KB pages to increase available address space
X-Send-Pr-Version: www-1.0
>Number: 54254
>Category: port-m68k
>Synopsis: Switch 68K to 8KB pages to increase available address space
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: port-m68k-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri May 31 20:40:00 +0000 2019
>Originator: Chris Hanson
>Release: netbsd-8
>Organization:
>Environment:
>Description:
In trying to build python27 from pkgsrc-2018Q3, my HP 9000/433s with 128MB of RAM and 384MB of swap running netbsd-8 panicked due to address space exhaustion.
I discussed this on the port-hp300 list and Izumi Tsutsui said that there are restrictions in the 68K pmap code that are causing this, and a simple workaround is to increase the page size to 8KB by setting PGSHIFT to 13.
I set PGSHIFT to 13 and rebuilt the kernel and it works to build python27 and everything else I've tried, so I think this should be adopted until such time as the pmap code can be revised to cover larger address spaces.
>How-To-Repeat:
Try to build python27 from pkgsrc-2018Q3 on hp300 running netbsd-8 with sufficient virtual memory; you will exhaust address space before the build completes.
>Fix:
Increase page size to 8KB by setting PGSHIFT to 13.
(Contact us)
$NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.