Re: Effect of stopped status collector process - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: Effect of stopped status collector process
Date
Msg-id 20081125140352.GD4875@alvh.no-ip.org
Whole thread Raw
In response to Re: Effect of stopped status collector process  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Effect of stopped status collector process
Re: Effect of stopped status collector process
List 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.

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Effect of stopped status collector process
Next
From: Tom Lane
Date:
Subject: Re: Effect of stopped status collector process