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 1j1439-0000Rd-GF for pgsql-general@arkaria.postgresql.org; Mon, 10 Feb 2020 08:04:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j1438-0007F8-3n for pgsql-general@arkaria.postgresql.org; Mon, 10 Feb 2020 08:04:10 +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 1j1437-0007F1-K7 for pgsql-general@lists.postgresql.org; Mon, 10 Feb 2020 08:04:09 +0000 Received: from mail-io1-xd33.google.com ([2607:f8b0:4864:20::d33]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1j1435-0008Ew-EF for pgsql-general@lists.postgresql.org; Mon, 10 Feb 2020 08:04:08 +0000 Received: by mail-io1-xd33.google.com with SMTP id n21so6509283ioo.10 for ; Mon, 10 Feb 2020 00:04:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=6LFF0gVBquqUY4XP7J8WKQySbam+Qlp4qP7Qea7MGcI=; b=YFfa9B8HHGPwDsiEfJeFztygRoeohzI0UZihA9VA2y/yM+1NtExLccv+do6UxSVD27 EK78z/5k7iAjPbl0K4RAm1OQbRl1sMftBmGgb8/btxhxuhCAh2FXMJCYRMFQY8NLW+6t eSBChx44tzaTdMbwLbjM47ARLGLEDfBCVYopf150HD/ouD8zC4tzkpJ9pRr1WxJKrrim w8By/ZTgIAa1icjmmKBSnal1jhctPkrMIgYd6T8K8LbQHV9wZCd/aOO05yrXJmZ030Jx mSR+70fwD26ZQSAEQPOxrcpQnR4Z1p1OtlClJ0y224jppsjpdiYMUqg0ATCeOg2HrnR+ FIxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=6LFF0gVBquqUY4XP7J8WKQySbam+Qlp4qP7Qea7MGcI=; b=s659SzpDS8tiw6jCuyOcB23jAHJm0FS3VhXsEN0//v8hr26oWgieUKNRYERHFvwR2L hFqKlIPfF/M/FflFHL4YsTeJ/my1N3GV/zaZICT5oYZT3B8IRFZiYyg2gd9p/m0R19TV ecgt+iaoo85zdUvaCzIe39MfSe4k+BDKhSxgzEwJkTKfkMTEiFuimtL8HTX+6P9il7Iu S/cOQ1oN+mUpQX0cjKIHOsOWT5cVaz26Lf7QSfnwKen4cchF1I77YcHcu9ysbxMt0QAc sZp4I1pe1KTvkD/QjC2OjP1YTSG+VeusYa37WIPXF/MLcqQpxf0nlbNZANtZYIrq8qFD AYHA== X-Gm-Message-State: APjAAAV+qaDNLkJQQCP4WYJ9BJc9Nv39XtoO4mgThGndV2f5decNOv/t UZTdAzlpLQVd2012dkYDtEdxNI3CaUVwvXcG+T/RP/w= X-Google-Smtp-Source: APXvYqycTm4fP76vhcF6fnr4CVtAmEJ8Wv4p1CoNxr+Jfhix/AidEw9waAPbx7EbvXtM9bERN1Vi98+O4cxZIS2bWr4= X-Received: by 2002:a6b:6018:: with SMTP id r24mr7465548iog.284.1581321846068; Mon, 10 Feb 2020 00:04:06 -0800 (PST) MIME-Version: 1.0 From: Ayub M Date: Mon, 10 Feb 2020 03:03:55 -0500 Message-ID: Subject: work_mem and shared_buffers question To: pgsql-general@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000e91887059e342e15" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --000000000000e91887059e342e15 Content-Type: text/plain; charset="UTF-8" 1. shared_buffers - In a regular PostgreSQL installation, say I am allocating 25% of my memory to shared_buffers that means it leaves 75% for rest such as OS, page cache and work_mems etc. Is my understanding correct? If so, AWS Aurora for Postgres uses 75% of memory for shared_buffers, then it would leave just 25% for other things? 2. Does the memory specified for work_mem, fully gets allocated to all sessions irrespective of whether they do any sorting or hashing operations? -- Regards, Ayub --000000000000e91887059e342e15 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
  1. shared_bu= ffers - In a regular PostgreSQL installation, say I am allocating 25% of my= memory to shared_buffers that means it leaves 75% for rest such as OS, pag= e cache and work_mems etc. Is my understanding correct? If so, AWS Aurora f= or Postgres uses 75% of memory for shared_buffers, then it would leave just= 25% for other things?
  2. Does the memory specified for work_mem, fully gets allocated = to all sessions irrespective of whether they do any sorting or hashing oper= ations?

--
Regards,
Ayub
--000000000000e91887059e342e15--