Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions atom/benchmarks/benchmark_serving.py
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,14 @@ def save_to_pytorch_benchmark_format(


def main(args: argparse.Namespace):
# Raise the open-file soft limit before opening any connections. At high
# --max-concurrency each in-flight request is a socket (fd); the default
# RLIMIT_NOFILE soft (~1024) is exhausted client-side (EMFILE on socket()),
# silently dropping requests so most never reach the server. The server
# already calls set_ulimit() at startup; the client must too.
from atom.utils import set_ulimit

set_ulimit()
Comment on lines +689 to +696
print(args)
random.seed(args.seed)
np.random.seed(args.seed)
Expand Down
Loading