Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Commit 72e05f0

Browse files
committed
Merge branch 'nik-more-from-pg-stat-bgwriter' into HEAD
2 parents c59a2de + 36f5c95 commit 72e05f0

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

nancy_run.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2533,12 +2533,19 @@ while : ; do
25332533
checkpoint_t=$(( checkpoint_write_t + checkpoint_sync_t ))
25342534
checkpoint_mb=$(( checkpoint_buffers * 8 / 1024 ))
25352535

2536+
buffers_clean=$(echo $checkpoint_data | awk -F',' '{print $6}')
2537+
buffers_clean_mb=$(( buffers_clean * 8 / 1024 ))
2538+
buffers_backend=$(echo $checkpoint_data | awk -F',' '{print $8}')
2539+
buffers_backend_mb=$(( buffers_backend * 8 / 1024 ))
2540+
25362541
if [[ $checkpoint_t > 0 ]]; then
25372542
checkpoint_mbps=$(( checkpoint_buffers * 8000 / (1024 * checkpoint_t) ))
25382543
else
25392544
checkpoint_mbps=0
25402545
fi
2541-
echo -e "${MSG_PREFIX} ${checkpoint_buffers} buffers (${checkpoint_mb} MiB), took ${checkpoint_t} ms, avg tput: ${checkpoint_mbps} MiB/s" | tee -a "$summary_fname"
2546+
echo -e "${MSG_PREFIX} Buffers written: ${checkpoint_buffers} by checkpointer (${checkpoint_mb} MiB), took ${checkpoint_t} ms, avg tput: ${checkpoint_mbps} MiB/s" | tee -a "$summary_fname"
2547+
echo -e "${MSG_PREFIX} ${buffers_clean} by background writer (${buffers_clean_mb} MiB)"
2548+
echo -e "${MSG_PREFIX} ${buffers_backend} by backends (${buffers_backend_mb} MiB)"
25422549

25432550
echo -e "------------------------------------------------------------------------------" | tee -a "$summary_fname"
25442551
# end of summary

0 commit comments

Comments
 (0)