On Tue, Jun 10, 2008 at 20:14, Robert Klemme <shortcutter / googlemail.com> wrote:
> On 10.06.2008 16:48, Jano Svitok wrote:
>>
>> On Tue, Jun 10, 2008 at 13:46, Pokkai Dokkai <bad_good_lion / yahoo.com>
>> wrote:
>>>
>>> how to allocate particular amount of memory to a ruby thread or to a
>>> ruby script?
>> AFAIK, the memory is shared among threads, no matter whether system or
>> ruby's.
>
> Exactly.  That's the whole point of threads.
>
>> The memory for the whole ruby process/script is allocated on demand,
>
> And there is no way to limit it.  It might be possible to limit on a per

Pokkai, what's your primary goal/problem? Why do you want to limit the memory?
Maybe there's a solution if you can look at the problem from another angle.

J.