Re: KVA_PAGES
- In reply to: void : "KVA_PAGES"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 08 Mar 2024 15:54:34 UTC
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