forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3bd8439
committed
Allow BufferAccessStrategy to limit pin count.
While pinning extra buffers to look ahead, users of strategies are indanger of using too many buffers. For some strategies, that means"escaping" from the ring, and in others it means forcing dirty data todisk very frequently with associated WAL flushing. Since external codehas no insight into any of that, allow individual strategy types toexpose a clamp that should be applied when deciding how many buffers topin at once.Reviewed-by: Andres Freund <andres@anarazel.de>Reviewed-by: Melanie Plageman <melanieplageman@gmail.com>Discussion:https://postgr.es/m/CAAKRu_aJXnqsyZt6HwFLnxYEBgE17oypkxbKbT1t1geE_wvH2Q%40mail.gmail.com1 parentf956ecd commit3bd8439
File tree
3 files changed
+48
-0
lines changed- src
- backend/storage
- aio
- buffer
- include/storage
3 files changed
+48
-0
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
419 | 419 |
| |
420 | 420 |
| |
421 | 421 |
| |
| 422 | + | |
422 | 423 |
| |
423 | 424 |
| |
424 | 425 |
| |
| |||
460 | 461 |
| |
461 | 462 |
| |
462 | 463 |
| |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
463 | 468 |
| |
464 | 469 |
| |
465 | 470 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
629 | 629 |
| |
630 | 630 |
| |
631 | 631 |
| |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
632 | 674 |
| |
633 | 675 |
| |
634 | 676 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
318 | 318 |
| |
319 | 319 |
| |
320 | 320 |
| |
| 321 | + | |
321 | 322 |
| |
322 | 323 |
| |
323 | 324 |
| |
|
0 commit comments
Comments
(0)