uma_zone

Alexej Sokolov bsd.quest at googlemail.com
Sun Mar 8 11:00:32 PDT 2009


2009/3/7 Robert Watson <rwatson at 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!


More information about the freebsd-hackers mailing list