Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jul 2013 11:38:33 +0200
From:      Alberto Villa <avilla@FreeBSD.org>
To:        Chris H <bsd-lists@1command.com>
Cc:        freebsd-stable <freebsd-stable@freebsd.org>, freebsd-amd64 <freebsd-amd64@freebsd.org>
Subject:   Re: What are the ideal ranges for kern.ipc.shm*?
Message-ID:  <CAJp7RHZzpyNKvhrWeEQ7kemwn%2BszYQnAvAEAjNKtKcfbRhsr3Q@mail.gmail.com>
In-Reply-To: <4640843f1a35075d295f99aa9e8ed951.authenticated@ultimatedns.net>
References:  <4640843f1a35075d295f99aa9e8ed951.authenticated@ultimatedns.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jul 12, 2013 at 5:24 AM, Chris H <bsd-lists@1command.com> wrote:
> Greetings,
>  Over the years using the xfce4 desktop, I would occasionally receive
> SHM ERROR messages. As they never interfered (so's I could notice), I
> always put off attempting to track the cause down. However, now having
> performed a fairly major upgrade (~1yr since last), The error appears
> to greatly affect KDE4 (used to use kde3) applications I run within
> xfce4. The windows don't re-draw correctly, and I receive additional
> errors,as well:
> ...
> Resource id:  0x0
> X Error: BadDrawable (invalid Pixmap or Window parameter) 9
>   Major opcode: 62 (X_CopyArea)
>   Resource id:  0x0
> ...
> After much searching, it would appear to be related to the
> kern.ipc.shm* values.

$ cat /usr/ports/x11-toolkits/qt4-gui/pkg-message

Qt paint engine makes common use of shared memory. To avoid MIT-SHM
errors (i.e., blank windows), you probably need to raise shared memory
limits in loader.conf(5). The following should be safe values for the
KDE Plasma Desktop:

kern.ipc.shmall=32768
kern.ipc.shmmni=1024
kern.ipc.shmseg=1024
--
Alberto Villa, FreeBSD committer <avilla@FreeBSD.org>
http://people.FreeBSD.org/~avilla



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJp7RHZzpyNKvhrWeEQ7kemwn%2BszYQnAvAEAjNKtKcfbRhsr3Q>