Diffusion KWin 4359033d60a8

libkworkspace: tuning glibc allocator

Authored by knechtges on May 21 2011, 12:32 PM.

Description

libkworkspace: tuning glibc allocator

Some applications like kwin suffer from heap fragmentation
when using the raster graphicssystem. This patch provides a function
that forces glibc to shrink the heap more often.
Now 5*pagesize(=20kB on a typical x86 system) of unused space at the
end of the heap are enough to force free()
to release this space. The default threshold is 128kB which is too much
for an average kworkspace application.

REVIEW: 101385

Details

Committed
knechtgesJun 27 2011, 2:14 PM
Parents
R108:93d55f844e8d: Merge branch 'KDE/4.7'
Branches
Unknown
Tags
Unknown