OS: Tuning Completely Fair scheduler CFS
Revision as of 11:16, 1 April 2013 by Onnowpurbo (talk | contribs)
Dalam Linux Completely Fair scheduler (CFS) terdapat parameter yang dapat kita atur untuk menyesuaikan dengan kebutuhan kita.
Parameter berikut dapat di akses melalui file sistem proc. Nilai default (dalam nanoseconds Contoh paramete adalah sebagai berikut:
- sched_min_granularity_ns (16000000): Minimum preemption granularity for processor-bound tasks. Tasks are guaranteed to run for this minimum time before they are preempted.
- sched_latency_ns (80000000): Period over which CFQ tries to fairly schedule the tasks on the runqueue. All of the tasks on the runqueue are guaranteed to be scheduled once within this period.
- sched_wakeup_granularity_ns (20000000): Ability of tasks being woken to preempt the current task. The smaller the value, the easier it is for the task to force the preemption.
Untuk memverifikasi nilai dari masing-masing parameter, gunakan perintah berikut:
# cat /proc/sys/kernel/sched_latency_ns
Untuk memodifikasi nilai dari masing-masing parameter, gunakan perintah berikut (misalnya)
# echo 20000 > /proc/sys/kernel/sched_latency_ns
In the test environment, best results were achieved with the following values for these three parameters:
kernel.sched_min_granularity_ns = 100000 kernel.sched_wakeup_granularity_ns = 25000 kernel.sched_latency_ns = 1000000
If you want to make these changes permanent, you can modify these parameters in the /etc/sysctl.conf file and run the sysctl -p command.
Referensi
Pranala Menarik
- Linux
- Ubuntu
- Sistem Operasi
- Kernel
- Compile Kernel
- Compile Kernel: Konfigurasi Kernel
- Kernel: Anatomi Kernel Source
- OS: Linux Kernel
- OS: Parameter Kernel Default
- OS: Kernel Scheduler
- OS: Complete Teori Tuning Kernel Scheduler
- OS: Complete Teori Tuning I/O Performance
- OS: Tuning Kernel Scheduler
- OS: Tuning Completely Fair Queueing CFQ I/O scheduler
- OS: Tuning Completely Fair scheduler CFS
- OS: Build in Monitoring Tool
- Linux Benchmarking
- OS: Benchmarking menggunakan UnixBench
- OS: Benchmarking menggunakan LLCBench
- OS: Mengerti System Call
- OS: Membuat Kernel Modul