System load consideration before spawning parallel workers - Mailing list pgsql-hackers

From Haribabu Kommi
Subject System load consideration before spawning parallel workers
Date
Msg-id CAJrrPGe23T0TQ3V5GABDv0rGdBXhQtCp=SpfY6fJ+YHxuSt5nQ@mail.gmail.com
Whole thread Raw
Responses Re: System load consideration before spawning parallel workers
List pgsql-hackers
we observed that spawning the specified number of parallel workers for
every query that satisfies for parallelism is sometimes leading to
performance drop compared to improvement during the peak system load
with other processes. Adding more processes to the system is leading
to more context switches thus it reducing the performance of other SQL
operations.

In order to avoid this problem, how about adding some kind of system
load consideration into account before spawning the parallel workers?

This may not be a problem for some users, so instead of adding the
code into the core for the system load calculation and etc, how about
providing some additional hook in the code? so that user who wants to
consider the system load registers the function and this hooks
provides the number of parallel workers that can be started.

comments?

Regards,
Hari Babu
Fujitsu Australia



pgsql-hackers by date:

Previous
From: Kyotaro HORIGUCHI
Date:
Subject: Re: Wrong defeinition of pq_putmessage_noblock since 9.5
Next
From: Michael Paquier
Date:
Subject: Re: WAL logging problem in 9.4.3?