From owner-freebsd-hackers Thu Aug 29 8:17:13 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BEB1837B400 for ; Thu, 29 Aug 2002 08:17:10 -0700 (PDT) Received: from sirppi.helsinki.fi (sirppi.helsinki.fi [128.214.205.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8EA0643E4A for ; Thu, 29 Aug 2002 08:17:09 -0700 (PDT) (envelope-from akoskine@cc.helsinki.fi) Received: from localhost (akoskine@localhost) by sirppi.helsinki.fi (8.11.6/8.11.4) with ESMTP id g7TFH8416539 for ; Thu, 29 Aug 2002 18:17:08 +0300 (EET DST) X-Authentication-Warning: sirppi.helsinki.fi: akoskine owned process doing -bs Date: Thu, 29 Aug 2002 18:17:08 +0300 (EET DST) From: Aaro J Koskinen To: Subject: More dynamic KVA_SPACE Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello all, I've been thinking what kind of modifications would it need to decide the KVA space size at the kernel boot time (maybe an argument to btext), instead of compile time. In theory I can't see any obstacles. Basically the approach would be simply the following: - The current KERNBASE would be moved upwards in the virtual memory, so that the kernel text/data/bss would be at the end of the kernel virtual memory. This area [KERNBASE, end] would be fixed at the compile time, and would be large enough to hold just the static segments (few MB, maybe). - All the remaining kernel VM would be below KERNBASE, and the lowest address of this area could be parametrized, and would mark the start of the KVM (the current VM_MIN_KERNEL_ADDRESS). - A lot of #define'd constants related to VM boundaries & PDE division would be based on variables initialized in the boot, also the interpretation of KERNBASE would change. Am I completely off the track? What are the main reasons behind the current KVM layout? A. -- Aaro Koskinen E-mail: aaro@iki.fi "I'm the ocean, I'm the giant undertow." http://www.iki.fi/aaro To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message