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
I've tried WSL , my apps can be compiled correctly.
But when I execute , it says "msgget: Operation not supported".
while my source code is like this:
_
Yes we need this as its fundamental to our runtime and messaging systems used by some of our fortune level customers. (msgget etc). it precludes any of our customers using WSL.
I need to use posix message queues for work and while I can run on the target hardware, being able to test things out in the WSL is often faster than cross compiling and loading code.
So msgget and mq_open type methods do not work right now.
msgget is very important to my company. When built for linux, our product uses queues to talk between long running processes and short lived ones. Transitioning this to use sockets lead to a massive performance hit when we tried it in the past. We're trying to move our customers to do all of their development work on windows (even if they ultimately test/deploy on linux) to take advantage of visual studio as much as possible. Having this issue fixed would make this push significantly easier.
Transitioning this to use sockets lead to a massive performance hit when we tried it in the past.
You are operating under the unsupported assumption that WSL's mq implementation will yield the same outcome. It might. It might not. There is no technical reason why a socketpair() would perform worse (or better for that matter). Either way you're crossing a syscall barrier. All of Electron (and ∴ VS Code) uses sockets and event fds for IPC. If there was a "massive performance hit" they probably wouldn't have gone that route; because it matters. If performance is what you are aiming for, mmap() some shared memory and put a futex() on it. But if you are migrating from native Linux to WSL, and your app does any kind of IO, you almost certainly have bigger performance fish to fry than message queues.
In any case, I hope this gets implemented for completeness. It is what your code uses, and that's plenty reason enough. But performance? I'll have to take your word for it.
Hi Ben Hillis (@benhillis)Rich Turner (@bitcrazed) , any news on this? I can imagine this is not the most important feature you have to implement but for some of us this is a show stopper. That's too bad because WSL is really impressive and I'm looking forward to ditching my last VMs!
Thanks for raising this. In general, we've been implementing syscalls on a per-need basis. Based on the feedback from this thread, we've started the work needed to implement this syscall. It is a fairly large change, so this is still "in the pipeline." I will update this thread when the work is complete and flighted.
As @bitcrazed mentioned the time taken for you to see this change will mainly depend on our ship schedule and other priorities.
Reacted by Rich Turner, EFanZh, WeirdBob, Will Crawford, Alex Rozhkevich, Lukas Frühstück, Adrian L. Shaw and Manuel de Prada Corral
Awesome. I'm glad message queues are going to be implemented in a future version as this was one feature that was holding me.back from fully embracing wsl for everyday development.
While wsl is not my target it is extremely useful for development with clion and initial testing. Then only running on the target hardware to get final results.
Activity
therealkenc commentedon Dec 1, 2016
#1016 (message)
stehufntdev commentedon Dec 1, 2016
Closing this out as a duplicate of #1016 so we can track the issue there.
benhillis commentedon Jul 5, 2017
Reopening this issue since this is the only piece of the System V family of system calls that is still unimplemented.
rodar21 commentedon Aug 2, 2017
Yes we need this as its fundamental to our runtime and messaging systems used by some of our fortune level customers. (msgget etc). it precludes any of our customers using WSL.
yeedog commentedon Feb 19, 2018
Has there been any update to this issue?
I need to use posix message queues for work and while I can run on the target hardware, being able to test things out in the WSL is often faster than cross compiling and loading code.
So msgget and mq_open type methods do not work right now.
oshz commentedon Mar 1, 2018
Same issue here, mq_open() returning with "Function not implemented"
bitcrazed commentedon Mar 4, 2018
Omair (@oshz) AS Ben Hillis (@benhillis) says above - we've not yet implemented Queue support
oshz commentedon Mar 5, 2018
Rich Turner (@bitcrazed) Thanks. Any plans on getting this implemented?
hippiehunter commentedon May 17, 2018
msgget is very important to my company. When built for linux, our product uses queues to talk between long running processes and short lived ones. Transitioning this to use sockets lead to a massive performance hit when we tried it in the past. We're trying to move our customers to do all of their development work on windows (even if they ultimately test/deploy on linux) to take advantage of visual studio as much as possible. Having this issue fixed would make this push significantly easier.
therealkenc commentedon May 17, 2018
You are operating under the unsupported assumption that WSL's mq implementation will yield the same outcome. It might. It might not. There is no technical reason why a
socketpair()would perform worse (or better for that matter). Either way you're crossing a syscall barrier. All of Electron (and ∴ VS Code) uses sockets and event fds for IPC. If there was a "massive performance hit" they probably wouldn't have gone that route; because it matters. If performance is what you are aiming for,mmap()some shared memory and put afutex()on it. But if you are migrating from native Linux to WSL, and your app does any kind of IO, you almost certainly have bigger performance fish to fry than message queues.In any case, I hope this gets implemented for completeness. It is what your code uses, and that's plenty reason enough. But performance? I'll have to take your word for it.
WeirdBob commentedon Jul 12, 2018
Hi Ben Hillis (@benhillis) Rich Turner (@bitcrazed) , any news on this? I can imagine this is not the most important feature you have to implement but for some of us this is a show stopper. That's too bad because WSL is really impressive and I'm looking forward to ditching my last VMs!
bitcrazed commentedon Jul 12, 2018
Hey Bob! I'll leave feature scheduling/planning decisions to Tara Raj (@tara-raj) and Ben Hillis (@benhillis) & team.
But yeah, I agree it'd be great to get this family of syscalls built-out :D It's mostly "just" a matter of resources x schedule x prioritization :)
tara-raj commentedon Jul 12, 2018
Thanks for raising this. In general, we've been implementing syscalls on a per-need basis. Based on the feedback from this thread, we've started the work needed to implement this syscall. It is a fairly large change, so this is still "in the pipeline." I will update this thread when the work is complete and flighted.
As @bitcrazed mentioned the time taken for you to see this change will mainly depend on our ship schedule and other priorities.
yeedog commentedon Jul 12, 2018
Awesome. I'm glad message queues are going to be implemented in a future version as this was one feature that was holding me.back from fully embracing wsl for everyday development.
While wsl is not my target it is extremely useful for development with clion and initial testing. Then only running on the target hardware to get final results.
Snapstromegon commentedon Jun 11, 2019
It's been a while - is there any progress on this?
lnicola commentedon Jun 11, 2019
It will be fixed in WSL 2: https://devblogs.microsoft.com/commandline/announcing-wsl-2/.
edsyl commentedon Aug 28, 2019
Apparently not as it still breaks on Buildroot builds.