Kernel compile causes the same interactivity kill. And yes, disabling chroot_findtask removes any lags completely. Btw, even when I just start a shell inside chroot from any X terminal, it works like enter key is jammed for a while, like this:
- Code: Select all
# chroot . bash -l
#
#
#
#
#
I also observe this key jamming behavior during kernel compilation inside chroot when working with ssh sessions to another hosts started from an X terminal, so it's clearly the interactivity related issue. Keypresses and mouse pointer movement are lagging. The same behavior I was observing since my start with grsecurty, so nothing changed. And I double-checked I have new_chroot.patch applied and testing on the right kernel, so no mistake:
- Code: Select all
# uname -a
Linux worm3 2.6.32.15-grsec-2.2.0-201006271253 #1 Fri Jul 9 22:16:48 KRAST 2010 i686 AMD Athlon(TM) XP 2500+ AuthenticAMD GNU/Linux
# pwd
/usr/src/linux-2.6.32.15-grsec-2.2.0-201006271253
# cmp arch/x86/boot/bzImage /boot/vmlinuz-2.6.32.15-grsec-2.2.0-201006271253
# patch -R -p1 < /path/to/new_chroot.patch
patching file fs/fs_struct.c
patching file grsecurity/gracl.c
patching file grsecurity/grsec_chroot.c
patching file grsecurity/grsec_disabled.c
patching file include/linux/grinternal.h
patching file include/linux/grsecurity.h
patching file include/linux/init_task.h
patching file include/linux/sched.h
patching file kernel/fork.c
Now I'm gonna recompile the kernel with CONFIG_LATENCYTOP (with new_chroot.patch reapplied ;) and then post latencytop results.