From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763485AbdLSOcD (ORCPT ); Tue, 19 Dec 2017 09:32:03 -0500 Received: from mx2.suse.de ([195.135.220.15]:47349 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1763342AbdLSObt (ORCPT ); Tue, 19 Dec 2017 09:31:49 -0500 Date: Tue, 19 Dec 2017 15:31:47 +0100 From: Michal Hocko To: Sergey Senozhatsky Cc: Steven Rostedt , Petr Mladek , Tejun Heo , Sergey Senozhatsky , Jan Kara , Andrew Morton , Peter Zijlstra , Rafael Wysocki , Pavel Machek , Tetsuo Handa , linux-kernel@vger.kernel.org Subject: Re: [RFC][PATCHv6 00/12] printk: introduce printing kernel thread Message-ID: <20171219143147.GB15210@dhcp22.suse.cz> References: <20171215084236.GE468@jagdpanzerIV> <20171215090801.eulx4pg54p667ya5@pathway.suse.cz> <20171218093405.GA31274@jagdpanzerIV> <20171218133101.ri55uwivhc5xwg5y@pathway.suse.cz> <20171218133948.GD31274@jagdpanzerIV> <20171218141353.6shpvcwth34k6dsi@pathway.suse.cz> <20171218124613.1df152da@gandalf.local.home> <20171219010311.GB8892@jagdpanzerIV> <20171218200806.56a6507e@gandalf.local.home> <20171219012455.GB17164@jagdpanzerIV> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171219012455.GB17164@jagdpanzerIV> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 19-12-17 10:24:55, Sergey Senozhatsky wrote: > On (12/18/17 20:08), Steven Rostedt wrote: > > > ... do you guys read my emails? which part of the traces I have provided > > > suggests that there is any improvement? > > > > The traces I've seen from you were from non-realistic scenarios. > > But I have hit issues with printk()s happening that cause one CPU to do all > > the work, where my patch would fix that. Those are the scenarios I'm > > talking about. > > any hints about what makes your scenario more realistic than mine? Well, Tetsuo had some semi-realistic scenario where alloc stall messages managed to stall other printk callers (namely oom handler). I am saying sem-realistic because he is testing OOM throughput with an unrealistic workload which itself is not very real on production systems. The essential thing here is that many processes might be in the allocation path and any printk there could just swamp some unrelated printk caller and cause hard to debug problems. Steven's patch should address that with a relatively simple lock handover. I was pessimistic this would work sufficiently well but it survived Tetsuo's testing IIRC so it sounds good enough to me. -- Michal Hocko SUSE Labs