Re: Q: Darwin panicing too soon?
On Thursday, August 7, 2003, at 5:50 AM, Stiphane Sudre wrote: Le jeudi, 7 ao{ 2003, ` 04:54 Europe/Paris, Jim Magee a icrit : Well, free space is a bit tough to track - especially since the kernel carves its own address space up into a few large submaps. One of those is the zones submap (where all the zones virtual memory allocations reside). You can see what allocations have been made in there by using the zprint(1) utility. But I'm pretty sure that only the kernel debugger will let you see what the maximum size of the submap is - to allow you to compute the remaining free space. Since there's no man page (and a quick search in google pointed to no related zprint stuff), would someone know what the option of this tools mean: usage: zprint [-w] [-s] [-c] [-h] [name] -h is not working the way I'm trying to use it This tool will be very useful to check that I'm not leaking mbuf. But the source is available! ;-) It's part of the system_cmds project. Here's the manpage data (the manpage is installed as part of Panther): ZPRINT(1) ZPRINT(1) NAME zprint - show information about kernel zones SYNOPSIS zprint [-w] [-s] [-c] [-h] [name] DESCRIPTION zprint(1) displays data about Mach zones. By default, zprint will print out information about all Mach zones. If the optional name is specified, zprint will print information about each zone for which name is a substring of the zone's name. zprint interprets the following options: -w For each zone, zprint calculates how much space is allocated but not currently in use, the space wasted by the zone. -s zprint sorts the zones, showing the zones wasting the most memory first. -c (Default) zprint prints zone info in columns. Long zone names are truncated with '$', and spaces are replaced with '.', to allow for sorting by column. Pageable and collectible zones are shown with 'P' and 'C' on the far right. Zones with prepos- terously large maximum sizes are shown with '----' in the max size and max num elts fields. -h (Default) Shows headings for the columns printed with the -c option. It may be useful to override this option when sorting by column. Any option (including default options) can be overridden by specifying the option in upper-case; for example, -C overrides the (default) option -c. --Jim _______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.
participants (1)
-
Jim Magee