|
Swappiness is a Linux kernel parameter that controls the relative weight given to swapping out runtime memory, as opposed to dropping pages from the system page cache. Swappiness can be set to values between 0 and 100 inclusive. A low value causes the kernel to avoid swapping, a higher value causes the kernel to try to use swap space. The default value is 60 , and for most desktop systems, setting it to 100 may affect the overall performance, whereas setting it lower (even 0) may decrease response latency.〔〕 With kernel version 3.5 and over, as well as kernel version 2.6.32-303 and over, it is likely better to use 1 for cases where 0 used to be optimal. To temporarily set the swappiness in Linux, write the desired value (e.g. 10 ) to /proc/sys/vm/swappiness using the following command, running as root user:
Permanent changes are made in /etc/sysctl.conf via the following configuration line (inserted, if not present):vm.swappiness = 10 == References == 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「swappiness」の詳細全文を読む スポンサード リンク
|