当前位置:网站首页>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
边栏推荐
- Luogu p5707 [deep foundation 2. example 12] late for school
- User defined data type - structure
- Daily question, magic square simulation
- 网上办理股票开户安全吗?
- [untitled] PTA check password
- 买卖股票的最佳时机
- About?: Notes for
- C language escape character and its meaning
- 有哪个瞬间让你觉得这个世界出bug了?
- From 408 to independent proposition, 211 to postgraduate entrance examination of Guizhou University
猜你喜欢

Review of arrays and pointers triggered by a topic

Source code analysis of zeromq lockless queue

【中國海洋大學】考研初試複試資料分享

Use Matplotlib to draw a line chart

关于win10 版本kicad 卡死的问题, 版本6.x

Design and implementation of timer

Heavyweight! The domestic IDE is released and developed by Alibaba. It is completely open source! (high performance + high customization)

Uniapp cloud packaging app

有哪个瞬间让你觉得这个世界出bug了?

How to combine multiple motion graphs into a GIF? Generate GIF animation pictures in three steps
随机推荐
System Verilog - data type
Ideal L9 in the eyes of the post-90s: the simplest product philosophy, creating the most popular products
[try to hack] vulhub shooting range construction
Clipboard tutorial
弹性布局(display:flex;)属性详解
Common operations in VIM
JS to add elements to the header, or tail of an array
2022年广东高考分数线出炉,一个几家欢喜几家愁
New title of PTA
How to make GIF animation online? Try this GIF online production tool
Compile Caffe's project using cmake
Async await to achieve sleep waiting effect
Gif动图如何裁剪?收下这个图片在线裁剪工具
One question per day, a classic simulation question
[Ocean University of China] information sharing for the first and second examinations of postgraduate entrance examination
【深度学习】多任务学习 多个数据集 数据集漏标
JS get the height and width corresponding to the box model (window.getcomputedstyle, dom.getboundingclientrect)
Iterator failure condition
Qt: Pro project file
Power automatic test system nsat-8000, accurate, high-speed and reliable power test equipment