pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Template0 age is increasing speedily.
6+ messages / 5 participants
[nested] [flat]

* Template0 age is increasing speedily.
@ 2006-09-07 10:31 Nimesh Satam <nimesh.zedo@gmail.com>
  2006-09-07 10:40 ` Re: [PATCHES] Template0 age is increasing speedily. Chris Mair <chrisnospam@1006.org>
  2006-09-07 13:04 ` Re: [HACKERS] Template0 age is increasing speedily. Merlin Moncure <mmoncure@gmail.com>
  0 siblings, 2 replies; 6+ messages in thread

From: Nimesh Satam @ 2006-09-07 10:31 UTC (permalink / raw)
  To: pgsql-hackers@postgresql.org; pgsql-bugs@postgresql.org; pgsql-patches@postgresql.org; pgsql-performance

Hi!..

I noticed that the age of  template0 is increasing very rapidly..Can you
please let me know how we can control this ....and what causes such
problems.

We also noticed that the database slow downs heavily at a particular
time..Can you suggest any tools which will help in diagnosing the root cause
behiond the data load.



Regards,
Nimesh.

^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: [PATCHES] Template0 age is increasing speedily.
  2006-09-07 10:31 Template0 age is increasing speedily. Nimesh Satam <nimesh.zedo@gmail.com>
@ 2006-09-07 10:40 ` Chris Mair <chrisnospam@1006.org>
  2006-09-07 10:49   ` Re: [PATCHES] Template0 age is increasing speedily. Nimesh Satam <nimesh.zedo@gmail.com>
  1 sibling, 1 reply; 6+ messages in thread

From: Chris Mair @ 2006-09-07 10:40 UTC (permalink / raw)
  To: Nimesh Satam <nimesh.zedo@gmail.com>; +Cc: pgsql-performance

On Thu, 2006-09-07 at 16:01 +0530, Nimesh Satam wrote:
 
> I noticed that the age of  template0 is increasing very rapidly..Can
> you please let me know how we can control this ....and what causes
> such problems. 
>  
> We also noticed that the database slow downs heavily at a particular
> time..Can you suggest any tools which will help in diagnosing the root
> cause behiond the data load.


Hi,

first of all: there is no need to cross post on 4 lists.
If you have a performance problem, post on pgsql-performance.

Second, please tell us which version of PostgreSQL on
which operating system you're using. Diagnosing your
problem might depend on which OS you use...

Finally, explain what you mean by "the age of template0 is
increasing very rapidly", you mean "the size is increasing"?

Bye,
Chris.



-- 

Chris Mair
http://www.1006.org




^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: [PATCHES] Template0 age is increasing speedily.
  2006-09-07 10:31 Template0 age is increasing speedily. Nimesh Satam <nimesh.zedo@gmail.com>
  2006-09-07 10:40 ` Re: [PATCHES] Template0 age is increasing speedily. Chris Mair <chrisnospam@1006.org>
@ 2006-09-07 10:49   ` Nimesh Satam <nimesh.zedo@gmail.com>
  2006-09-07 12:48     ` Re: [PATCHES] Template0 age is increasing speedily. Bill Moran <wmoran@collaborativefusion.com>
  2006-09-07 12:55     ` Re: [PATCHES] Template0 age is increasing speedily. Dave Dutcher <dave@tridecap.com>
  0 siblings, 2 replies; 6+ messages in thread

From: Nimesh Satam @ 2006-09-07 10:49 UTC (permalink / raw)
  To: Chris Mair <chrisnospam@1006.org>; +Cc: pgsql-performance

Hi,

Postgres Version used is 8.1.3
OS: Linux


'SELECT datname, age(datfrozenxid) FROM pg_database'

postgres       |       1575
xyz               | 1073743934
template1      |       1632
template0      |   61540256

This is the command which I tried and got the above output, and the number
is increasing pretty fast for template0.

Please let me know if this a problem.



Regards,
Nimesh.


On 9/7/06, Chris Mair <chrisnospam@1006.org> wrote:
>
> On Thu, 2006-09-07 at 16:01 +0530, Nimesh Satam wrote:
>
> > I noticed that the age of  template0 is increasing very rapidly..Can
> > you please let me know how we can control this ....and what causes
> > such problems.
> >
> > We also noticed that the database slow downs heavily at a particular
> > time..Can you suggest any tools which will help in diagnosing the root
> > cause behiond the data load.
>
>
> Hi,
>
> first of all: there is no need to cross post on 4 lists.
> If you have a performance problem, post on pgsql-performance.
>
> Second, please tell us which version of PostgreSQL on
> which operating system you're using. Diagnosing your
> problem might depend on which OS you use...
>
> Finally, explain what you mean by "the age of template0 is
> increasing very rapidly", you mean "the size is increasing"?
>
> Bye,
> Chris.
>
>
>
> --
>
> Chris Mair
> http://www.1006.org
>
>

^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: [PATCHES] Template0 age is increasing speedily.
  2006-09-07 10:31 Template0 age is increasing speedily. Nimesh Satam <nimesh.zedo@gmail.com>
  2006-09-07 10:40 ` Re: [PATCHES] Template0 age is increasing speedily. Chris Mair <chrisnospam@1006.org>
  2006-09-07 10:49   ` Re: [PATCHES] Template0 age is increasing speedily. Nimesh Satam <nimesh.zedo@gmail.com>
