Open Bug 838886 Opened 9 years ago Updated 8 years ago

Limit gradient patterns cache memory usage

Categories

(Core :: Graphics, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

()

People

(Reporter: avih, Unassigned)

References

Details

(Whiteboard: [MemShrink:P2])

Gradient pattern cache items could use a lot of memory per item (see bug 837542 for several MB of cached items), especially when using D2D. While less cache misses due to better cache keys would improve the overall cache memory usage (bug 838758), we might still want to impose some limit on this cache, as it can quickly grow quite large.
Correction: see bug 837542 for several hundreds MB of cached items.
Whiteboard: [MemShrink]
So I think using immense amounts of memory is usually due to drivers doing odd things and using much more memory than expected. In general a reasonable limit here is probably something like 1000 patterns which should amount to 16MB.
Removed the MemShrink tag because we have a tag on 837542.
Whiteboard: [MemShrink]
Blocks: 837542
(In reply to Nicholas Nethercote [:njn] from comment #3)
> Removed the MemShrink tag because we have a tag on 837542.

May be the MemShrink tag should be inserted again here, because 837542 is replaced by this bug.
Whiteboard: [MemShrink]
Whiteboard: [MemShrink] → [MemShrink:P2]
You need to log in before you can comment on or make changes to this bug.