db1000n icon indicating copy to clipboard operation
db1000n copied to clipboard

Crash and OS reboot on MacOS Monterey

Open serg-music opened this issue 2 years ago • 3 comments

Expected Behavior

No crash

Actual Behavior

MacOS hangs and reboot after a while of using db1000n

Steps to Reproduce the Problem

  1. install db100n >= 0.8.23
  2. 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

serg-music avatar Apr 19 '22 06:04 serg-music

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)

arriven avatar Apr 19 '22 08:04 arriven

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 avatar Apr 19 '22 10:04 serg-music

@serg-music https://stackoverflow.com/questions/7578594/how-to-increase-limits-on-sockets-on-osx-for-load-testing try this, should help.

barnyiv avatar Apr 23 '22 09:04 barnyiv