@ 2006-09-07 12:48     ` Bill Moran <wmoran@collaborativefusion.com>
  1 sibling, 0 replies; 6+ messages in thread

From: Bill Moran @ 2006-09-07 12:48 UTC (permalink / raw)
  To: Nimesh Satam <nimesh.zedo@gmail.com>; +Cc: pgsql-performance

In response to "Nimesh Satam" <nimesh.zedo@gmail.com>:

> Hi,
> 
> Postgres Version used is 8.1.3
> OS: Linux
> 
> 
> 'SELECT datname, age(datfrozenxid) FROM pg_database'
> 
> postgres       |       1575
> xyz               | 1073743934
> template1      |       1632
> template0      |   61540256
> 
> This is the command which I tried and got the above output, and the number
> is increasing pretty fast for template0.
> 
> Please let me know if this a problem.

Short answer: no, this is not a problem.

Long answer: 
http://www.postgresql.org/docs/8.1/interactive/manage-ag-templatedbs.html

-- 
Bill Moran
Collaborative Fusion Inc.

****************************************************************
IMPORTANT: This message contains confidential information and is
intended only for the individual named. If the reader of this
message is not an intended recipient (or the individual
responsible for the delivery of this message to an intended
recipient), please be advised that any re-use, dissemination,
distribution or copying of this message is prohibited. Please
notify the sender immediately by e-mail if you have received
this e-mail by mistake and delete this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or
error-free as information could be intercepted, corrupted, lost,
destroyed, arrive late or incomplete, or contain viruses. The
sender therefore does not accept liability for any errors or
omissions in the contents of this message, which arise as a
result of e-mail transmission.
****************************************************************



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: [PATCHES] Template0 age is increasing speedily.
  2006-09-07 10:31 Template0 age is increasing speedily. Nimesh Satam <nimesh.zedo@gmail.com>
  2006-09-07 10:40 ` Re: [PATCHES] Template0 age is increasing speedily. Chris Mair <chrisnospam@1006.org>
  2006-09-07 10:49   ` Re: [PATCHES] Template0 age is increasing speedily. Nimesh Satam <nimesh.zedo@gmail.com>
@ 2006-09-07 12:55     ` Dave Dutcher <dave@tridecap.com>
  1 sibling, 0 replies; 6+ messages in thread

From: Dave Dutcher @ 2006-09-07 12:55 UTC (permalink / raw)
  To: 'Nimesh Satam' <nimesh.zedo@gmail.com>; +Cc: pgsql-performance

I would expect that the age of Template0 is increasing at the same rate as
every other database in your cluster.  Transaction IDs are global across all
databases in the cluster, so as I understand it, executing a transaction in
any database will increase the age of all databases by 1.
 

-----Original Message-----
From: pgsql-performance-owner@postgresql.org
[mailto:pgsql-performance-owner@postgresql.org] On Behalf Of Nimesh Satam
Sent: Thursday, September 07, 2006 5:49 AM
To: Chris Mair
Cc: pgsql-performance@postgresql.org
Subject: Re: [PERFORM] [PATCHES] Template0 age is increasing speedily.



Hi,
 
Postgres Version used is 8.1.3
OS: Linux
 
 
'SELECT datname, age(datfrozenxid) FROM pg_database'
 
postgres       |       1575
xyz               | 1073743934
template1      |       1632
template0      |   61540256
 
This is the command which I tried and got the above output, and the number
is increasing pretty fast for template0.
 
Please let me know if this a problem.
 
 
 
Regards,
Nimesh.

 
On 9/7/06, Chris Mair <chrisnospam@1006.org> wrote: 

On Thu, 2006-09-07 at 16:01 +0530, Nimesh Satam wrote:

> I noticed that the age of  template0 is increasing very rapidly..Can 
> you please let me know how we can control this ....and what causes
> such problems.
>
> We also noticed that the database slow downs heavily at a particular
> time..Can you suggest any tools which will help in diagnosing the root 
> cause behiond the data load.


Hi,

first of all: there is no need to cross post on 4 lists.
If you have a performance problem, post on pgsql-performance.

Second, please tell us which version of PostgreSQL on 
which operating system you're using. Diagnosing your
problem might depend on which OS you use...

Finally, explain what you mean by "the age of template0 is
increasing very rapidly", you mean "the size is increasing"? 

Bye,
Chris.



--

Chris Mair
http://www.1006.org

^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: [HACKERS] Template0 age is increasing speedily.
  2006-09-07 10:31 Template0 age is increasing speedily. Nimesh Satam <nimesh.zedo@gmail.com>
@ 2006-09-07 13:04 ` Merlin Moncure <mmoncure@gmail.com>
  1 sibling, 0 replies; 6+ messages in thread

From: Merlin Moncure @ 2006-09-07 13:04 UTC (permalink / raw)
  To: Nimesh Satam <nimesh.zedo@gmail.com>; +Cc: pgsql-hackers@postgresql.org; pgsql-bugs@postgresql.org; pgsql-patches@postgresql.org; pgsql-performance

On 9/7/06, Nimesh Satam <nimesh.zedo@gmail.com> wrote:
> We also noticed that the database slow downs heavily at a particular
> time..Can you suggest any tools which will help in diagnosing the root cause
> behiond the data load.

possible checkpoint?  poorly formulated query?  it could be any number
of things.  use standard tools to diagnose the problem, including:

unix tools: top, vmstat, etc
postgresql query logging, including min_statement_duration
explain analyze



^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2006-09-07 13:04 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-09-07 10:31 Template0 age is increasing speedily. Nimesh Satam <nimesh.zedo@gmail.com>
2006-09-07 10:40 ` Chris Mair <chrisnospam@1006.org>
2006-09-07 10:49   ` Nimesh Satam <nimesh.zedo@gmail.com>
2006-09-07 12:48     ` Bill Moran <wmoran@collaborativefusion.com>
2006-09-07 12:55     ` Dave Dutcher <dave@tridecap.com>
2006-09-07 13:04 ` Merlin Moncure <mmoncure@gmail.com>

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