<commit_before>/*
 * Completely Fair Scheduling (CFS) Class (SCHED_NORMAL/SCHED_BATCH)
 *
 *  Copyright (C) 2007 Red Hat, Inc., <NAME> <<EMAIL>>
 *
 *  Interactivity improvements by <NAME>
 *  (C) 2007 <NAME> <<EMAIL>>
 *
 *  Various enhancements by <NAME>.
 *  (C) 2007 <NAME> <<EMAIL>>
 *
 *  Group scheduling enhancements by <NAME>
 *  Copyright IBM Corporation, 2007
 *  Author: <NAME> <<EMAIL>>
 *
 *  Scaled math optimizations by <NAME>
 *  Copyright (C) 2007, <NAME> <<EMAIL>>
 *
 *  Adaptive scheduling granularity, math enhancements by <NAME>
 *  Copyright (C) 2007 Red Hat, Inc., <NAME> <<EMAIL>>
 */

/*
 * Targeted preemption latency for CPU-bound tasks:
 * (default: 20ms * ilog(ncpus), units: nanoseconds)
 *
 * NOTE: this latency value is not the same as the concept of
 * 'timeslice length' - timeslices in CFS are of variable length
 * and have no persistent notion like in traditional, time-slice
 * based scheduling concepts.
 *
 * (to see the precise effective timeslice length of your workload,
 *  run vmstat and monitor the context-switches (cs) field)
 */
unsigned int sysctl_sched_latency = 20000000ULL;

/*
 * Minimal preemption granularity for CPU-bound tasks:
 * (default: 1 msec * ilog(ncpus), units: nanoseconds)
 */
unsigned int sysctl_sched_min_granularity = 1000000ULL;

/*
 * is kept at sysctl_sched_latency / sysctl_sched_min_granularity
 */
unsigned int sched_nr_latency = 20;

/*
 * After fork, child runs first. (default) If set to 0 then
 * parent will (try to) run first.
 */
const_debug unsigned int sysctl_sched_child_runs_first = 1;

/*
 * sys_sched_yield() compat mode
 *
 * This option switches the agressive yield implementation of the
 * old scheduler back on.
 */
unsigned int __read_mostly sysctl_sched_compat_yield;

/*
 * SCHED_BATCH wake-up granularity.
 * (default: 10 msec * ilog(ncpus), units: nanoseconds)
 *
 * This option delays the preemption effects of decoupled workloads
 * and reduces their over-scheduling. Synchronous workloads will still
 * have immediate wakeup/sleep latencies.
 */
unsigned int sysctl_sched_batch_wakeup_granularity = 10000000UL;

/*
 * SCHED_OTHER wake-up granularity.
 * (default: 10 msec * ilog(ncpus), units: nanoseconds)<commit_msg>sched: make sched_nr_latency static<commit_after>/*
 * Completely Fair Scheduling (CFS) Class (SCHED_NORMAL/SCHED_BATCH)
 *
 *  Copyright (C) 2007 Red Hat, Inc., <NAME> <<EMAIL>>
 *
 *  Interactivity improvements by <NAME>
 *  (C) 2007 <NAME> <<EMAIL>>
 *
 *  Various enhancements by <NAME>.
 *  (C) 2007 <NAME> <<EMAIL>>
 *
 *  Group scheduling enhancements by <NAME>
 *  Copyright IBM Corporation, 2007
 *  Author: <NAME> <<EMAIL>>
 *
 *  Scaled math optimizations by <NAME>
 *  Copyright (C) 2007, <NAME> <<EMAIL>>
 *
 *  Adaptive scheduling granularity, math enhancements by <NAME>
 *  Copyright (C) 2007 Red Hat, Inc., <NAME> <<EMAIL>>
 */

/*
 * Targeted preemption latency for CPU-bound tasks:
 * (default: 20ms * ilog(ncpus), units: nanoseconds)
 *
 * NOTE: this latency value is not the same as the concept of
 * 'timeslice length' - timeslices in CFS are of variable length
 * and have no persistent notion like in traditional, time-slice
 * based scheduling concepts.
 *
 * (to see the precise effective timeslice length of your workload,
 *  run vmstat and monitor the context-switches (cs) field)
 */
unsigned int sysctl_sched_latency = 20000000ULL;

/*
 * Minimal preemption granularity for CPU-bound tasks:
 * (default: 1 msec * ilog(ncpus), units: nanoseconds)
 */
unsigned int sysctl_sched_min_granularity = 1000000ULL;

/*
 * is kept at sysctl_sched_latency / sysctl_sched_min_granularity
 */
static unsigned int sched_nr_latency = 20;

/*
 * After fork, child runs first. (default) If set to 0 then
 * parent will (try to) run first.
 */
const_debug unsigned int sysctl_sched_child_runs_first = 1;

/*
 * sys_sched_yield() compat mode
 *
 * This option switches the agressive yield implementation of the
 * old scheduler back on.
 */
unsigned int __read_mostly sysctl_sched_compat_yield;

/*
 * SCHED_BATCH wake-up granularity.
 * (default: 10 msec * ilog(ncpus), units: nanoseconds)
 *
 * This option delays the preemption effects of decoupled workloads
 * and reduces their over-scheduling. Synchronous workloads will still
 * have immediate wakeup/sleep latencies.
 */
unsigned int sysctl_sched_batch_wakeup_granularity = 10000000UL;

/*
 * SCHED_OTHER wake-up granularity.
 * (default: 10 msec * ilog(ncpus), units: nanoseconds)
{'fraction_non_alphanumeric': 0.10306282137268052, 'fraction_numerical': 0.0259333780460541, 'mean_word_length': 4.245017584994138, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 49, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 4, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3175185', 'n_tokens_mistral': 1593, 'n_tokens_neox': 1413, 'n_words': 491}