- Notifications
You must be signed in to change notification settings - Fork5k
Commitf4d0730
aio: Basic read_stream adjustments for real AIO
Adapt the read stream logic for real AIO:- If AIO is enabled, we shouldn't issue advice, but if it isn't, we should continue issuing advice- AIO benefits from reading ahead with direct IO- If effective_io_concurrency=0, pass READ_BUFFERS_SYNCHRONOUSLY to StartReadBuffers() to ensure synchronous IO executionThere are further improvements we should consider:- While in read_stream_look_ahead(), we can use AIO batch submission mode for increased efficiency. That however requires care to avoid deadlocks and thus done separately.- It can be beneficial to defer starting new IOs until we can issue multiple IOs at once. That however requires non-trivial heuristics to decide when to do so.Reviewed-by: Noah Misch <noah@leadboat.com>Co-authored-by: Andres Freund <andres@anarazel.de>Co-authored-by: Thomas Munro <thomas.munro@gmail.com>1 parentb27f863 commitf4d0730
1 file changed
+26
-13
lines changedLines changed: 26 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
72 | 72 |
| |
73 | 73 |
| |
74 | 74 |
| |
| 75 | + | |
75 | 76 |
| |
76 | 77 |
| |
77 | 78 |
| |
| |||
99 | 100 |
| |
100 | 101 |
| |
101 | 102 |
| |
| 103 | + | |
| 104 | + | |
102 | 105 |
| |
103 | 106 |
| |
104 | 107 |
| |
| |||
250 | 253 |
| |
251 | 254 |
| |
252 | 255 |
| |
253 |
| - | |
| 256 | + | |
254 | 257 |
| |
255 | 258 |
| |
256 | 259 |
| |
| |||
261 | 264 |
| |
262 | 265 |
| |
263 | 266 |
| |
264 |
| - | |
| 267 | + | |
265 | 268 |
| |
266 | 269 |
| |
267 | 270 |
| |
| |||
272 | 275 |
| |
273 | 276 |
| |
274 | 277 |
| |
275 |
| - | |
| 278 | + | |
276 | 279 |
| |
277 | 280 |
| |
278 | 281 |
| |
| |||
613 | 616 |
| |
614 | 617 |
| |
615 | 618 |
| |
| 619 | + | |
| 620 | + | |
616 | 621 |
| |
617 | 622 |
| |
618 | 623 |
| |
619 |
| - | |
620 |
| - | |
621 |
| - | |
622 |
| - | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
623 | 628 |
| |
624 |
| - | |
| 629 | + | |
| 630 | + | |
625 | 631 |
| |
626 | 632 |
| |
627 | 633 |
| |
628 | 634 |
| |
629 | 635 |
| |
630 | 636 |
| |
631 |
| - | |
632 |
| - | |
633 |
| - | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
634 | 640 |
| |
635 | 641 |
| |
| 642 | + | |
636 | 643 |
| |
| 644 | + | |
| 645 | + | |
637 | 646 |
| |
638 | 647 |
| |
639 | 648 |
| |
| |||
777 | 786 |
| |
778 | 787 |
| |
779 | 788 |
| |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
780 | 794 |
| |
781 | 795 |
| |
782 | 796 |
| |
| |||
792 | 806 |
| |
793 | 807 |
| |
794 | 808 |
| |
795 |
| - | |
796 |
| - | |
| 809 | + | |
797 | 810 |
| |
798 | 811 |
| |
799 | 812 |
| |
|
0 commit comments
Comments
(0)