Re: profiling connection overhead - Mailing list pgsql-hackers

From Tom Lane
Subject Re: profiling connection overhead
Date
Msg-id 21943.1290633945@sss.pgh.pa.us
Whole thread Raw
In response to Re: profiling connection overhead  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: profiling connection overhead
List pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Nov 24, 2010, at 4:05 PM, Andres Freund <andres@anarazel.de> wrote:
>> Yes, but only once. Also scrubbing a page is faster than copying it... (and 
>> there were patches floating around to do that in advance, not sure if they got 
>> integrated into mainline linux)

> I'm not following - can you elaborate?

I think Andres is saying that bss space isn't optimized during a fork
operation: it'll be propagated to the child as copy-on-write pages.
Dunno if that's true or not, but if it is, it'd be a good reason to
avoid the scheme you're suggesting.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: profiling pgbench
Next
From: Andres Freund
Date:
Subject: Re: profiling connection overhead