id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,os,architecture,failure,difficulty,testcase,blockedby,blocking,related
750,"Set -M, -H, -c and other memory-related values based on available virtual/physical memory",simonmar,,"From John Meacham:

  perhaps if `-M` is not otherwise set, {{{getrlimit(RLIMIT_AS,..)}}} could be
  called and the maximum heap size set to just under that, since it is the
  point that the OS will forcefully kill the program anyway.

Ravi Nanavati would like to be able to set the value to a percentage of physical RAM, e.g. `prog +RTS -H256m -M95% -RTS'.

Bulat Ziganshin would like to be able to do the same with `-c`.",feature request,new,normal,_|_,Runtime System,6.4.1,,,pho@…,Unknown/Multiple,Unknown/Multiple,,Easy (less than 1 hour),N/A,,,
