You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.
Looking at bpm_test, it is incredibly unergonomic to get a working task runs on top of thread-local instance of the BPM.
First, you need to get access to a DiskManagerHandle, which lets you get access to the thread-local IoUringAsync instance. Then, you have to create a new tokio runtime on that thread where you have to set up the on_thread_park with a daemon that submits and polls. Then somewhere you have to create an eviction task (either on a separate worker thread or a foreground task [which is deadlocking right now 💀]) that makes sure frames are getting freed at reasonable enough times otherwise the entire system will freeze up.
The entire ergonomics of setting this up manually is pretty bad. It would be nice if there was a clear cut way to do this, but considering that the folks over at tokio-uring are having trouble with a similar problem: https://github.com/tokio-rs/tokio-uring/issues issue 292 (not a hyperlink so I don't link them back to here), I don't think that this is an easy design decision to make.
The text was updated successfully, but these errors were encountered:
Looking at
bpm_test
, it is incredibly unergonomic to get a working task runs on top of thread-local instance of the BPM.First, you need to get access to a
DiskManagerHandle
, which lets you get access to the thread-localIoUringAsync
instance. Then, you have to create a newtokio
runtime on that thread where you have to set up theon_thread_park
with a daemon thatsubmit
s andpoll
s. Then somewhere you have to create an eviction task (either on a separate worker thread or a foreground task [which is deadlocking right now 💀]) that makes sure frames are getting freed at reasonable enough times otherwise the entire system will freeze up.The entire ergonomics of setting this up manually is pretty bad. It would be nice if there was a clear cut way to do this, but considering that the folks over at
tokio-uring
are having trouble with a similar problem: https://github.com/tokio-rs/tokio-uring/issues issue 292 (not a hyperlink so I don't link them back to here), I don't think that this is an easy design decision to make.The text was updated successfully, but these errors were encountered: