From owner-freebsd-arch@FreeBSD.ORG Wed May 16 14:42:09 2007 Return-Path: X-Original-To: freebsd-arch@freebsd.org Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4FB5016A406 for ; Wed, 16 May 2007 14:42:09 +0000 (UTC) (envelope-from larry@fantasyclub.ru) Received: from smtp-19.masterhost.ru (smtp-19.masterhost.ru [83.222.24.119]) by mx1.freebsd.org (Postfix) with SMTP id 8127D13C480 for ; Wed, 16 May 2007 14:42:06 +0000 (UTC) (envelope-from larry@fantasyclub.ru) Received: (qmail 73239 invoked from network); 16 May 2007 14:15:07 -0000 Received: from fox9.f-h.in (HELO ?10.8.0.42?) (larry@fantasyclub.ru@69.31.83.58) by smtp1.masterhost.ru with SMTP; 16 May 2007 14:15:07 -0000 From: =?windows-1251?b?wuDx6Ovo6SDP5fLw7uI=?= To: freebsd-arch@freebsd.org, freebsd-questions@freebsd.org Date: Wed, 16 May 2007 22:15:02 +0800 User-Agent: KMail/1.9.4 MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1251" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200705162215.02507.larry@fantasyclub.ru> Cc: Subject: kernel_map X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2007 14:42:09 -0000 Is any way to find out how much kernel virtual address space is used and how much is free? I'm getting troubles overflowing this so I want to know how much of KVA space is free on box. As I understood, complete data on KVA space usage kept in kernel_map object. As it resides in KVA space itself I can access it with kvm_read. But I have no idea of how to determine its address in KVA space. Is any way to do that from userland program? Generally, maybe there is other way to get KVA space usage info? PS: I mean exactly preallocated for buffers KVA space, not memory allocated for buffers. As I see this is different things, as system reserves space in KVA space for maximal size of kernel buffers. And system will crash on boot if buffers limit is too high, and not upon allocating that much space. So I want to know info about that reservation to know how much can I grow buffer limits (especially kern.nbuf).