pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Shianmiin <Shianmiin@gmail.com>
To: pgsql-general@postgresql.org
Subject: Re: PostgreSQL backend process high memory usage issue
Date: Fri, 8 Apr 2011 08:30:00 -0700 (PDT)
Message-ID: <1302276600400-4291173.post@n5.nabble.com> (raw)
In-Reply-To: <1302266587288-4290723.post@n5.nabble.com>
References: <1302208932097-4289407.post@n5.nabble.com>
	<BANLkTiniE+Aoey3deGW_hVAMVBELxgJqQg@mail.gmail.com>
	<1302215437402-4289630.post@n5.nabble.com>
	<1302266587288-4290723.post@n5.nabble.com>


Shianmiin wrote:
> 
> Hi Merlin,
> 
> I revised the test code with attached files and use pgbench to send the
> test queries.
> 
>  http://postgresql.1045698.n5.nabble.com/file/n4290723/dotest dotest 
>  http://postgresql.1045698.n5.nabble.com/file/n4290723/initialize.sql
> initialize.sql 
>  http://postgresql.1045698.n5.nabble.com/file/n4290723/test.sql test.sql 
> 
> Samuel
> 


Just want to put some descriptions on the revised test code:

1. This test is not a real life testing, it's is specifically designed to
emphasize the high memory usage issue of PostgreSQL backend process we
encountered.
2. The tests in the dotest file uses pgbench's feature to simulate 20
concurrent clients sending random queries, which will make the host memory
usage climb even faster; eventually all 20 concurrent PostgreSQL process
will all use 1.5 GB (30GB in total). To do the same tests as in the original
post, we can run

pgbench memoryusagetest -c 1 -j 1 -T180 -f test.sql

Samuel

--
View this message in context: http://postgresql.1045698.n5.nabble.com/PostgreSQL-backend-process-high-memory-usage-issue-tp4289407...
Sent from the PostgreSQL - general mailing list archive at Nabble.com.



view thread (24+ messages)  latest in thread

Message-ID: <1302276600400-4291173.post@n5.nabble.com>
Permalink:  ../1302276600400-4291173.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1302276600400-4291173.post@n5.nabble.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: Shianmiin@gmail.com, pgsql-general@postgresql.org
  Subject: Re: PostgreSQL backend process high memory usage issue
  In-Reply-To: <1302276600400-4291173.post@n5.nabble.com>
  References: <1302208932097-4289407.post@n5.nabble.com> <BANLkTiniE+Aoey3deGW_hVAMVBELxgJqQg@mail.gmail.com> <1302215437402-4289630.post@n5.nabble.com> <1302266587288-4290723.post@n5.nabble.com> <1302276600400-4291173.post@n5.nabble.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox