Skip to content

ZTS: optimize ksmtuned settings #17247

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

mcmilk
Copy link
Contributor

@mcmilk mcmilk commented Apr 15, 2025

Don't use KSM on the FreeBSD VMs and optimize ksmtuned settings for faster ZTS test runs.

Free kernel caches on Linux VMs via cron, to get more usable memory on them.

Motivation and Context

Some ZTS test runs fail because of memory pressure. This PR tries to fix this.

Description

How Has This Been Tested?

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance enhancement (non-breaking change which improves efficiency)
  • Code cleanup (non-breaking change which makes code smaller or more readable)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Library ABI change (libzfs, libzfs_core, libnvpair, libuutil and libzfsbootenv)
  • Documentation (a change to man pages or other documentation)

Checklist:

Don't use KSM on the FreeBSD VMs and optimize ksmtuned settings
for faster ZTS test runs.

Free kernel caches on Linux VMs via cron, to get more usable
memory on them.

Signed-off-by: Tino Reichardt <[email protected]>
@tonyhutter
Copy link
Contributor

Free kernel caches on Linux VMs via cron, to get more usable memory on them.

For Linux, you might be better off playing with some of the virtual memory tunables on either the runner or the VMs. For example, have you tried setting vm.min_free_kbytes to higher values?

@mcmilk
Copy link
Contributor Author

mcmilk commented Apr 16, 2025

Free kernel caches on Linux VMs via cron, to get more usable memory on them.

For Linux, you might be better off playing with some of the virtual memory tunables on either the runner or the VMs. For example, have you tried setting vm.min_free_kbytes to higher values?

Yes, I am trying to guess - which screw I should turn.... this is a first try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants