Re: dynamic background workers - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: dynamic background workers
Date
Msg-id 20130703151544.GB3592@eldon.alvh.no-ip.org
Whole thread Raw
In response to Re: dynamic background workers  (Andres Freund <andres@2ndquadrant.com>)
Responses Re: dynamic background workers
List pgsql-hackers
Andres Freund escribió:

> Just as a datapoint, if you benchmark the numbers of forks that can be
> performed by a single process (i.e. postmaster) the number is easily in
> the 10s of thousands. Now forking that much has some scalability
> implications inside the kernel, but still.
> I'd be surprised if the actual fork is more than 5-10% of the current
> cost of starting a new backend.

I played at having some thousands of registered bgworkers on my laptop,
and there wasn't even that much load.  So yeah, you can have lots of
forks.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: possible/feasible to specify field and value in error msg?
Next
From: Bruce Momjian
Date:
Subject: Re: possible/feasible to specify field and value in error msg?