# Mall 0.0.1 Released

**URL:** <https://www.ruby-forum.com/t/mall-0-0-1-released/169889>\
**Category:** Ruby\
**Created:** [June 9, 2009, 11:59pm UTC](https://www.ruby-forum.com/t/mall-0-0-1-released/169889 "2009-06-09T23:59:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericw](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/97f17d/32.png) [@ericw](https://www.ruby-forum.com/u/ericw)\
**Post date:** [June 9, 2009, 11:59pm UTC](https://www.ruby-forum.com/t/mall-0-0-1-released/169889/1 "2009-06-09T23:59:50Z")

</div>

mall version 0.0.1 has been released!

- [http://bogomips.org/mall](http://bogomips.org/mall)

This library provides access to the mallinfo(3) and mallopt(3)  
functions. mallinfo(3) is used for reporting malloc statistics and  
mallopt(3) can be used to tune malloc(3) implementations. See the  
corresponding documentation for the C library functions before  
proceeding.

These functions are implementation-specific, so tuning options that  
work for one implementation of malloc may not work at all for another  
implementation.

Constants defined in the the malloc.h header with a “M\_” prefix are  
defined without the prefix in the Mall namespace (e.g.  
M\_TRIM\_THRESHOLD =\> Mall::TRIM\_THRESHOLD).

== Synopsis

# Assuming a glibc/ptmalloc system:

require ‘mall’

Mall.opt(Mall::TRIM\_THRESHOLD, 1024_1024)  
Mall.opt(Mall::TOP\_PAD, 1024_1024)  
Mall.opt(Mall::MXFAST, 80)

hash = Mall.info

== git repository

git://git.bogomips.org/mall.git  
[access the mallinfo(3) and mallopt(3) functions from Ruby](http://git.bogomips.org/mall.git)

== cgit viewer

- [access the mallinfo(3) and mallopt(3) functions from Ruby](http://git.bogomips.org/cgit/mall.git) (cgit)

License: LGPLv3
