Re: "failed to setup shm segment" on macOS Monterey with ipcs empty

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/10/2021 10:36 AM, Rebecca Cran wrote:
I just tried to run fio (from master) on my new M1 Max MacBook Pro running macOS Monterey. "./fio examples/tiobench-example.fio" quit with the error "failed to setup shm segment" but "ipcs" doesn't show any entries, so it doesn't appear to be the typical problem of left-over segments.

It turns out that there's just not enough shared memory available by default (shmall is 1024). I installed the following SharedMemory.plist file into /Library/LaunchDaemons after which it worked.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
<plist version="1.0">
<dict>
 <key>Label</key>
 <string>shmemsetup</string>
 <key>UserName</key>
 <string>root</string>
 <key>GroupName</key>
 <string>wheel</string>
 <key>ProgramArguments</key>
 <array>
 <string>/usr/sbin/sysctl</string>
 <string>-w</string>
 <string>kern.sysv.shmmax=33554432</string>
 <string>kern.sysv.shmmni=32</string>
 <string>kern.sysv.shmseg=8</string>
 <string>kern.sysv.shmall=8192</string>
 <string>kern.sysv.shmmin=1</string>
  </array>
 <key>KeepAlive</key>
 <false/>
 <key>RunAtLoad</key>
 <true/>
</dict>
</plist>


--
Rebecca Cran





[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux