Ticket #750 (new feature request)

Opened 2 years ago

Last modified 2 years ago

Set -M, -H, -c and other memory-related values based on available virtual/physical memory

Reported by: simonmar Assigned to:
Priority: normal Milestone: _|_
Component: Runtime System Version: 6.4.1
Severity: normal Keywords:
Cc: Difficulty: Easy (1 hr)
Test Case: N/A Architecture: Unknown
Operating System: Unknown

Description (Last modified by igloo)

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.

Change History

09/28/06 05:25:19 changed by simonmar

  • milestone changed from 6.6 to 6.6.1.

10/20/06 13:34:59 changed by igloo

  • testcase set to N/A.

11/17/06 06:52:15 changed by simonmar

  • type changed from task to feature request.
  • milestone changed from 6.6.1 to _|_.

12/06/06 03:50:57 changed by igloo

  • description changed.
  • summary changed from Set -M value based on available virtual memory to Set -M and -c values based on available virtual memory.

12/06/06 04:17:49 changed by Bulat

  • summary changed from Set -M and -c values based on available virtual memory to Set -M, -H, -c and other memory-related values based on available virtual/physical memory.

-H and other memory-related settings, too. Also please note that original suggestion was about *virtual* memory which is hard lmit for any program, while Ravi and me wants to easily set values based on *physical* RAM installed on computer, which is just sort of optimization