From owner-freebsd-amd64@FreeBSD.ORG Fri Jul 12 09:38:56 2013 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id A2D72192; Fri, 12 Jul 2013 09:38:56 +0000 (UTC) (envelope-from villa.alberto@gmail.com) Received: from mail-wg0-x236.google.com (mail-wg0-x236.google.com [IPv6:2a00:1450:400c:c00::236]) by mx1.freebsd.org (Postfix) with ESMTP id 18E9219CF; Fri, 12 Jul 2013 09:38:55 +0000 (UTC) Received: by mail-wg0-f54.google.com with SMTP id n11so7897715wgh.33 for ; Fri, 12 Jul 2013 02:38:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=Bq2P/5UgVaslEAc1iigrH1cX1U1dRiEXy4FvT6fUSSs=; b=FAjU60+NHO11CH6X4B52m9DZ0lIkv7yQ3s/snhBFgS5/sTnrvjKi/PejnfV822DJbl ifUvHogFp+0FDkjgjl6rkhSmrZqNP8EQmTGScI6V8mZyOz5UMncNqRdoZxz7mRBKA4nL tfklQ89K7CG+2BFxVWWRcg3wKtHK4QhdKVe7WMIra0q7NUpe+aS8xr/NAv4FKj9vxEdW d36SXXavFavG15bVD7n4OFQiWdARchvOeK5BDbZ6f3pb/8V4GpLQ/eV3LsFKPSUKTr/W xcIY7/Yo4dXHVJRGZajH821Zx7MOgVo5RCWDaj1EQOoo0PVTLDsBB8U7dNZP8WU7+FgQ e3lw== X-Received: by 10.194.20.97 with SMTP id m1mr23394954wje.31.1373621934297; Fri, 12 Jul 2013 02:38:54 -0700 (PDT) MIME-Version: 1.0 Sender: villa.alberto@gmail.com Received: by 10.217.117.136 with HTTP; Fri, 12 Jul 2013 02:38:33 -0700 (PDT) In-Reply-To: <4640843f1a35075d295f99aa9e8ed951.authenticated@ultimatedns.net> References: <4640843f1a35075d295f99aa9e8ed951.authenticated@ultimatedns.net> From: Alberto Villa Date: Fri, 12 Jul 2013 11:38:33 +0200 X-Google-Sender-Auth: xAA5a70zvC8kZ_2QBVP_RTF8I1Q Message-ID: Subject: Re: What are the ideal ranges for kern.ipc.shm*? To: Chris H Content-Type: text/plain; charset=ISO-8859-1 X-Mailman-Approved-At: Fri, 12 Jul 2013 11:28:36 +0000 Cc: freebsd-stable , freebsd-amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jul 2013 09:38:56 -0000 On Fri, Jul 12, 2013 at 5:24 AM, Chris H 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 http://people.FreeBSD.org/~avilla