From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 7 14:37:09 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E11E5106566B for ; Sat, 7 Mar 2009 14:37:09 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id BDD388FC0A for ; Sat, 7 Mar 2009 14:37:09 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [65.122.17.41]) by cyrus.watson.org (Postfix) with ESMTPS id 46CC746B7E; Sat, 7 Mar 2009 09:37:09 -0500 (EST) Date: Sat, 7 Mar 2009 14:37:09 +0000 (GMT) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Alexej Sokolov In-Reply-To: <671bb5fc0903040829m7c7ab79ay612868bb4260bd21@mail.gmail.com> Message-ID: References: <671bb5fc0903040829m7c7ab79ay612868bb4260bd21@mail.gmail.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org Subject: Re: uma_zone X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Mar 2009 14:37:10 -0000 On Wed, 4 Mar 2009, Alexej Sokolov wrote: > how can I get the size and pointer of some allocated uma zone ? For example: > zone_pack Could you tell us a bit more about the context in which you want to do this? Normally kernel modules acquire pointers to globally visible zones via a symbol dependency resolved by the kernel linker (zone_pack is a globally visible symbol in the kernel). Our general userspace monitoring tools, such as vmstat -z, don't display the UMA zone pointers, and a pointer to the zone is not exported by the sysctls it depends on, currently, but if you run kgdb on kernel.symbols you should be able to print out the address of the global zone_pack directly. Robert N M Watson Computer Laboratory University of Cambridge