Date: Fri, 08 Mar 2024 07:54:34 -0800 From: Chris <bsd-lists@bsdforge.com> To: freebsd-stable@freebsd.org Subject: Re: KVA_PAGES Message-ID: <49139dd3c63580ad8cb85f2f3ce63b48@bsdforge.com> In-Reply-To: <Zerb8Q4h46pxt5Et@int21h> References: <Zerb8Q4h46pxt5Et@int21h>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2024-03-08 01:35, void wrote: > Hi, > > In 14-stable on amd64, what's the default value for KVA_PAGES ? > I'm asking because WINE says something about it: > > "Some ZFS tuning guides recommend setting KVA_PAGES=512 in your kernel > configuration. This is incompatible with Wine. The maximum possible > is KVA_PAGES=500, which should still be enough for ZFS." > > I can't find a KVA_PAGES setting in /usr/src/sys/amd64/conf/* Apologies if this has already been answered. But a trip to /usr/src/sys followed by a # grep -F KVA_PAGES -RH . ./conf/options.i386:KVA_PAGES opt_global.h ./i386/i386/pmap.c: * KPTmap is created that can support KVA_PAGES page table pages. ./i386/i386/pmap.c: SYSMAP(pt_entry_t *, KPTD, KPTmap, KVA_PAGES) ./i386/include/pmap.h:#define NKPDE (KVA_PAGES) /* number of page tables/pde's */ ./i386/include/pmap_nopae.h:#define KVA_PAGES (256*4) ./i386/include/pmap_pae.h:#define KVA_PAGES (512*4) HTH --Chris
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49139dd3c63580ad8cb85f2f3ce63b48>