[racket] Profiling memory use

From: Daniel Prager (daniel.a.prager at gmail.com)
Date: Thu Feb 13 17:22:35 EST 2014

Thanks Robby

Can the limit be imposed programmatically, for use from the command-line?


Thanks

Dan


On Fri, Feb 14, 2014 at 9:13 AM, Robby Findler
<robby at eecs.northwestern.edu>wrote:

> current-memory-use is counting all of DrRacket's memory and the user
> program memory. The limit, however, includes only the user program's memory.
>
> Robby
>
>
> On Thu, Feb 13, 2014 at 4:05 PM, Daniel Prager <daniel.a.prager at gmail.com>wrote:
>
>> Apropos:
>>
>> I was wondering why I couldn't limit memory in a Racket program directly
>> -- for running from the command-line -- as distinct from in Dr Racket, but
>> the following transcript shed doubts on Dr Racket:
>>
>> Welcome to DrRacket, version 5.3.6 [3m].
>> Language: racket; memory limit: *256 MB*.
>>
>> > (/ (current-memory-use) (expt 10 6))
>> 900 52839/125000
>>
>> > (collect-garbage)
>> > (/ (current-memory-use) (expt 10 6))
>> 660 25687/31250
>>
>>
>> [Replicated in 5.91.]
>>
>> Does (current-memory-use) include overhead for e.g. the DrRacket runtime?
>>
>>
>> Thanks
>>
>> Dan
>>
>>
>> On Tue, Feb 11, 2014 at 7:13 PM, Daniel Prager <daniel.a.prager at gmail.com
>> > wrote:
>>
>>> Is there a good reference to measure and understand Racket memory use?
>>>
>>> I'm doing a run of scribble and memory use is peaking at over 1 Gb.
>>>
>>> I expect that I will be able to make modifications to limit use if I can
>>> get some informative measurements.
>>>
>>>
>>> Thanks
>>>
>>> Dan
>>>
>>> --
>>> *Daniel Prager*
>>>  Agile/Lean Coaching, Software Development and Leadership
>>> Startup: www.youpatch.com
>>> Twitter: @agilejitsu <https://twitter.com/agilejitsu>
>>> Blog: agile-jitsu.blogspot.com
>>>
>>
>>
>>
>> --
>> *Daniel Prager*
>> Agile/Lean Coaching, Software Development and Leadership
>> Startup: www.youpatch.com
>> Twitter: @agilejitsu <https://twitter.com/agilejitsu>
>> Blog: agile-jitsu.blogspot.com
>>
>> ____________________
>>   Racket Users list:
>>   http://lists.racket-lang.org/users
>>
>>
>


-- 
*Daniel Prager*
Agile/Lean Coaching, Software Development and Leadership
Startup: www.youpatch.com
Twitter: @agilejitsu <https://twitter.com/agilejitsu>
Blog: agile-jitsu.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20140214/3e1835e3/attachment-0001.html>

Posted on the users mailing list.