Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dznmL-0004b2-WB for pgsql-bugs@arkaria.postgresql.org; Wed, 04 Oct 2017 17:48:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dznmL-00007e-Fa for pgsql-bugs@arkaria.postgresql.org; Wed, 04 Oct 2017 17:48:17 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dznla-00064L-G3 for pgsql-bugs@postgresql.org; Wed, 04 Oct 2017 17:47:30 +0000 Received: from mail-pg0-x235.google.com ([2607:f8b0:400e:c05::235]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dznlW-0001NY-CX for pgsql-bugs@postgresql.org; Wed, 04 Oct 2017 17:47:28 +0000 Received: by mail-pg0-x235.google.com with SMTP id j70so6871092pgc.10 for ; Wed, 04 Oct 2017 10:47:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joyent.com; s=google; h=date:from:to:cc:message-id:in-reply-to:references:subject :mime-version; bh=+MgtGLh+zkmIlySc3R2FqhcPAAzHnOjsc0WbxG1ccPE=; b=gUWB7ElCQ9khi/BOpcYcFnYQXuOzcCGHWAG1A3XWDRrcBYC7BAebMj/HY/opVzz2Ai 48P8QEM160FbTSR0yVkJkj5w+Nijjl11lrEyEVd7d+j+Py8W96AnzzVi8xj4viYW15N2 Q8w2FGMBGz2h3OFBV2a00J+hg4f0MXNLl65PE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:message-id:in-reply-to :references:subject:mime-version; bh=+MgtGLh+zkmIlySc3R2FqhcPAAzHnOjsc0WbxG1ccPE=; b=AnQB3+PbvOhbYHTo6OXr7TT2Ues69sfkaMD/RgoD0ipGBf0c+Uz7dp2q/+S66e/IF0 09Fsdk+syY2hHjIeoZO86O6FR9leQAve7a+7FGePq7lXOV02+/wXPT2joc/I5+1r35Qn oe1Fn707CTmJHeE2XGPrbTTLNCEcU2ovAyQQ49uxJ+9iHizhsjqxi1zv0By/2d/kY7T9 nVqY3altHBIn6JADCdwBnmJxPbQXZ3TiGX0DsQusvR8V++VO53A+EjSOAMmT19WEwWb3 ncksEG5/TqmLqSUbYEbQYB4JxFnCKR1s0ui/qWlaJMT+7DvK1NhpXOhNzYJOYuumykNZ FCFA== X-Gm-Message-State: AMCzsaUStwCZ6SVQoCsxHSWY2Qt7sZ3lnc6edqLdXFSGGQRt+zgHQimc DNqU2+rT3jVZVBtaxdF56xP5CQ== X-Google-Smtp-Source: AOwi7QCSlg8Iw7WX7rEzmqmSixfcizr6kLfueeSN688yS18qkDcLV5lTsMbg2PkBJnS5cXyqWBOvmg== X-Received: by 10.99.61.76 with SMTP id k73mr6474215pga.143.1507139245034; Wed, 04 Oct 2017 10:47:25 -0700 (PDT) Received: from [172.20.5.97] ([208.184.5.170]) by smtp.gmail.com with ESMTPSA id h10sm28969110pgn.73.2017.10.04.10.47.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Oct 2017 10:47:24 -0700 (PDT) Date: Wed, 4 Oct 2017 10:47:06 -0700 From: Sean Chittenden To: pgsql-hackers@postgresql.org Cc: stadtkind2@gmx.de, Sam Gwydir , Sean Chittenden , pgsql-bugs@postgresql.org Message-ID: <6f48fd17-6b73-487f-9467-6e2f6559d07f@Spark> In-Reply-To: References: Subject: Re: [PATCH] BUG #13416: Postgres =?utf-8?Q?>=3D_?=9.3 doesn't use optimized shared memory on Solaris anymore X-Readdle-Message-ID: 6f48fd17-6b73-487f-9467-6e2f6559d07f@Spark MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="59d51eab_4e6afb66_c0a" List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org --59d51eab_4e6afb66_c0a Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello. =C2=A0We identified the same problem. =C2=A0Sam Gwydir and Josh Cl= ulow were able to put together the appropriate fix after. The breakage in=C2=A0src/backend/port/sysv=5Fshmem.c=C2=A0and=C2=A0src/in= clude/storage/dsm=5Fimpl.h=C2=A0should be back ported to all supported ve= rsions (the regression was introduced between the 9.2 and 9.3 branches). The only real question remaining is: do we want to change the default beh= avior, as detected by initdb(1), to use ISM on Illumos/Solaris derived sy= stems=3F =C2=A0Given the memory bloat experienced when using POSIX shared= memory (potentially very significant for systems with larger shared=5Fbu= ffers), we think it's probably prudent to change the default from=C2=A0dy= namic=5Fshared=5Fmemory=5Ftype=3Dposix=C2=A0to=C2=A0sysv. =C2=A0Unfortuna= tely I think it's not worth changing the default behavior of initdb(1) in= the current supported branches, but it should be changed for 10. Please let us know if there are any questions. =C2=A0-sc -- Sean Chittenden seanc=40joyent.com --59d51eab_4e6afb66_c0a Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Hello. &=23160;W= e identified the same problem. &=23160;Sam Gwydir and Josh Clulow were ab= le to put together the appropriate fix after.

The breakage in&=23160;src/backend/port/sysv=5Fshmem.c&=23160;and&=23160;= src/include/storage/dsm=5Fimpl.h&=23160;should be back ported to all supp= orted versions (the regression was introduced between the 9.2 and 9.3 bra= nches).

The only real question remaining is: do we want to change the default beh= avior, as detected by initdb(1), to use ISM on Illumos/Solaris derived sy= stems=3F &=23160;Given the memory bloat experienced when using POSIX shar= ed memory (potentially very significant for systems with larger shared=5F= buffers), we think it's probably prudent to change the default from&=2316= 0;dynamic=5Fshared=5Fmemory=5Ftype=3Dposix&=23160;to&=23160;sysv. &=23160= ;Unfortunately I think it's not worth changing the default behavior of in= itdb(1) in the current supported branches, but it should be changed for 1= 0.

Please let us know if there are any questions. &=23160;-sc


--
Sean Chittenden
seanc=40joyent.com

--59d51eab_4e6afb66_c0a--