Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hkmlp-000561-U1 for pgsql-general@arkaria.postgresql.org; Tue, 09 Jul 2019 09:50:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hkmln-0006p3-4x for pgsql-general@arkaria.postgresql.org; Tue, 09 Jul 2019 09:50:43 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hkmlm-0006j7-My for pgsql-general@lists.postgresql.org; Tue, 09 Jul 2019 09:50:42 +0000 Received: from mail-lj1-x244.google.com ([2a00:1450:4864:20::244]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hkmlg-0003KM-62 for pgsql-general@postgresql.org; Tue, 09 Jul 2019 09:50:41 +0000 Received: by mail-lj1-x244.google.com with SMTP id p17so18960463ljg.1 for ; Tue, 09 Jul 2019 02:50:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=3TdCoDuok6QZg4B/anjZ6S3loTm4F5kXAX1PdKCL6w8=; b=GiniBbLUf/xBbmyei3yVIo4CKdAFYOkU3qxmW4VkvPevM2OfB+umdm5DnxUc7APDYc sxOVV7klJCw3HoXNGhS84Snl/jox33FcSJ3zXX76h3hBlw6MzddfjJmWDb4Wa0na2rSe VHRsjaTkpzi2rOB5Sde5oSkZhaif3lGLb8xAFXTium6UdqSMwe4PPe2AFIpZc2V1zhTM 47d8RB9Lt9GvLaAOE5RmcWu9JFrHyzFOWH7ZhkDQiV1K8ReFy+V9PU0mcB/3Hlsxut8b 22AvY5/ts/aiuBPOX2kv5uWbVgs8beKmIE7BTicNeK5pOiRM/BtF7v3fGJT2GhE4idIq E4Ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=3TdCoDuok6QZg4B/anjZ6S3loTm4F5kXAX1PdKCL6w8=; b=WVIborSJB7OcnKZD60dqqE/LYH5OAtN8v3KvdCGS5962TZIw76FE3QqDvtia+MmyA7 0B/+B32RLKojgxzxvlzcsVABXRL5h5G1KWxzxk4ZRbZ+q6TznepsuTPAgixHD4Dn5yJJ orYbLRRi3Z8mVnqia1JHTKhYls29hh3Hro+jyyfumodLIUn+rTodBymW/5NgwXBbiSso yJKLLWR33Z8mJ33aykNTrKvq+iUnizaUVNv03EIV87D2z1E/PxI3KUvw24NvkwX2gSl8 f5wz1AU91lVDBI8qyw9uoVr3XESkTtyaSCwVwWMgOb3vYCEgTT8cz3ANK4d4Su6MzLvO pbvA== X-Gm-Message-State: APjAAAWn2Do3a2f/xrWFkfAyVP9WSoz/k2MMA861Rap6nEsHJwRji5iW tZwPyTxoA3JW4yC9mK9ctWXrDvH67zE= X-Google-Smtp-Source: APXvYqz26Ydl0TKVvT/3xo/RVfSEz8QU8WnJv+sJPDxKqLHlPEnXk/yW1MMPPI7WyDvbg/mWxRkttA== X-Received: by 2002:a2e:970a:: with SMTP id r10mr12608055lji.115.1562665833820; Tue, 09 Jul 2019 02:50:33 -0700 (PDT) Received: from [172.20.1.244] ([93.180.21.1]) by smtp.gmail.com with ESMTPSA id k4sm4268262ljj.41.2019.07.09.02.50.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Jul 2019 02:50:33 -0700 (PDT) From: Konstantin Malanchev Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: PGSQL 11.4: shared_buffers and /dev/shm size Message-Id: <7E4D7DA4-E093-4F6A-AE8E-81A73B995A8D@gmail.com> Date: Tue, 9 Jul 2019 12:50:31 +0300 To: pgsql-general@postgresql.org X-Mailer: Apple Mail (2.3445.104.11) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hello, I'm running PostgreSQL 11.4 on Linux 4.12.14 and I see the following = issue while executing single one query: ERROR: could not resize shared memory segment "/PostgreSQL.1596105766" to 536870912 bytes: No space = left on device In my postgresql.conf I set sharred_buffers=3D256MB, I see that it is = applied: SHOW shared_buffers; shared_buffers ---------------- 256MB At the same time during the query execution, I see a lot of files in = /dev/shm with the total size more than 256MB ls -lh /dev/shm total 1.4G -rw------- 1 postgres postgres 193K Jul 8 08:39 PostgreSQL.1026343462 -rw------- 1 postgres postgres 4.0M Jul 8 10:23 PostgreSQL.1066463809 -rw------- 1 postgres postgres 8.0M Jul 8 10:23 PostgreSQL.1154587693 -rw------- 1 postgres postgres 4.0M Jul 8 08:47 PostgreSQL.1292794952 -rw------- 1 postgres postgres 128M Jul 8 10:23 PostgreSQL.130026740 -rw------- 1 postgres postgres 8.0M Jul 8 10:23 PostgreSQL.1377271816 -rw------- 1 postgres postgres 16M Jul 8 10:23 PostgreSQL.1453162423 -rw------- 1 postgres postgres 128M Jul 8 10:23 PostgreSQL.1496397787 -rw------- 1 postgres postgres 8.0M Jul 8 10:23 PostgreSQL.1541518903 -rw------- 1 postgres postgres 64M Jul 8 10:23 PostgreSQL.1554139410 -rw------- 1 postgres postgres 2.0M Jul 8 10:23 PostgreSQL.1563273542 -rw------- 1 postgres postgres 256M Jul 8 10:23 PostgreSQL.1604524364 -rw------- 1 postgres postgres 64M Jul 8 10:23 PostgreSQL.1624127960 -rw------- 1 postgres postgres 4.0M Jul 8 10:23 PostgreSQL.1674892421 -rw------- 1 postgres postgres 128M Jul 8 10:32 PostgreSQL.179085785 -rw------- 1 postgres postgres 32M Jul 8 10:23 PostgreSQL.1921401343 -rw------- 1 postgres postgres 32M Jul 8 10:23 PostgreSQL.1931571650 -rw------- 1 postgres postgres 2.0M Jul 8 10:23 PostgreSQL.2002232858 -rw------- 1 postgres postgres 2.0M Jul 8 10:23 PostgreSQL.2057901523 -rw------- 1 postgres postgres 2.0M Jul 8 10:23 PostgreSQL.2110310896 -rw------- 1 postgres postgres 65M Jul 8 08:39 PostgreSQL.2136390898 -rw------- 1 postgres postgres 182K Jul 8 08:39 PostgreSQL.261370809 -rw------- 1 postgres postgres 16M Jul 8 10:23 PostgreSQL.397419407 -rw------- 1 postgres postgres 4.0M Jul 8 10:23 PostgreSQL.431734656 -rw------- 1 postgres postgres 128M Jul 8 10:23 PostgreSQL.478359814 -rw------- 1 postgres postgres 8.0M Jul 8 10:23 PostgreSQL.489042863 -rw------- 1 postgres postgres 64M Jul 8 10:23 PostgreSQL.590987495 -rw------- 1 postgres postgres 3.4M Jul 8 08:39 PostgreSQL.62466476 -rw------- 1 postgres postgres 16M Jul 8 10:23 PostgreSQL.629400316 -rw------- 1 postgres postgres 6.8K Jul 8 08:39 PostgreSQL.741718396 -rw------- 1 postgres postgres 16M Jul 8 10:23 PostgreSQL.770970033 -rw------- 1 postgres postgres 1.0M Jul 8 10:23 PostgreSQL.776045115 -rw------- 1 postgres postgres 64M Jul 8 10:23 PostgreSQL.795742467 -rw------- 1 postgres postgres 32M Jul 8 10:23 PostgreSQL.835134775 -rw------- 1 postgres postgres 32M Jul 8 10:23 PostgreSQL.953710812 How can I configure limit for total shared memory size? Best regards, Konstantin=