[kde-freebsd] [CFT] kde-games fix for (invalid shared segment parameter)

Alberto Villa avilla at FreeBSD.org
Fri Mar 9 12:57:30 UTC 2012


On Thu, Feb 16, 2012 at 10:10 PM, Axel Gonzalez <loox at e-shell.net> wrote:
> This little patches fix the problems in kde-games without tweaking the sysctl
> kern.ipc.shm_allow_removed

No, it doesn't. :(

It might fix Qt 4.7 maybe, but Qt 4.8 switched to raster graphics
system by default, and thus relies heavily on shared memory. With or
without the patches (I even tried forcing deletion of memory segments)
the size of used shared memory ries quickly (with one KDE activity i
have ~70 segments used, with two they are ~130), and the problem is
back again. Even with kern.ipc.shm_allow_removed=1 and some kern.ipc
limits increased.

I then tried to export QT_GRAPHICSSYSTEM=native (via ~/.kde4/env/),
and things started working again. Unfortunately, there are two
problems with this:
1. we can make KDE set that variable in the environment, but Qt
applications running outside of KDE Workspace will be just broken;
2. apparently, they made native graphics systems slower (probably to
enhance the raster one), so the system is now a bit sluggish (while
raster, until it worked, looked fast).

Then: we *must* fix raster graphics system. LooX, did you get any
interesting result with your sysctl tweaking (I remember you said on
IRC you have the same problem)? Can you paste the output of `ipcs -m`
and `sysctl kern.ipc` after being logged in for a while?
-- 
Alberto Villa, FreeBSD committer <avilla at FreeBSD.org>
http://people.FreeBSD.org/~avilla


More information about the kde-freebsd mailing list