mirror of
https://github.com/postgres/postgres.git
synced 2025-11-25 12:03:53 +03:00
Add writeback to pg_stat_io
28e626bde0added the concept of IOOps but neglected to include writeback operations.ac8d53dae5added time spent doing these I/O operations. Without counting writeback, checkpointer write time in the log often differed substantially from that in pg_stat_io. To fix this, add IOOp IOOP_WRITEBACK and track writeback in pg_stat_io. Bumps catversion. Author: Melanie Plageman <melanieplageman@gmail.com> Reviewed-by: Kyotaro Horiguchi <horikyota.ntt@gmail.com> Reported-by: Andres Freund <andres@anarazel.de> Discussion: https://postgr.es/m/20230419172326.dhgyo4wrrhulovt6%40awork3.anarazel.de
This commit is contained in:
@@ -388,8 +388,9 @@ extern PGDLLIMPORT CkptSortItem *CkptBufferIds;
|
||||
*/
|
||||
/* bufmgr.c */
|
||||
extern void WritebackContextInit(WritebackContext *context, int *max_pending);
|
||||
extern void IssuePendingWritebacks(WritebackContext *wb_context);
|
||||
extern void ScheduleBufferTagForWriteback(WritebackContext *wb_context, BufferTag *tag);
|
||||
extern void IssuePendingWritebacks(WritebackContext *wb_context, IOContext io_context);
|
||||
extern void ScheduleBufferTagForWriteback(WritebackContext *wb_context,
|
||||
IOContext io_context, BufferTag *tag);
|
||||
|
||||
/* freelist.c */
|
||||
extern IOContext IOContextForStrategy(BufferAccessStrategy strategy);
|
||||
|
||||
Reference in New Issue
Block a user