A rather popular problem reported by new users on irc is very laggy performance out of the box. The default 'ondemand' governor is too slow to react on increased demand for processing power without extra tuning. The extra tuning needs extra efforts from the users. Not to mention that they have to be aware that such tuning might be necessary.
One more reason not to use the 'ondemand' governor by default is that the power saving provided by it is not particularly good: https://www.mail-archive.com/linux-sunxi@googlegroups.com/msg00492.html https://www.mail-archive.com/linux-sunxi@googlegroups.com/msg00678.html http://www.cubieforums.com/index.php/topic,1413.msg8745.html#msg8745 It basically wastes a lot of performance for almost nothing. The most important defconfigs are sun4i_defconfig, sun5i_defconfig and sun7i_defconfig because they are mentioned in http://linux-sunxi.org/Linux_Kernel#Compilation Right now sun5i_defconfig does not even enable cpufreq and does not have any problems in the first place. This patch changes sun4i and sun7i defconfigs to have the following set of cpufreq governors: 1. 'performance' (default) 2. 'userspace' (for benchmarking purposes) 3. 'interactive' (a replacement for 'ondemand' with more sane default behavior) Signed-off-by: Siarhei Siamashka <siarhei.siamas...@gmail.com> --- arch/arm/configs/sun4i_defconfig | 5 ++--- arch/arm/configs/sun7i_defconfig | 12 +----------- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/arch/arm/configs/sun4i_defconfig b/arch/arm/configs/sun4i_defconfig index 4e6f9fc..edcafc1 100644 --- a/arch/arm/configs/sun4i_defconfig +++ b/arch/arm/configs/sun4i_defconfig @@ -14,7 +14,6 @@ CONFIG_CGROUPS=y CONFIG_CGROUP_FREEZER=y CONFIG_CGROUP_DEVICE=y CONFIG_CPUSETS=y -CONFIG_CGROUP_CPUACCT=y CONFIG_RESOURCE_COUNTERS=y CONFIG_BLK_CGROUP=y CONFIG_RELAY=y @@ -52,8 +51,8 @@ CONFIG_COMPACTION=y CONFIG_KSM=y CONFIG_CMDLINE="mem=448M@0x40000000 console=ttyS0,115200" CONFIG_CPU_FREQ=y -CONFIG_CPU_FREQ_STAT=m -CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y +CONFIG_CPU_FREQ_GOV_USERSPACE=y +CONFIG_CPU_FREQ_GOV_INTERACTIVE=y CONFIG_CPU_FREQ_DVFS=y CONFIG_CPU_IDLE=y CONFIG_VFP=y diff --git a/arch/arm/configs/sun7i_defconfig b/arch/arm/configs/sun7i_defconfig index 455ebcc..c585d7a 100644 --- a/arch/arm/configs/sun7i_defconfig +++ b/arch/arm/configs/sun7i_defconfig @@ -16,15 +16,11 @@ CONFIG_CGROUPS=y CONFIG_CGROUP_FREEZER=y CONFIG_CGROUP_DEVICE=y CONFIG_CPUSETS=y -CONFIG_CGROUP_CPUACCT=y CONFIG_RESOURCE_COUNTERS=y CONFIG_CGROUP_MEM_RES_CTLR=y CONFIG_CGROUP_MEM_RES_CTLR_SWAP=y CONFIG_CGROUP_MEM_RES_CTLR_KMEM=y CONFIG_CGROUP_PERF=y -CONFIG_CGROUP_SCHED=y -CONFIG_CFS_BANDWIDTH=y -CONFIG_RT_GROUP_SCHED=y CONFIG_BLK_CGROUP=y CONFIG_RELAY=y CONFIG_BLK_DEV_INITRD=y @@ -67,14 +63,8 @@ CONFIG_KSM=y CONFIG_CMDLINE="console=ttyS0,115200 root=/dev/mmc0p1 rw init=/init loglevel=8" CONFIG_KEXEC=y CONFIG_CPU_FREQ=y -CONFIG_CPU_FREQ_STAT=m -CONFIG_CPU_FREQ_DEFAULT_GOV_FANTASY=y -CONFIG_CPU_FREQ_GOV_PERFORMANCE=y -CONFIG_CPU_FREQ_GOV_POWERSAVE=m -CONFIG_CPU_FREQ_GOV_USERSPACE=m -CONFIG_CPU_FREQ_GOV_ONDEMAND=y +CONFIG_CPU_FREQ_GOV_USERSPACE=y CONFIG_CPU_FREQ_GOV_INTERACTIVE=y -CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m CONFIG_CPU_FREQ_USR_EVNT_NOTIFY=y CONFIG_CPU_FREQ_DVFS=y CONFIG_CPU_IDLE=y -- 1.8.3.2 -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.