Open
Bug 1233092
Opened 9 years ago
Updated 2 years ago
Investigate the impact of the extra memory used by Shmem objects
Categories
(Core :: Graphics, defect)
Core
Graphics
Tracking
()
NEW
People
(Reporter: nical, Unassigned)
Details
(Whiteboard: gfx-noted)
Don't know this code too well so I might be completely off, but looking at https://dxr.mozilla.org/mozilla-central/rev/e6463ae7eda2775bc84593bb4a0742940bb87379/ipc/glue/Shmem.cpp#422 it seems that we are allocating shmems that are the requested size (rounded up to a multiple of page size) plus a front sentinel and a back sentinel both of which are page sized.
gfx code uses separate shmems for each texture (aka video frame, front/back/on-white/on-black buffer in a tile), so the extra memory used by sentinels and the fact that shmem sections are multiples of page sizes can add up pretty quickly.
I am not sure that the back sentinel is occupying actual memory, but we do read a bit of information (such as the shmem size) from the front sentinel so the later eats more than just virtual address space.
Reporter | ||
Comment 1•9 years ago
|
||
Bug 1228952 should help mitigate the cases where textures are multiples of the page size and we end up allocating an extra page for the texture info (size, format, etc) by moving the latter out of the buffer.
If it turns out that the sentinel pages are expensive, bug 1128503 can help (currently the bug is filed but nobody is working on it since it's not high priority).
Updated•9 years ago
|
Whiteboard: gfx-noted
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•