Note:
ulimit -m does not work. What you are looking for is ulimit -v (virtual
memory limitation)
Ondrej

Jim Kronebusch wrote:
> On Tue, 25 Sep 2007 18:18:57 -0400, Francis Giraldeau wrote
>   
>> Hi Jim,
>>
>> I did test the code provided to limit the memory of X, but I'm not able
>> to reproduce the behavior, in which Firefox dies instead of X, in the
>> event where Firefox blow up the memory.
>>
>> I did force the terminal to boot with mem=32M. The ratio used is 90%
>> (XRAMPERC), so ulimit is launched as follow :
>>
>> ulimit -m 1166
>>
>> I suppose that it means the current process and all children will not be
>> able to use more than 1166 kb of resident size each. If it was the case,
>> then de X server wouldn't even start, because the idle X process uses
>> 4712 kb.
>>
>> In this situation, Firefox still causes the out of memory killer to be
>> called.
>>
>> Any idea?
>>     
>
> Hello Francis.  I ran this under Edubuntu Feisty and with XRAMPERC set to 80% 
> it is
> working.  I don't exactly understand how this works, Scott Balnaeves is the 
> one who
> ported the old XRAMPERC option from LTSP 4 to LTSP 5 for Edubuntu.  If you 
> contact him
> I'm sure he'll be able to help you out.  I assume you followed the directions 
> I posted a
> few weeks back, so I don't know what could be causing your problems.  Scott 
> would
> probably be able to figure it out fairly quick.  
>
> I have noticed that if I set the XRAMPERC to higher percentages, it doesn't 
> always work.
>  This may be due to other apps using a larger amount of RAM already and 
> simply not
> having 90% left to use.  Maybe just try a lower percentage quick such as 50% 
> and see if
> firefox will die, then work up to a larger number.
>
> Jim
>
>   


The information contained in this e-mail and in any attachments is confidential 
and is designated solely for the attention of the intended recipient(s). If you 
are not an intended recipient, you must not use, disclose, copy, distribute or 
retain this e-mail or any part thereof. If you have received this e-mail in 
error, please notify the sender by return e-mail and delete all copies of this 
e-mail from your computer system(s).
Please direct any additional queries to: [EMAIL PROTECTED]
Thank You.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to