chicken-janitors
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-janitors] #1379: Improve "heap-shrinkage" rate


From: Chicken Trac
Subject: [Chicken-janitors] #1379: Improve "heap-shrinkage" rate
Date: Fri, 16 Jun 2017 16:00:16 -0000

#1379: Improve "heap-shrinkage" rate
----------------------------+--------------------------------
 Reporter:  felix           |                 Owner:
     Type:  defect          |                Status:  new
 Priority:  minor           |             Milestone:  someday
Component:  core libraries  |               Version:  4.12.0
 Keywords:  gc heap         |  Estimated difficulty:  trivial
----------------------------+--------------------------------
 Submitted by Sven Hartrumpf to chicken-hackers:

 ----

 I would like to experiment with heap shrinking (-:hs) for long
 running, memory/GC intensive processes.

 I checked runtime.c and I read the following shrink condition:

 count < percentage(percentage(heap_size, C_heap_shrinkage),
  DEFAULT_HEAP_SHRINKAGE_USED)

 This would imply that heap usage must be < 12.5 % to lead to a heap
 shrink because C_heap_shrinkage (via DEFAULT_HEAP_SHRINKAGE) is 50 %
 and DEFAULT_HEAP_SHRINKAGE_USED is 25 %.
 This (< 12.5 %) is very unlikely for many applications :-)
 How about:

 count < percentage(heap_size, DEFAULT_HEAP_SHRINKAGE_USED)  ?
 ----

--
Ticket URL: <https://bugs.call-cc.org/ticket/1379>
CHICKEN Scheme <https://www.call-cc.org/>
CHICKEN Scheme is a compiler for the Scheme programming language.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]