Re: [PATCH 1/2] Prevent excessive major gcs by having decent amount of unused heap

2021-01-21 Thread Sven Hartrumpf
Hello. megane, 2021-01-20 17:48: > Sven Hartrumpf writes: > >> Hello. >> > [snip] >>> I need some -:hi option (only for the new GC!), otherwise it crashes as >>> follows: >>> >>> # nallch.x32 -:a0 -:o -:s4096k 0 >>> [panic] out of memory - cannot allocate next heap segment - execution >>>

Re: [PATCH 1/2] Prevent excessive major gcs by having decent amount of unused heap

2021-01-20 Thread megane
Sven Hartrumpf writes: > Hello. > [snip] >> I need some -:hi option (only for the new GC!), otherwise it crashes as >> follows: >> >> # nallch.x32 -:a0 -:o -:s4096k 0 >> [panic] out of memory - cannot allocate next heap segment - execution >> terminated > > I have experimented some more

Re: [PATCH 1/2] Prevent excessive major gcs by having decent amount of unused heap

2021-01-18 Thread Sven Hartrumpf
Hello. I wrote, 2021-01-13 22:24: > Hi. > > megane wrote, 2021-01-13 12:10: >> >> Sven Hartrumpf writes: >> >>> Hi Mario. >>> >> [snip] >>> Run options are: >>> >>> -:hi256m -:H -:hs0 -:o -:s4096k >> The combination of -:hi256m and -:hs0 pretty much guarantees these >> patches won't help you. >

Re: [PATCH 1/2] Prevent excessive major gcs by having decent amount of unused heap

2021-01-13 Thread Sven Hartrumpf
Hi. megane wrote, 2021-01-13 12:10: > > Sven Hartrumpf writes: > >> Hi Mario. >> > [snip] >> Run options are: >> >> -:hi256m -:H -:hs0 -:o -:s4096k > The combination of -:hi256m and -:hs0 pretty much guarantees these > patches won't help you. I feared so, when I was asked to post my options :-)

Re: [PATCH 1/2] Prevent excessive major gcs by having decent amount of unused heap

2021-01-13 Thread megane
Sven Hartrumpf writes: > Hi Mario. > [snip] > Run options are: > > -:hi256m -:H -:hs0 -:o -:s4096k Hi Sven, The combination of -:hi256m and -:hs0 pretty much guarantees these patches won't help you. - The first patch would bump the heap size up if your program constantly needed, say

Re: [PATCH 1/2] Prevent excessive major gcs by having decent amount of unused heap

2021-01-12 Thread Sven Hartrumpf
Hi Mario. Mario wrote, 2021-01-12 19:17: > Hi Sven, > > On Tue, 12 Jan 2021 13:44:04 +0100 (CET) Sven Hartrumpf > wrote: > >> Mario wrote, 2021-01-12 12:39: >>> >>> On Tue, 12 Jan 2021 11:42:31 +0100 (CET) Sven Hartrumpf >>> wrote: >>> Mario, 2021-01-10 10:03: > > On Sat, 09 Jan

Re: [PATCH 1/2] Prevent excessive major gcs by having decent amount of unused heap

2021-01-12 Thread Mario Domenech Goulart
Hi Sven, On Tue, 12 Jan 2021 13:44:04 +0100 (CET) Sven Hartrumpf wrote: > Mario wrote, 2021-01-12 12:39: >> >> On Tue, 12 Jan 2021 11:42:31 +0100 (CET) Sven Hartrumpf >> wrote: >> >>> Mario, 2021-01-10 10:03: On Sat, 09 Jan 2021 15:14:31 +0100 (CET) Sven Hartrumpf wrote:

Re: [PATCH 1/2] Prevent excessive major gcs by having decent amount of unused heap

2021-01-12 Thread Sven Hartrumpf
Hi Mario. Mario wrote, 2021-01-12 12:39: > Hi Sven, > > On Tue, 12 Jan 2021 11:42:31 +0100 (CET) Sven Hartrumpf > wrote: > >> Mario, 2021-01-10 10:03: >>> >>> On Sat, 09 Jan 2021 15:14:31 +0100 (CET) Sven Hartrumpf >>> wrote: >>> Thanks for the patches and the tests! > I ran a

Re: [PATCH 1/2] Prevent excessive major gcs by having decent amount of unused heap

2021-01-12 Thread Mario Domenech Goulart
Hi Sven, On Tue, 12 Jan 2021 11:42:31 +0100 (CET) Sven Hartrumpf wrote: > Mario, 2021-01-10 10:03: >> >> On Sat, 09 Jan 2021 15:14:31 +0100 (CET) Sven Hartrumpf >> wrote: >> >>> Thanks for the patches and the tests! >>> I ran a relatively extensive set of benchmark configurations

Re: [PATCH 1/2] Prevent excessive major gcs by having decent amount of unused heap

2021-01-12 Thread Sven Hartrumpf
Mario, 2021-01-10 10:03: > Hi Sven, > > On Sat, 09 Jan 2021 15:14:31 +0100 (CET) Sven Hartrumpf > wrote: > >> Thanks for the patches and the tests! >> >>> I ran a relatively extensive set of benchmark configurations comparing >>> CHICKEN from master against CHICKEN from master plus the patches.

Re: [PATCH 1/2] Prevent excessive major gcs by having decent amount of unused heap

2021-01-10 Thread Mario Domenech Goulart
Hi Sven, On Sat, 09 Jan 2021 15:14:31 +0100 (CET) Sven Hartrumpf wrote: > Thanks for the patches and the tests! > >> I ran a relatively extensive set of benchmark configurations comparing >> CHICKEN from master against CHICKEN from master plus the patches. > > I would like to run some

Re: [PATCH 1/2] Prevent excessive major gcs by having decent amount of unused heap

2021-01-09 Thread Sven Hartrumpf
Hi. Thanks for the patches and the tests! > I ran a relatively extensive set of benchmark configurations comparing > CHICKEN from master against CHICKEN from master plus the patches. I would like to run some real-world benchmarks. They are dynamically linked. Would it be enough to run them with

Re: [PATCH 1/2] Prevent excessive major gcs by having decent amount of unused heap

2021-01-08 Thread Mario Domenech Goulart
Hi, On Wed, 08 Jan 2020 17:03:25 +0200 megane wrote: > The garbage collector currently has couple of less than optimal > behaviors: > > 1. If there's constantly only a small amount of heap left after a major >collection then there will be constant major collections. > > 2. If the used heap

[PATCH 1/2] Prevent excessive major gcs by having decent amount of unused heap

2020-01-08 Thread megane
ent excessive major gcs by having decent amount of unused heap --- manual/Using the compiler | 2 ++ runtime.c | 57 +++ 2 files changed, 42 insertions(+), 17 deletions(-) diff --git a/manual/Using the compiler b/manual/Using the compiler in