From nobody Fri Mar 8 15:54:34 2024 X-Original-To: freebsd-stable@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TrrMs64kCz5DNDj for ; Fri, 8 Mar 2024 15:54:49 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Received: from udns.ultimatedns.net (udns.ultimatedns.net [24.113.41.81]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "ultimatedns.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TrrMr6FVZz4kmT for ; Fri, 8 Mar 2024 15:54:48 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Authentication-Results: mx1.freebsd.org; dkim=none; spf=none (mx1.freebsd.org: domain of bsd-lists@bsdforge.com has no SPF policy when checking 24.113.41.81) smtp.mailfrom=bsd-lists@bsdforge.com Received: from ultimatedns.net (localhost [127.0.0.1]) by udns.ultimatedns.net (8.16.1/8.16.1) with ESMTP id 428FsZMc076074 for ; Fri, 8 Mar 2024 07:54:41 -0800 (PST) (envelope-from bsd-lists@bsdforge.com) List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 Date: Fri, 08 Mar 2024 07:54:34 -0800 From: Chris To: freebsd-stable@freebsd.org Subject: Re: KVA_PAGES In-Reply-To: References: User-Agent: UDNSMS/17.0 Message-ID: <49139dd3c63580ad8cb85f2f3ce63b48@bsdforge.com> X-Sender: bsd-lists@bsdforge.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Bar: / X-Rspamd-Pre-Result: action=no action; module=multimap; Matched map: local_wl_ip X-Spamd-Result: default: False [0.68 / 15.00]; SUBJ_ALL_CAPS(0.68)[9]; MIME_GOOD(-0.10)[text/plain]; ONCE_RECEIVED(0.10)[]; local_wl_ip(0.00)[24.113.41.81]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-stable@freebsd.org]; R_SPF_NA(0.00)[no SPF record]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; ASN(0.00)[asn:11404, ipnet:24.113.0.0/16, country:US]; FROM_HAS_DN(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+] X-Rspamd-Queue-Id: 4TrrMr6FVZz4kmT 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