Received: by 10.223.176.46 with SMTP id f43csp763079wra; Sat, 20 Jan 2018 04:24:29 -0800 (PST) X-Google-Smtp-Source: AH8x224VVdzkqb1NadsH9cMtwYJekIKGlb0en/R5hGQP5h0bKOlFJmrpjyk7dNydettdd2p6GrfP X-Received: by 10.98.33.198 with SMTP id o67mr2202325pfj.0.1516451069826; Sat, 20 Jan 2018 04:24:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516451069; cv=none; d=google.com; s=arc-20160816; b=X4Arcl+iOffkn8tpQ7x0nlM4taXhuTAPqEhCzVbukEpttWRm0XT83lJTQERBI1hFv6 vhsccwLdrPBlJ13lRWIMqU62rd7N3Er5lj3AzDVB7iKoj9WkZMXRS+8H0h8GBptzBNir oZLA1ML0qTaMRvwmZWMRXtEcESKXg4TPipZNsK6BXz5N5DVA/T993J2eWYKJoSkKz5lY t8R2o28PmWCHUWJR5L8ZedycrD/Ibtf9HYMe1Ebj1VskGSjqbOX+mZ0nNAQsUGDuLWq8 AF9q5vA21YNTuLkW5kCnDq3KROZJpR92Z9mZCJNRi0ZmFKQXzRaBJZGcj7KQFvN1VCBE zI+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=RkSgnYx+G1btrY7TCoLNZr0+zr15l+WpwwPmsDnuH/Q=; b=1Aljt+mj1atzSNqNDj8c40yPnhASadl55COOLtvQIONB6OGlqsbhs+MsoVWsqgiPtS BwyR2UytQWecB3vGiYnP+LqwZcsgHcYdyn9ctYubOvrbpoVglom5rx36F3IGME3F6Duo daNZS2DcZGT3Lr7KRn3Tkq0RlivykRklskZxO7YwOp19NHuFfqnLVskFRmQAi9fLDrOM dqroLfDcmkEa1BHl/Bdwr1isbrRKr4wjD+b8hU2HUIyIBao3fTY3B49C70rZiYmzc3rD rKlDz6+9JwNxAb34OdQhGVda0YmsjpwApqVn61IboypyRp5pDYJuqBcw2pawk6MZVvbh 3NLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=N0KG0bdD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k69si9359583pgc.618.2018.01.20.04.24.14; Sat, 20 Jan 2018 04:24:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=N0KG0bdD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754008AbeATMUD (ORCPT + 99 others); Sat, 20 Jan 2018 07:20:03 -0500 Received: from mail-qt0-f169.google.com ([209.85.216.169]:44211 "EHLO mail-qt0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751146AbeATMT5 (ORCPT ); Sat, 20 Jan 2018 07:19:57 -0500 Received: by mail-qt0-f169.google.com with SMTP id l20so8924726qtj.11 for ; Sat, 20 Jan 2018 04:19:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=RkSgnYx+G1btrY7TCoLNZr0+zr15l+WpwwPmsDnuH/Q=; b=N0KG0bdDEGjoL+p3uZGXWoLBr6EtB3BYmPdawnhVwON3IABsDvnd16mV3ikvI1IITJ tuJLcSwX/abymueHh9piFicZ/A70uAjcIqPkPuNjP8CGUga4stB5OQ4kllLuOOPrd9BN hBBz2lEzul4cn4Tnls/ZqpOnNAgGTZBfS1OIz5OH5h1/JUbewUYhM/XTkbDk2pqIfxJF ZWZztzV0udSncQUT6/r0vZpfzRL89z+L3nmN5VrdiKQjxM8ftBS1SgRUCtUfe3gVQ7/U 4EaVrKC8Gool5eVf9QyqJoPtWwhEz2nRyMSr9zZklWxtpcM8r8ykQ7Ff0KNtmtlC8cqT FZQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=RkSgnYx+G1btrY7TCoLNZr0+zr15l+WpwwPmsDnuH/Q=; b=jxsXA7pSX4pAJ1WTr7n7nWdFnkbTm6Wbs1gokkRjotxvZsEEjO7qH7Y5jljBqbBwrm PdEDr5cL6oQDcURg+3MXijAcioWai1eUDKkYZZO1JivjD5V8HdKQf6TZO3Xu7kUjMTCK Yvb2Yw1BPIsqtru+Dw2P+HDrm8tWDJUzJ6RuYAwMOuzW0IT3TusMArL1zUdCa5G74qBD BYi/xv2HFJM4xRsiaKzVY4lIseO6Gl0AWdQjNrkrRXGoPMLhdpoU++NL/XQg9ojgRMph 9K7W3KQIb1gjybCyu6BXo1R+jgzgNdXEtP0rTg3cm8zGP88VQUlBvoq58UrQXKsTn0O8 TdHQ== X-Gm-Message-State: AKwxytfkw7cquG11yK0vRYTL6xt/hdYcpt+3CDd8QdEsS7ehJcRcrvLb cC2a6kbluRahjpM3dEJESCA= X-Received: by 10.237.38.5 with SMTP id z5mr2291123qtc.180.1516450796436; Sat, 20 Jan 2018 04:19:56 -0800 (PST) Received: from localhost (dhcp-ec-8-6b-ed-7a-cf.cpe.echoes.net. [72.28.5.223]) by smtp.gmail.com with ESMTPSA id i145sm7446133qke.86.2018.01.20.04.19.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 20 Jan 2018 04:19:55 -0800 (PST) Date: Sat, 20 Jan 2018 04:19:53 -0800 From: Tejun Heo To: Steven Rostedt Cc: Petr Mladek , Sergey Senozhatsky , Sergey Senozhatsky , akpm@linux-foundation.org, linux-mm@kvack.org, Cong Wang , Dave Hansen , Johannes Weiner , Mel Gorman , Michal Hocko , Vlastimil Babka , Peter Zijlstra , Linus Torvalds , Jan Kara , Mathieu Desnoyers , Tetsuo Handa , rostedt@home.goodmis.org, Byungchul Park , Pavel Machek , linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 0/2] printk: Console owner and waiter logic cleanup Message-ID: <20180120121953.GA1096857@devbig577.frc2.facebook.com> References: <20180111103845.GB477@jagdpanzerIV> <20180111112908.50de440a@vmware.local.home> <20180111203057.5b1a8f8f@gandalf.local.home> <20180111215547.2f66a23a@gandalf.local.home> <20180116194456.GS3460072@devbig577.frc2.facebook.com> <20180117091208.ezvuhumnsarz5thh@pathway.suse.cz> <20180117151509.GT3460072@devbig577.frc2.facebook.com> <20180117121251.7283a56e@gandalf.local.home> <20180117134201.0a9cbbbf@gandalf.local.home> <20180119132052.02b89626@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180119132052.02b89626@gandalf.local.home> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Steven. On Fri, Jan 19, 2018 at 01:20:52PM -0500, Steven Rostedt wrote: > I was thinking about this a bit more, and instead of offloading a > recursive printk, perhaps its best to simply throttle it. Because the > problem may not go away if a printk thread takes over, because the bug > is really the printk infrastructure filling the printk buffer keeping > printk from ever stopping. > > This patch detects that printk is causing itself to print more and > throttles it after 3 messages have printed due to recursion. Could you > see if this helps your test cases? Sure, if this is the approach we're gonna take, I can try it with the silly test code and also try to reproduce the original problem and see whether this helps. I'm a bit worried tho because this essentially seems like "detect recursion, ignore messages" approach. netcons can have a very large surface for bugs. Suppressing those messages would make them difficult to debug. For example, all our machines have both serial console (thus the slowness) and netconsole hooked up and netcons code has had its fair share of issues. This would likely make tracking down those problems more challenging. Can we discuss pros and cons of this approach against offloading before committing to this? Thanks. -- tejun