Conversation
jkozlowski
commented
Nov 23, 2018
- Also trying to figure out how to test it but currently running into the fact that dpdk can only be initialised once per process.
- Therefore I'm experimenting with a fork per test, but this is likely going to fail miserably...
|
Out of interest -- why are you trying to create multiple instances, to begin with? Would it not be possible to allocate an event, and dispatch that event to the reactor (the SPDK reactor that is). Each event could exist out of a chain of functions/futures (that should be small to prevent blocking other events) Not much unlike the initial callback passed to event.alloc( || {
// whatever I want to run on the reactor and in the context of the reactor threads
} |
|
Yeah, that wasn't my problem. I wanted to be able to have a clean slate before each test so I can read-write whatever I want. But now that I think about it, I guess I could just generate unique backends for each test and that could work. Anyway, something to try at some point. |