Re: malloc_stats(3) man page for review

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, May 6, 2012 at 9:13 AM, KOSAKI Motohiro
<kosaki.motohiro@xxxxxxxxx> wrote:
> Hi
>
>> .B void malloc_stats(void);
>> .SH DESCRIPTION
>> The
>> .BR malloc_stats ()
>> function prints (on standard error) statistics about memory allocated by
>> .BR malloc (3)
>> and related functions.
>> For each arena (allocation area), this function prints
>> the total amount of memory allocated by means other than
>> .BR mmap (2)
>
> If I understand correctly, A chunk that allocated by mmap (i.e.
> IS_MMAPD marked one)
> doesn't belong to arena. iow, chunk_for_arena() don't work for mmaped
> chunk. then,
>
> For each arena (allocation area), this function prints
> the total amount of memory.
>
> is enough.

Thanks Motohiro. As far as I can see you are correct. I'll make that change.

Cheers,

Michael

-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface"; http://man7.org/tlpi/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux