Skip to content

Commit ff9d349

Browse files
authored
Merge pull request #3974 from reubenmiller/docs-recommended-sysctl-settings
doc: add notes to prevent resource exhaustion during system test execution
2 parents 17e78b6 + a9eebe0 commit ff9d349

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

tests/RobotFramework/README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,35 @@ Before you can run the tests you need to install the pre-requisites:
4646

4747
It is assumed that you are running on either MacOS or Linux. If you are a Windows users then use WSL 2 and follow the **Debian/Ubuntu** instructions, or just use the dev container option (which requires docker which again can be run under WSL 2).
4848

49+
**Important**
50+
51+
You may need to increase the Linux kernel parameters in order to run the system tests successfully. Otherwise, it is likely that you'll run into resource exhaustion limits which will cause the tests to fail.
52+
53+
The following commands show how to change the recommended kernel parameters (though you may change the exact values as needed). Note: these changes are temporary and will reset after a reboot. To make them persistent, add them to `/etc/sysctl.conf`. These commands should be run on the Linux machine where Docker is running (on your local machine if you're running Docker natively, or within the VM which is hosting docker):
54+
55+
```sh
56+
sysctl -w vm.max_map_count=262144
57+
sysctl -w fs.inotify.max_user_watches=1048576
58+
sysctl -w fs.inotify.max_user_instances=2500
59+
sysctl -w fs.file-max=50000
60+
```
61+
62+
For MacOS colima users, you change the settings by editing the colima template definition which will ensure the settings are applied when the colima instance starts.
63+
64+
```sh
65+
colima start --edit
66+
```
67+
68+
```yaml title="contents"
69+
provision:
70+
- mode: system
71+
script: |
72+
sysctl -w vm.max_map_count=262144
73+
sysctl -w fs.inotify.max_user_watches=1048576
74+
sysctl -w fs.inotify.max_user_instances=2500
75+
sysctl -w fs.file-max=50000
76+
```
77+
4978
### Option 1: Installing the dependencies yourself
5079
5180
1. Install python3 (>= 3.8)

0 commit comments

Comments
 (0)