arriven / db1000n

MIT License
1.18k stars 208 forks source link

Crash and OS reboot on MacOS Monterey #511

Open serg-music opened 2 years ago

serg-music commented 2 years ago

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

Cannot reproduce on 0.8.22

arriven commented 2 years ago

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)

serg-music commented 2 years ago

removing --scale helped. No more crashes. However, it blocks me from using whole network bandwidth.

The issue blocks my hardware configuration from using --scale.

barnyiv commented 2 years ago

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