Periodically change memcg threshold.

This commit is contained in:
David Ashpole 2018-01-02 16:12:30 -08:00 committed by GitHub
parent b5aa22691c
commit 031dc7414e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -230,6 +230,11 @@ For example, the eviction manager could start collecting observations every seco
manager are not completely in-sync, the threshold can help the eviction manager to respond faster than
it otherwise would. After a short period, it would resume the standard interval of sync loop calls.
4. Periodically adjust the memory cgroup threshold based on total_inactive_file
For example, the eviction manager would set the threshold for usage_in_bytes to mem_capacity - eviction_hard +
total_inactive_file. This would mean that the threshold is crossed when usage_in_bytes - total_inactive_file
= mem_capacity - eviction_hard. As long as total_inactive_file changes slowly, this would be fairly accurate.
### Disk
Let's assume the operator started the `kubelet` with the following: