- Notifications
You must be signed in to change notification settings - Fork5
Commit2201d80
committed
Avoid extra locks in GetSnapshotData if old_snapshot_threshold < 0
On a big NUMA machine with 1000 connections in saturation loadthere was a performance regression due to spinlock contention, foracquiring values which were never used. Just fill with dummyvalues if we're not going to use them.This patch has not been benchmarked yet on a big NUMA machine, butit seems like a good idea on general principle, and it seemed toprevent an apparent 2.2% regression on a single-socket i7 boxrunning 200 connections at saturation load.1 parent5713f03 commit2201d80
1 file changed
+20
-8
lines changedLines changed: 20 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1759 | 1759 |
| |
1760 | 1760 |
| |
1761 | 1761 |
| |
1762 |
| - | |
1763 |
| - | |
1764 |
| - | |
1765 |
| - | |
1766 |
| - | |
1767 |
| - | |
1768 |
| - | |
1769 |
| - | |
| 1762 | + | |
| 1763 | + | |
| 1764 | + | |
| 1765 | + | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
| 1780 | + | |
| 1781 | + | |
1770 | 1782 |
| |
1771 | 1783 |
| |
1772 | 1784 |
| |
|
0 commit comments
Comments
(0)