AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  Memory limits

    Posted Wed June 16, 2010 05:45 AM

    Originally posted by: Troispoils


    Hi,

    Does anyone have an explanation about the "rss" or "memory" limits ?

    I've just read the "Developing and Porting C and C++ Applications on AIX" redbook but there is no reference to RSS limit.
    In my case, SAP asks me to set it to unlimited, but i would like to know why...

    Thx for your help.

    Regards,

    Jacques
    #AIX-Forum


  • 2.  Re: Memory limits

    Posted Wed June 16, 2010 02:50 PM

    Originally posted by: j.gann


    http://publib.boulder.ibm.com/infocenter/aix/v6r1/index.jsp?topic=/com.ibm.aix.basetechref/doc/basetrf1/getrlimit_64.htm

    "rss" ulimit is not enforced by the kernel, so it is a no-op unless your sw actively checks the setting. same goes for the "memory" ulimit but not for "data".
    #AIX-Forum


  • 3.  Re: Memory limits

    Posted Fri June 18, 2010 04:40 AM

    Originally posted by: Troispoils


    Thanks for your answer !

    So, It's strange for an sw provider to recommand to set this limit to unlimited...It will be better to ignore this setting...

    Regards,
    #AIX-Forum


  • 4.  Re: Memory limits

    Posted Fri June 18, 2010 07:45 AM

    Originally posted by: j.gann


    that's not strange but common. if you're wise you set the limit as recommended. next time the sw will malfunction for other/unknown reasons you'll be glad you did.

    if you're into investigation you can write a small program that malloc()s sufficient memory and check the result with different ulimit settings for memory,rss and data. that's what I did.
    #AIX-Forum