[HACKERS] pg_basebackup throttling doesn't throttle as promised

Поиск
Список
Период
Сортировка
От Jeff Janes
Тема [HACKERS] pg_basebackup throttling doesn't throttle as promised
Дата
Msg-id CAMkU=1xH6mde-yL-Eo1TKBGNd0PB1-TMxvrNvqcAkN-qr2E9mw@mail.gmail.com
обсуждение исходный текст
Ответы Re: [HACKERS] pg_basebackup throttling doesn't throttle as promised  (Jeff Janes <jeff.janes@gmail.com>)
Список pgsql-hackers
The "-r" option to pg_basebackup is supposed to throttle the rate of the backup.  But it only works properly if the server is mostly idle.

Every non-trivial call to XLogFlush or XLogBackgroundFlush will wake up the wal sender (the one which is not really sending wal, but base files), and the throttling routine doesn't go back to sleep after being awoke early.  Rather, it releases another 32kb of data.


Should the basebackup.c throttle sleep in a loop until its time has expired?  

Or should walsender.c WalSndWakeup not wake a wal sender whose status is WALSNDSTATE_BACKUP?

Or both?

Cheers,

Jeff

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: [HACKERS] memory fields from getrusage()
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: [HACKERS] GnuTLS support