Using O_DIRECT (Not using the OS Page Cache)

⚓ Rust    📅 2026-01-08    👤 surdeus    👁️ 4      

surdeus

Currently I am working on implementing a buffer pool (Page Cache) in Rust for a dbms, so I want to manipulate the files on Linux without using the default OS Page Cache, I tried to find a way on how to use O_DIRECT in rust, but couldn't find anything, any thoughts ? (I am ok with writing unsafe rust code or using multiple workarounds)

2 posts - 2 participants

Read full topic

🏷️ Rust_feed