add --num-cpus option

This commit is contained in:
James Wilson
2021-08-05 11:03:53 +01:00
parent 6221cbfd17
commit 759d28b1a2
8 changed files with 94 additions and 32 deletions
+5 -4
View File
@@ -22,10 +22,10 @@ able to open a large number of connections and run some of the tests.
Try running these:
```sh
sudo sysctl -w kern.maxfiles=50000
sudo sysctl -w kern.maxfilesperproc=50000
ulimit -n 50000
sudo sysctl -w kern.ipc.somaxconn=50000
sudo sysctl -w kern.maxfiles=100000
sudo sysctl -w kern.maxfilesperproc=100000
ulimit -n 100000
sudo sysctl -w kern.ipc.somaxconn=100000
sudo sysctl -w kern.ipc.maxsockbuf=16777216
```
*/
@@ -580,6 +580,7 @@ async fn slow_feeds_are_disconnected() {
// Timeout faster so the test can be quicker:
CoreOpts {
feed_timeout: Some(1),
..Default::default()
},
// Allow us to send more messages in more easily:
ShardOpts {