Remove busybox modprobe to fix slow performance for some devices
bionic process initialization calls personality (specifically personality-8) personality wants to load a kernel module loading a kernel module calls /sbin/modprobe loading /sbin/modprobe is a bionic process initialization bionic process initialization calls personality personality wants to load a kernel module loading a kernel module calls /sbin/modprobe . . . Before you know it, it takes 0.5 seconds to do anything. Note: modprobe is still technically available, but the symlink has been removed, so you can still call it directly by running busybox modprobe if you like. From what I can tell, this issue only affects 32 bit devices with CONFIG_MODULES=y in the defconfig. The problem can be also patched out of the kernel by commenting or otherwise removing the block of code in kernel/exec_domain.c inside the CONFIG_MODULES ifdef block It is also possible to patch the problem in bionic libc by commenting out or otherwise removing the __initialize_personality in bionic/libc/ bionic/libc_init_common.cpp file. Change-Id: Iebac314616080ac18320d73b087980ac1b98b951
Loading
Please register or sign in to comment