Index | Thread | Search

From:
Kirill A. Korinsky <kirill@korins.ky>
Subject:
macppc: increase MAXDSIZ to 3Gb
To:
OpenBSD tech <tech@openbsd.org>
Date:
Sun, 25 Oct 2026 01:02:30 +0200

Download raw body.

Thread
tech@,

I'd like to increase MAXDSIZ at macppc to 3Gb which allows me to build
devel/dub, which, otherwise, fails as:

Building dub using /usr/local/bin/gdmd (dflags: ["-g", "-O", "-w"]), this may take a while...
Command `["/usr/local/bin/gdmd", "-of/usr/ports/pobj/dub-1.40.0/dub-1.40.0/bin/dub", "-I/usr/ports/pobj/dub-1.40.0/dub-1.40.0/source", "-version=DubUseCurl", "-version=DubApplication", "-g", "-O", "-w", "@build-files.txt"]` failed, output was: virtual memory exhausted: Cannot allocate memory

Ok?

Index: sys/arch/macppc/include/vmparam.h
===================================================================
RCS file: /cvs/src/sys/arch/macppc/include/vmparam.h,v
diff -u -p -r1.33 vmparam.h
--- sys/arch/macppc/include/vmparam.h	30 Jan 2024 16:43:22 -0000	1.33
+++ sys/arch/macppc/include/vmparam.h	24 Oct 2026 22:59:23 -0000
@@ -46,7 +46,7 @@
 #endif
 
 #ifndef	MAXDSIZ
-#define	MAXDSIZ		(2UL*1024*1024*1024)	/* max data size */
+#define	MAXDSIZ		(3UL*1024*1024*1024)	/* max data size */
 #endif
 
 #ifndef BRKSIZ


-- 
wbr, Kirill