add --num-cpus option

This commit is contained in:
James Wilson committed 2021-08-05 11:11:23 +01:00
1 parent 6221cbfd17
commit 759d28b1a2
8 files changed
+94 -32

No files matched your search

+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 {