-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
141365: kvserver: wait for all streams to be connected r=sumeerbhola a=pav-kv Previously, `waitForConnectedStreams` could return prematurely when one of the streams is in `StateProbe` and about to be closed. This commit ensures we wait for the streams to be connected / in `StateReplicate`. Fixes #138103, #139229 141575: server: purge jemalloc when cgo mem overhead is high r=RaduBerinde a=RaduBerinde #### server: pass BaseConfig to startSampleEnvironment Epic: none Release note: None #### server: purge jemalloc when cgo mem overhead is high Whenever we sample the environment (every 10s by default), we check if the CGo overhead is above 20%; in which case we tell jemalloc to purge dirty pages. We limit the frequency of the purges to one every 2 minutes (these settings are configurable). This is meant to be a backup safety mechanism to avoid OOMs. With the updated jemalloc default configuration, I don't expect this to happen much in practice (if at all). Fixes: #141379 Release note: None --- Here is an example of a 30min TPCC run (left is master, right is with the change). I used a terrible malloc conf (`background_thread:false,dirty_decay_ms:1000000,muzzy_decay_ms:500000,narenas:128`) to get a lot of overhead. The overhead graphs show the CGo Total minus 7.6GB which is the high watermark for CGO Alloc. The purge happens when the overhead goes above ~1.5Gb. <img width="1116" alt="image" src="https://github.com/user-attachments/assets/dc32b081-88a3-4284-9880-33e2f7d82679" /> Purge logs from one of the nodes: ``` 295:I250216 18:24:27.988224 546 server/status/runtime_jemalloc.go:191 ⋮ [T1,Vsystem,n1] 185 jemalloc arenas purged (took 203.915292ms) 303:I250216 18:29:18.462705 546 server/status/runtime_jemalloc.go:191 ⋮ [T1,Vsystem,n1] 193 jemalloc arenas purged (took 206.945658ms) 307:I250216 18:35:38.638441 546 server/status/runtime_jemalloc.go:191 ⋮ [T1,Vsystem,n1] 197 jemalloc arenas purged (took 235.908998ms) 311:I250216 18:42:28.758720 546 server/status/runtime_jemalloc.go:191 ⋮ [T1,Vsystem,n1] 201 jemalloc arenas purged (took 245.213056ms) 323:I250216 18:48:58.986148 546 server/status/runtime_jemalloc.go:191 ⋮ [T1,Vsystem,n1] 213 jemalloc arenas purged (took 98.60313ms) ``` 141619: kvserver: show store number when printing metrics r=rickystewart a=RaduBerinde Annotate the context to include the store tag, and add a log line with the store number as well. ``` I250218 15:01:57.233455 403 3@kv/kvserver/store.go:3785 ⋮ [T1,Vsystem,n1,s1] 31 Pebble metrics: I250218 15:01:57.233455 403 3@kv/kvserver/store.go:3785 ⋮ [T1,Vsystem,n1,s1] 31 + | | | | ingested | moved | written | | amp I250218 15:01:57.233455 403 3@kv/kvserver/store.go:3785 ⋮ [T1,Vsystem,n1,s1] 31 +level | tables size val-bl vtables | score | in | tables size | tables size | tables size | read | r w I250218 15:01:57.233455 403 3@kv/kvserver/store.go:3785 ⋮ [T1,Vsystem,n1,s1] 31 +------+-----------------------------+-------+-------+--------------+--------------+--------------+-------+--------- ``` Epic: none Fixes: #141526 141630: changefeedccl: fix test failure r=andyyang890 a=asg0451 TestAlterChangefeedAddTargetsDuringBackfill was failing due to the interaction of the llrb span merging issue (#141405) and the new checkpoint system. Force the test to run with the btree frontier. Fixes: #141463 Release note: None 141636: changefeedccl: add log to debug test r=andyyang890 a=asg0451 Add verbose logging to test to debug issue. Fixes: #141489 Informs: #140669 Release note: None Co-authored-by: Pavel Kalinnikov <pavel@cockroachlabs.com> Co-authored-by: Radu Berinde <radu@cockroachlabs.com> Co-authored-by: Miles Frankel <miles.frankel@cockroachlabs.com>
- Loading branch information
Showing
13 changed files
with
201 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.