当前位置:网站首页>semget No space left on device
semget No space left on device
2022-06-25 14:59:00 【qq_ twenty-three million nine hundred and fifty-three thousand 】
When semaphores are recently used , call semget Failure , adopt strerror Check that the error report is No space left on device
To locate this problem , First, you need to know some system commands
ipcs -m View system shared memory information
ipcs -q View system message queue information
ipcs -s Check the system semaphore information
cat /prc/sys/kernel/sem perhaps ipcs -ls You can view the semaphore information supported by the current system
cat /proc/sys/kernel/sem
250 32000 32 128
250 SEMMSL max semaphores per array The signal set holds the maximum number of signals
32000 SEMMNS max semaphores system wide The maximum number of all signals
32 SEMOPM max ops per semop call Call the maximum number of signals in a single signal set
128 SEMMNI max number of arrays The maximum value of the signal set
Here is the semaphore creation failure , So just look at ipcs -s that will do , Use in question ipcs Command to view the semaphore number , Discovery was created 128 individual , And the most semaphore creation number it supports is 128, Therefore, subsequent semaphore creation fails 
Solution :
Carry out orders echo 32000 1024000000 500 32000 >/proc/sys/kernel/mem, Increase the maximum value of the semaphore that can be created
边栏推荐
猜你喜欢

Common dynamic memory errors

JGG | overview of duhuilong group of Hebei University Research on plant pan genomics

basic_ String mind map

JS to add elements to the header, or tail of an array

Master XSS completely from 0 to 1

如何裁剪动图大小?试试这个在线照片裁剪工具

Using Sphinx to automatically generate API documents from py source files

Custom structure type

【Try to Hack】vulnhub DC1

弹性布局(display:flex;)属性详解
随机推荐
Generation method and usage of coredump
Heavyweight! The domestic IDE is released and developed by Alibaba. It is completely open source! (high performance + high customization)
Common classes in QT
Std:: vector minutes
Add the resources directory under test in idea
(translation) json-rpc 2.0 specification (Chinese version)
JS select all exercise
A deformation problem of Hanoi Tower
使用sphinx根据py源文件自动生成API文档
定位position(5种方式)
挖财是正规的吗?股票开户安全吗?
System Verilog - data type
NBD Network Block Device
Source code analysis of zeromq lockless queue
About the problem of kicad stuck in win10 version, version 6 x
Js- get the mouse coordinates and follow them
Gif动画怎么在线制作?快试试这款gif在线制作工具
【Try to Hack】vulnhub DC1
Automatic correlation between QT signal and slot
分饼干问题