Skip to content

Commit cb43d25

Browse files
committed
wordsmith
1 parent dfff1bb commit cb43d25

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

awscrt/s3.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,11 @@ class S3FileIoOptions:
186186
"""
187187
Enable direct IO to bypass the OS cache. Helpful when the disk I/O outperforms the kernel cache.
188188
189+
- Currently only Linux supports direct I/O. On unsupported platforms, the request transparently
190+
falls back to buffered I/O and a warning is logged.
191+
- Supported for both upload (send_filepath) and download (recv_filepath).
189192
- This is a BEST-EFFORT optimization. The request transparently falls back to
190-
buffered I/O (logging a warning) on unsupported platforms or when alignment
191-
preconditions are not met (part_size not page-aligned, last part has unaligned
192-
length, etc).
193+
buffered I/O (logging a warning) when direct io write fails.
193194
- Check NOTES for O_DIRECT for additional info https://man7.org/linux/man-pages/man2/openat.2.html
194195
195196
In summary, O_DIRECT is a potentially powerful tool that should be used with caution.

0 commit comments

Comments
 (0)