Skip to content

Idea: Tweak vm parameters #5

@jecisc

Description

@jecisc
"Increase the new space size to 64Mo instead of 2.8Mo. This will reduce a lot the number of scavenge"
Smalltalk vm parameterAt: 45 put: 67108864.

"Increase growth headroom. When the memory will need to grow, it will directly allocate more room."
Smalltalk vm parameterAt: 25 put: 33554432.

"Increase shrinking threashold to shrink the memory less often"
Smalltalk vm parameterAt: 24 put: 67108864.

"Change the full GC ratio to only GC when the heap grows by 70% instead of 33% before."
Smalltalk vm parameterAt: 55 put: 0.7

For the change of parameter 45, you need to execute it, save the image and restart it. For the other parameters (25, 24, 55), it needs to be executed after opening the image again.

With that, the loading of a big dataframe (45MB csv file) went from 8sec to 6sec.

I propose to add that in a startup script. We should check other algos to make sur this change is positive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions