- Notifications
You must be signed in to change notification settings - Fork5
Commit40d3503
committed
Avoid floating-point underflow while tracking buffer allocation rate.
When the system is idle for awhile after activity, the "smoothed_alloc"state variable in BgBufferSync converges slowly to zero. With standardIEEE float arithmetic this results in several iterations with denormalizedvalues, which causes kernel traps and annoying log messages on somepoorly-designed platforms. There's no real need to track such small valuesof smoothed_alloc, so we can prevent the kernel traps by forcing it to zeroas soon as it's too small to be interesting for our purposes. This issueis purely cosmetic, since the iterations don't happen fast enough for thekernel traps to pose any meaningful performance problem, but still it seemsworth shutting up the log messages.The kernel log messages were previously reported by a number of people,but kudos to Greg Matthews for tracking down exactly where they were comingfrom.1 parenta1a233a commit40d3503
1 file changed
+12
-1
lines changedLines changed: 12 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1473 | 1473 |
| |
1474 | 1474 |
| |
1475 | 1475 |
| |
1476 |
| - | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
1477 | 1488 |
| |
1478 | 1489 |
| |
1479 | 1490 |
| |
|
0 commit comments
Comments
(0)