| Summary: | After the process finishes shared memory resourced aren't released: shmget() failed: No space left on device | ||
|---|---|---|---|
| Product: | Base System | Reporter: | Yuri Victorovich <yuri> |
| Component: | kern | Assignee: | Yuri Victorovich <yuri> |
| Status: | Closed Not A Bug | ||
| Severity: | Affects Only Me | CC: | kib, rb |
| Priority: | --- | ||
| Version: | 13.2-STABLE | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
Yuri Victorovich
2023-08-19 06:31:20 UTC
Why do you think that this has something to do with the kernel? If process does not clean up its SysV IPC shared memory segments, then they would lay around, by the API design. Use ipcs(8) to discover them, and ipcrm(8) to remove unwanted segments. Unlike just about every other resource, shared memory segments are not released when a process exits; see _exit(2) and exit(3). This (possibly astonishing) behaviour is unchanged since the introduction of SysV IPC around 1983. Ok, thanks. I was under (false) impression that this has been fixed. Thanks for the explanation, Yuri |