Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Mar 2009 19:00:29 +0100
From:      Alexej Sokolov <bsd.quest@googlemail.com>
To:        Robert Watson <rwatson@freebsd.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: uma_zone
Message-ID:  <671bb5fc0903081100x25dc6f4g829039f2ac51015c@mail.gmail.com>
In-Reply-To: <alpine.BSF.2.00.0903071431050.1340@fledge.watson.org>
References:  <671bb5fc0903040829m7c7ab79ay612868bb4260bd21@mail.gmail.com> <alpine.BSF.2.00.0903071431050.1340@fledge.watson.org>

next in thread | previous in thread | raw e-mail | index | archive | help
2009/3/7 Robert Watson <rwatson@freebsd.org>

> 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!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?671bb5fc0903081100x25dc6f4g829039f2ac51015c>