[PATCH -V7 RESEND 11/21] swap: Add sysfs interface to configure THP swapin

2018-11-20 Thread Huang Ying
Swapin a THP as a whole isn't desirable in some situations. For example, for completely random access pattern, swapin a THP in one piece will inflate the reading greatly. So a sysfs interface: /sys/kernel/mm/transparent_hugepage/swapin_enabled is added to configure it. Three options as follow

[PATCH -V7 RESEND 11/21] swap: Add sysfs interface to configure THP swapin

2018-11-20 Thread Huang Ying
Swapin a THP as a whole isn't desirable in some situations. For example, for completely random access pattern, swapin a THP in one piece will inflate the reading greatly. So a sysfs interface: /sys/kernel/mm/transparent_hugepage/swapin_enabled is added to configure it. Three options as follow