Re: Separating bgwriter and checkpointer

From: "Dickson S(dot) Guedes" <listas(at)guedesoft(dot)net>
To: Simon Riggs <simon(at)2ndquadrant(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Separating bgwriter and checkpointer
Date: 2011-10-04 01:51:52
Message-ID: CAHHcrepvp37FLU=ahs-T2nQ7WdvpGJNv_ADkmnw2JMXhX1gB6A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

2011/10/3 Simon Riggs <simon(at)2ndquadrant(dot)com>:
> On Sun, Oct 2, 2011 at 11:45 PM, Dickson S. Guedes <listas(at)guedesoft(dot)net> wrote:
>> I'm trying your patch, it was applied cleanly to master and compiled
>> ok. But since I started postgres I'm seeing a  99% of CPU usage:
>
> Oh, thanks. I see what happened. I was toying with the idea of going
> straight to a WaitLatch implementation for the loop but decided to
> leave it out for a later patch, and then skipped the sleep as well.
>
> New version attached.

Working now but even passing all tests for make check, the
regress_database's postmaster doesn't shutdown properly.

$ make check
...
...
============== creating temporary installation ==============
============== initializing database system ==============
============== starting postmaster ==============
running on port 57432 with PID 20094
============== creating database "regression" ==============
...
============== shutting down postmaster ==============
pg_ctl: server does not shut down
pg_regress: could not stop postmaster: exit code was 256

$ uname -a
Linux betelgeuse 2.6.38-11-generic-pae #50-Ubuntu SMP Mon Sep 12
22:21:04 UTC 2011 i686 i686 i386 GNU/Linux

$ grep "$ ./configure" config.log
$ ./configure --enable-debug --enable-cassert
--prefix=/srv/postgres/bgwriter_split

Best regards,
--
Dickson S. Guedes
mail/xmpp: guedes(at)guedesoft(dot)net - skype: guediz
http://guedesoft.net - http://www.postgresql.org.br

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2011-10-04 02:22:54 Re: [v9.2] make_greater_string() does not return a string in some cases
Previous Message Bruce Momjian 2011-10-04 01:50:17 Re: Bug with pg_ctl -w/wait and config-only directories