Re: Terminate the idle sessions

Поиск
Список
Период
Сортировка
От Li Japin
Тема Re: Terminate the idle sessions
Дата
Msg-id 62AA3E9B-21B3-42E7-8118-7AEB964F7C36@hotmail.com
обсуждение исходный текст
Ответ на Re: Terminate the idle sessions  (Thomas Munro <thomas.munro@gmail.com>)
Ответы Re: Terminate the idle sessions  (Thomas Munro <thomas.munro@gmail.com>)
Список pgsql-hackers


On Aug 31, 2020, at 8:51 AM, Thomas Munro <thomas.munro@gmail.com> wrote:

The main problem I have with it is the high frequency setitimer()
calls.  If you enable both statement_timeout and idle_session_timeout,
then we get up to huge number of system calls, like the following
strace -c output for a few seconds of one backend under pgbench -S
workload shows:

% time     seconds  usecs/call     calls    errors syscall
------ ----------- ----------- --------- --------- ----------------
39.45    0.118685           0    250523           setitimer
29.98    0.090200           0    125275           sendto
24.30    0.073107           0    126235       973 recvfrom
 6.01    0.018068           0     20950           pread64
 0.26    0.000779           0       973           epoll_wait
------ ----------- ----------- --------- --------- ----------------
100.00    0.300839                523956       973 total

Hi, Thomas,

Could you give the more details about the test instructions?

В списке pgsql-hackers по дате отправления:

Предыдущее
От: David Rowley
Дата:
Сообщение: Re: Get rid of runtime handling of AlternativeSubPlan?
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: [PATCH v1] explicit_bzero.c: using explicit_memset on NetBSD