You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While experimenting with julia as a shared lib the GC can become a latency issue. Specifically full GCs can cause significant pauses. While taking a look it dawned on me that some workflows don't allocate any amount of permanent memory and all of it is short lived, so turning any of it old is wasteful anyway.
I'm proposing adding a switch that turns off full gcs and promoting objects to the old age. Python has something similar called freeze https://docs.python.org/3/library/gc.html#gc.freeze
The text was updated successfully, but these errors were encountered:
Ah, OK. You may be proposing doing this after some objects have been allocated in the heap: i.e. accumulate a bunch of objects in the old generation, and from that point on, don't move anything to the old generation.
But since you had promotions before the generational behavior was disabled, then you may possibly have some objects in the old generation.
I.e. you are not really disabling generational GC at startup? (Which would make all GCs full GCs as I mentioned above).
This isn't something you would run at startup. This is something you run after you have allocated all the memory your process needs that will live for ~the length of the process, and the rest of your process is will only have relatively short lived allocations.
While experimenting with julia as a shared lib the GC can become a latency issue. Specifically full GCs can cause significant pauses. While taking a look it dawned on me that some workflows don't allocate any amount of permanent memory and all of it is short lived, so turning any of it old is wasteful anyway.
I'm proposing adding a switch that turns off full gcs and promoting objects to the old age. Python has something similar called freeze https://docs.python.org/3/library/gc.html#gc.freeze
The text was updated successfully, but these errors were encountered: