From c70ec0ce1e4328d7761aa7bad03c295a8f99d358 Mon Sep 17 00:00:00 2001 From: sfc-gh-tclinkenbeard Date: Mon, 26 Sep 2022 23:28:27 -0700 Subject: [PATCH] Fix writeCost documentation in global-tag-throttling.md --- design/global-tag-throttling.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/design/global-tag-throttling.md b/design/global-tag-throttling.md index 8a1f3869ad..9470495243 100644 --- a/design/global-tag-throttling.md +++ b/design/global-tag-throttling.md @@ -20,7 +20,7 @@ readCost = ceiling(bytesRead / CLIENT_KNOBS->READ_COST_BYTE_FACTOR); The "page cost" of a write operation is computed as: ``` -writeCost = SERVER_KNOBS->GLOBAL_TAG_THROTTLING_RW_FUNGIBILITY_RATIO * ((bytesWritten / CLIENT_KNOBS->WRITE_COST_BYTE_FACTOR) + 1); +writeCost = SERVER_KNOBS->GLOBAL_TAG_THROTTLING_RW_FUNGIBILITY_RATIO * ceiling(bytesWritten / CLIENT_KNOBS->WRITE_COST_BYTE_FACTOR); ``` Here `bytesWritten` includes cleared bytes. The size of range clears is estimated at commit time.