Xorg input thread (2)

Indan Zupancic indan at nul.nu
Sun Jul 22 04:02:20 PDT 2007


Hi,

The pthread thread uses 8 Mb of mlocked space because that's
the default thread stack size. Call

pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN)

to use a 16Kb stack, or fill in whatever is needed for the input
handling.

But it's much saver to just munlock most of the stack so that
the thread doesn't crash when it's out of stackspace.

Both will avoid that extra 8 Mb mlocked memory.

Greetings,

Indan





More information about the xorg mailing list