db1000n
db1000n copied to clipboard
Crash and OS reboot on MacOS Monterey
Expected Behavior
No crash
Actual Behavior
MacOS hangs and reboot after a while of using db1000n
Steps to Reproduce the Problem
- install db100n >= 0.8.23
- Run db1000n --scale 10
Specifications
- Version: 0.8.23 , 0.8.24
- Platform: MacOS
- Subsystem: Monterey 12.3.1
Cannot reproduce on 0.8.22
v0.8.23 introduced this commit which increases OS limit on connections open by a program to its maximum. This boosts performance quite significantly on some systems but it may be that macos can't properly handle that many connections. I'd try removing that --scale argument from your commandline first and see if it helps (default limit for open connection on mac seems to be 256 and if that's the case then just scaling it on previous versions wouldn't really help as once you reach that limit all new jobs would just fail to open connections and waste your cpu cycles)
removing --scale helped. No more crashes. However, it blocks me from using whole network bandwidth.
The issue blocks my hardware configuration from using --scale.
@serg-music https://stackoverflow.com/questions/7578594/how-to-increase-limits-on-sockets-on-osx-for-load-testing try this, should help.