optimize kernel configuration