Skip site navigation (1) Skip section navigation (2)

Re: work_mem and shared_buffers

From: Heikki Linnakangas <heikki(at)enterprisedb(dot)com>
To: "Campbell, Lance" <lance(at)uiuc(dot)edu>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: work_mem and shared_buffers
Date: 2007-11-09 17:56:30
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
Campbell, Lance wrote:
> Does the amount of memory allocate to work_mem get subtracted from
> shared_buffers?
> Example:
> If work_mem is 1M and there are 10 connections and shared_buffers is
> 100M then would the total be 90 M left for shared_buffers?
> Or does the amount of memory allocated for work_mem have nothing to do
> with shared_buffers?

No, they're completely separate.

Note that a connection can use more than work_mem of memory. For 
example, if you run a query with multiple Sort or hash-nodes, each such 
node allocates up to work_mem of memory.

   Heikki Linnakangas

In response to


pgsql-performance by date

Next:From: Greg SmithDate: 2007-11-09 18:03:20
Subject: Re: dell versus hp
Previous:From: Campbell, LanceDate: 2007-11-09 17:49:03
Subject: work_mem and shared_buffers

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group