Skip to content

Commit

Permalink
Test sudo sysctl vm.overcommit_memory=1
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki777 committed Jun 19, 2024
1 parent a3fe461 commit 77ba498
Showing 1 changed file with 24 additions and 9 deletions.
33 changes: 24 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,34 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
# os: [macos-latest, ubuntu-latest]
os: [ubuntu-latest]
test_script: [
mongodb-4.4.10.sh,
mongodb-5.0.3.sh,
mysql-5.7.31.sh,
mysql-8.0.30.sh,
postgresql-12.4.sh,
postgresql-13.2.sh,
redis-6.2.14.sh,
# mongodb-4.4.10.sh,
# mongodb-5.0.3.sh,
# mysql-5.7.31.sh,
# mysql-8.0.30.sh,
# postgresql-12.4.sh,
# postgresql-13.2.sh,
# redis-6.2.14.sh,
redis-7.2.5.sh
]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

# WARNING Memory overcommit must be enabled! Without it,
# a background save or replication may fail under low memory condition. Being disabled,
# it can also cause failures without low memory condition,
# see https://github.com/jemalloc/jemalloc/issues/1328.
# To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
- name: Enable memory overcommit
run: |
sudo sysctl vm.overcommit_memory=1
- name: Run test
run: |
cd tests
- name: Run test
run: |
cd tests
Expand Down

0 comments on commit 77ba498

Please sign in to comment.