Skip to content
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

psi-monitor: Raise default memory pressure threshold to 30% #402

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion psi-monitor/psi-monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,14 @@
/* Daemon parameters */
static unsigned int poll_interval = 5;
static unsigned int recovery_interval = 15;
static unsigned int mem_threshold = 10;
static unsigned int mem_threshold = 30;

#define SYSRQ_TRIGGER_FILE "/proc/sysrq-trigger"
/*
* "/proc/pressure/memory" is memory pressure interface provided by kernel.
* Please refer to PSI - Pressure Stall Information for more detail:
* https://docs.kernel.org/accounting/psi.html
*/
#define PSI_MEMORY_FILE "/proc/pressure/memory"
#define BUFSIZE 256

Expand Down