Re: Effect of stopped status collector process

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Siddharth Shah <siddharth(dot)shah(at)elitecore(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Effect of stopped status collector process
Date: 2008-11-25 14:03:52
Message-ID: 20081125140352.GD4875@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane wrote:

> If you are willing to run a hand-hacked version then I'd suggest doing
> your experimentation with CVS HEAD. There are changes in place already
> to reduce the stats file traffic.

Why do we _have_ to write the file to disk? I wonder if it would work
to store the file in a mmaped memory region and have the readers get
data from there. We could have more than one copy, reference-counted so
that they can be removed when the old readers are gone.

Are MAP_SHARED | MAP_ANONYMOUS mmapped regions portable? Linux claims
to support them from 2.4.

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2008-11-25 14:07:30 Re: Effect of stopped status collector process
Previous Message Tom Lane 2008-11-25 13:54:56 Re: Effect of stopped status collector process