Re: [PATCH 6/7] printk: Avoid scheduling printing threads on the same CPU

2015-12-10 Thread Sergey Senozhatsky
>+static void distribute_printing_kthreads(void) >+{ >+ int i; >+ unsigned int cpus_per_thread; >+ unsigned int cpu, seen_cpu; >+ >+ for (i = 0; i < PRINTING_TASKS; i++) >+ cpumask_clear(printing_kthread_mask[i]); >+ >+ cpus_per_thread = DIV_ROUND_UP(num_online

[PATCH 6/7] printk: Avoid scheduling printing threads on the same CPU

2015-10-25 Thread Jan Kara
Currently nothing forces the scheduler to schedule printing kthread on the same CPU that is currently doing printing. In fact in some KVM configurations this seems to happen rather frequently and it defeats printing offloading since the current CPU is doing printing and watching for printing kthrea