Skip to content

Commit b34e307

Browse files
tytydracoExactExampl
authored andcommitted
perf: Restrict perf event sampling CPU time to 5%
Signed-off-by: Tyler Nijmeh <tylernij@gmail.com>
1 parent 44e2fb4 commit b34e307

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/events/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ int sysctl_perf_event_mlock __read_mostly = 512 + (PAGE_SIZE / 1024); /* 'free'
439439
*/
440440
#define DEFAULT_MAX_SAMPLE_RATE 100000
441441
#define DEFAULT_SAMPLE_PERIOD_NS (NSEC_PER_SEC / DEFAULT_MAX_SAMPLE_RATE)
442-
#define DEFAULT_CPU_TIME_MAX_PERCENT 25
442+
#define DEFAULT_CPU_TIME_MAX_PERCENT 5
443443

444444
int sysctl_perf_event_sample_rate __read_mostly = DEFAULT_MAX_SAMPLE_RATE;
445445

0 commit comments

Comments
 (0)