[meta] Investigate reducing minimum GC memory
Categories
(Core :: JavaScript: GC, enhancement, P3)
Tracking
()
People
(Reporter: tcampbell, Unassigned)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
(Keywords: meta, Whiteboard: [overhead:2MB])
Reporter | ||
Updated•7 years ago
|
Comment 1•7 years ago
|
||
Updated•7 years ago
|
Comment 3•7 years ago
|
||
Comment 4•7 years ago
|
||
Comment 5•7 years ago
|
||
Comment 6•6 years ago
|
||
(In reply to Paul Bone [:pbone] from comment #5)
Regarding minimum memory usage, we should also consider using a smaller
chunk size, this will create more memory usage over all (more chunk headers
per byte/object). But should help with overheads when very few objects of a
particular kind are allocated. NI sfink so we can discuss this idea.
Maybe I'm misunderstanding, but I don't see how reducing the chunk size would help? Chunks contain many AllocKinds already; it's the Arenas that are homogeneous in AllocKinds. I guess we could drop the arena size below 4KB, but at the smallest size (16 bytes) we already only fit 256 cells in an arena. 32 bytes is 128 cells. That's some amount of space loss to fragmentation, but it doesn't feel like all that much?
Comment 7•6 years ago
|
||
(In reply to Steve Fink [:sfink] [:s:] from comment #6)
(In reply to Paul Bone [:pbone] from comment #5)
Regarding minimum memory usage, we should also consider using a smaller
chunk size, this will create more memory usage over all (more chunk headers
per byte/object). But should help with overheads when very few objects of a
particular kind are allocated. NI sfink so we can discuss this idea.Maybe I'm misunderstanding, but I don't see how reducing the chunk size would help? Chunks contain many AllocKinds already; it's the Arenas that are homogeneous in AllocKinds. I guess we could drop the arena size below 4KB, but at the smallest size (16 bytes) we already only fit 256 cells in an arena. 32 bytes is 128 cells. That's some amount of space loss to fragmentation, but it doesn't feel like all that much?
I don't know what I was thinking wrt chunks. I knew that it's the arenas that have different alloc kinds so I have no idea what September-me was thinking. Maybe I was thinking of partially used chunks, but we could address that with how we allocate new areas from chunks (if we don't already).
Regarding Arenas, I would not want to make them any smaller than 4K. I agree 4K is already quite small.
Comment 8•6 years ago
|
||
There are now a few different ideas for reducing memory used by the GC, so I've made this a meta bug.
We should also check this meta bug once we know how to track which processes have all their tabs in the background and can therefore switch to some settings that conserve memory further.
Updated•3 years ago
|
Description
•