From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 8 18:00:31 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 C63EB106566B for ; Sun, 8 Mar 2009 18:00:31 +0000 (UTC) (envelope-from bsd.quest@googlemail.com) Received: from mail-ew0-f166.google.com (mail-ew0-f166.google.com [209.85.219.166]) by mx1.freebsd.org (Postfix) with ESMTP id 076BA8FC0A for ; Sun, 8 Mar 2009 18:00:30 +0000 (UTC) (envelope-from bsd.quest@googlemail.com) Received: by ewy10 with SMTP id 10so594561ewy.43 for ; Sun, 08 Mar 2009 11:00:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=+lNyuEo09HyRE1isnCV/MfvJIg+xLCn4mvr2h4UGhIw=; b=NBQrmEmiNLhWwjOhKlT7t6Ow0u00xvWFS33dkavOlHTi9ibLHGNWuCdmTszHfjmGpk tho2gpUYItEjtxJE9ADse4NSxPk0WNEpAe0k2AYB0IWZGsc+F3FQU4wuHG04lVIjyLLK FPatE0asx7UuewJNXBqb61GZCfthG7d1LO7pw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=GeWMrK3Tp55RNH5Yg/soO0ak466CsVygo/nd3n4wa5iQ33iSicvuYCtX+pqnEq4xTa YhopNgr+tYhBpgr6Zgg8aUZlekuzLUE5sFnZqr7v57X6SLtxH7q5tvMg1ABJ6meCAeSS MxI+bQe+5y1sBgVNo9+xIn6HNcNKOSm7e5aws= MIME-Version: 1.0 Received: by 10.210.58.17 with SMTP id g17mr1803489eba.42.1236535230004; Sun, 08 Mar 2009 11:00:30 -0700 (PDT) In-Reply-To: References: <671bb5fc0903040829m7c7ab79ay612868bb4260bd21@mail.gmail.com> Date: Sun, 8 Mar 2009 19:00:29 +0100 Message-ID: <671bb5fc0903081100x25dc6f4g829039f2ac51015c@mail.gmail.com> From: Alexej Sokolov To: Robert Watson Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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: Sun, 08 Mar 2009 18:00:32 -0000 2009/3/7 Robert Watson > 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? Interrupt kontext. > 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). But what about the size ? Do the UMA zones have fixed sizes? What I want to do is to remap zone_pack into the user space in order to give user applications access to mbuf clusters with frames. > 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 Thanx a lot!