[Mesa-dev] Improving ralloc performance for the GLSL compiler
Eero Tamminen
eero.t.tamminen at intel.com
Wed Aug 31 12:53:08 UTC 2016
HI,
On 31.08.2016 15:40, Marek Olšák wrote:
> On Aug 31, 2016 5:02 AM, "Michel Dänzer" <michel at daenzer.net> wrote:
>>
>> On 30/08/16 06:51 PM, Marek Olšák wrote:
>>>
>>> If we don't care about memory usage, let's use my allocator. If we do,
>>> let's import jemalloc into the Mesa tree and use it for ralloc.
>>
>> Instead of importing jemalloc into Mesa, could we use the shared
>> libjemalloc.so.1?
>
> No idea. It exports malloc/free/etc, but "nm" says "there are no
> symbols".
That's because it's a dynamic library (basically an executable), not an
archive of objects, which nm knows about.
You can use either objdump -T or readelf -s to list dynamic library
symbols. It should be enough to add it to Mesa linker line as dependency.
Using the static version of jemalloc instead of dynamic version gave
extra boost (as would be using static version of glibc's ptmalloc), so
that could be considered also instead of importing jemalloc sources to
Mesa source tree.
- Eero
> Perhaps they can only be dlsym'd.
More information about the mesa-dev
mailing list