[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#596577: please increase NKPT on amd64



Package: kfreebsd-image-8.1-1-amd64
Version: 8.1-5
Severity: wishlist
Tags: d-i patch

Please increase NKPT on amd64.  The maximum size of mfsroot is
correlated [1] with NKPT definition in pmap.h.

Default NKPT value on amd64 (32) results in a limit of approximately
47 MiB, which is not enough to fit netboot-gtk images.

I determined through trial and error that the limit with NKPT=44 is
slightly above 64 MiB, giving enough space for the netboot-gtk data
and a few free MiB for use during D-I run.

I believe that increasing NKPT on amd64 is harmless, as it will just
increase the size of a statically-allocated page index.  On i386,
however, it seems VERY PROBLEMATIC because of the limited VM space,
I would recommend discarding the netboot-gtk option on kfreebsd-i386.

[1] I think it's a linear relation, but I don't know the formula.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 8.1-1-amd64
Locale: LANG=ca_AD.UTF-8, LC_CTYPE=ca_AD.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages kfreebsd-image-8.1-1-amd64 depends on:
ii  freebsd-utils                 8.1-1      FreeBSD utilities needed for GNU/k
ii  kldutils                      8.1-1      tools for managing kFreeBSD module

kfreebsd-image-8.1-1-amd64 recommends no packages.

kfreebsd-image-8.1-1-amd64 suggests no packages.

-- no debconf information
--- /usr/include/machine-amd64/pmap.h	2010-07-30 21:09:37.000000000 +0200
+++ sys/amd64/include/pmap.h	2010-09-12 00:14:58.788346837 +0200
@@ -115,7 +115,7 @@
 
 /* Initial number of kernel page tables. */
 #ifndef NKPT
-#define	NKPT		32
+#define	NKPT		44
 #endif
 
 #define NKPML4E		1		/* number of kernel PML4 slots */

Reply to: