How to solve “msgget: No space left on device” error

cipcmessage-queue

I am writing an IPC application using message queues. While using msgget() function to get Message Queue I am getting this error.

The requested operations does not require lot of space on the device and there should be space left as well.

Any ideas. Thank you in advance

Best Answer

ENOSPC from msgget indicates that the system-wide maximum number of message queues has been reached.

You may be able to configure this limit - eg in Linux you can tweak /proc/sys/kernel/msgmni.

Related Topic