netpoll icon indicating copy to clipboard operation
netpoll copied to clipboard

thread per core golang like glommio / seastar?

Open hiqsociety opened this issue 2 years ago • 5 comments

thread per core golang like glommio / seastar?

hiqsociety avatar May 29 '22 08:05 hiqsociety

no thread-per-core here, we only configure the number of goroutines listening for epoll, through the SetNumLoops API

Hchenn avatar May 30 '22 03:05 Hchenn

do u think there's a possibility to use thread per core in future + io_uring for this? i mean is it part of the roadmap? like monoio

hiqsociety avatar May 30 '22 04:05 hiqsociety

E.. monoio is coded in rust, golang I think might be hard to implement it, custom goruntime doesn't seem to be accepted. So maybe the solution rust -> cgo -> golang is better?

Hchenn avatar May 31 '22 03:05 Hchenn

what's the overhead like with cgo calling golang? i heard it's extremely terrible. right?

hiqsociety avatar May 31 '22 03:05 hiqsociety

not yet researched ...

Hchenn avatar May 31 '22 03:05 Hchenn

golang cannot let user side codes to imlement the thread-per-core architecture. and cgo is not a good idea to be used in high performance use-case. @hiqsociety

joway avatar Mar 28 '23 03:03 joway