Commit d1f18a8
authored
trace: update tracing-subscriber to 0.2.0-alpha.6 (#423)
Version 0.0.7 of `sharded-slab` contains a bug where, when the `remove`
method is called with the index of a slot that is not being accessed
concurrently, the slot is emptied but **not** placed on the free list.
This issue meant that, under `tracing-subscriber`'s usage pattern, where
slab entries are almost always uncontended when reused, allocated slab
pages are almost never reused, resulting in unbounded slab growth over
time (i.e. a memory leak).
This commit updates `tracing-subscriber`' to version 0.2.0-alpha.6,
which in turn bumps the `sharded-slab` dependency to v0.0.8, which
includes commit hawkw/sharded-slab@dfdd7ae. That commit fixes this bug.
I've empirically verified that, after running `linkerd2-proxy` under
load with a global `trace` filter that enables a *lot* of spans, heap
usage remains stable, and the characteristic stair-step heap growth
pattern of doubling slab allocations doesn't occur. This indicates that
freed slots are actually being reused, and (once fully warmed up), the
slab will only grow when the number of active spans in the system
increases.

Closes linkerd/linkerd2#3998
Signed-off-by: Eliza Weisman <[email protected]>1 parent 52cc869 commit d1f18a8
File tree
4 files changed
+21
-15
lines changed- linkerd
- app/core
- src
- proxy/transport
4 files changed
+21
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | | - | |
146 | 145 | | |
147 | 146 | | |
148 | 147 | | |
| |||
1900 | 1899 | | |
1901 | 1900 | | |
1902 | 1901 | | |
1903 | | - | |
| 1902 | + | |
1904 | 1903 | | |
1905 | | - | |
| 1904 | + | |
1906 | 1905 | | |
1907 | 1906 | | |
1908 | 1907 | | |
| |||
1919 | 1918 | | |
1920 | 1919 | | |
1921 | 1920 | | |
| 1921 | + | |
| 1922 | + | |
| 1923 | + | |
| 1924 | + | |
| 1925 | + | |
| 1926 | + | |
1922 | 1927 | | |
1923 | 1928 | | |
1924 | 1929 | | |
| |||
2560 | 2565 | | |
2561 | 2566 | | |
2562 | 2567 | | |
2563 | | - | |
| 2568 | + | |
2564 | 2569 | | |
2565 | | - | |
| 2570 | + | |
2566 | 2571 | | |
2567 | 2572 | | |
2568 | 2573 | | |
| |||
2572 | 2577 | | |
2573 | 2578 | | |
2574 | 2579 | | |
2575 | | - | |
| 2580 | + | |
2576 | 2581 | | |
2577 | 2582 | | |
2578 | 2583 | | |
| |||
2590 | 2595 | | |
2591 | 2596 | | |
2592 | 2597 | | |
2593 | | - | |
| 2598 | + | |
2594 | 2599 | | |
2595 | 2600 | | |
2596 | 2601 | | |
| |||
2614 | 2619 | | |
2615 | 2620 | | |
2616 | 2621 | | |
2617 | | - | |
| 2622 | + | |
2618 | 2623 | | |
2619 | 2624 | | |
2620 | 2625 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
| 66 | + | |
| 67 | + | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
0 commit comments