From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f199.google.com (mail-pf0-f199.google.com [209.85.192.199]) by kanga.kvack.org (Postfix) with ESMTP id 1C5B06B0253 for ; Thu, 11 Jan 2018 00:10:43 -0500 (EST) Received: by mail-pf0-f199.google.com with SMTP id q6so699156pff.16 for ; Wed, 10 Jan 2018 21:10:43 -0800 (PST) Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id p9sor4101428pge.28.2018.01.10.21.10.41 for (Google Transport Security); Wed, 10 Jan 2018 21:10:42 -0800 (PST) Date: Thu, 11 Jan 2018 14:10:36 +0900 From: Sergey Senozhatsky Subject: Re: [PATCH v5 0/2] printk: Console owner and waiter logic cleanup Message-ID: <20180111051036.GB494@jagdpanzerIV> References: <20180110132418.7080-1-pmladek@suse.com> <20180110140547.GZ3668920@devbig577.frc2.facebook.com> <20180110162900.GA21753@linux.suse> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180110162900.GA21753@linux.suse> Sender: owner-linux-mm@kvack.org List-ID: To: Petr Mladek Cc: Tejun Heo , Steven Rostedt , 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 , Sergey Senozhatsky , Pavel Machek , linux-kernel@vger.kernel.org On (01/10/18 17:29), Petr Mladek wrote: [..] > The next versions used lazy offload from console_unlock() when > the thread spent there too much time. IMHO, this is one > very promising solution. It guarantees that softlockup > would never happen. But it tries hard to get the messages > out immediately. a small addition. my motivation was not exactly the "lazy offload", but to keep the existing printk behavior as long as possible. and that "as long as possible" is determined by watchdog threshold, which is the only limit we must care about. as long as printing task spends more than 1/2 of watchdog threshold - we offload. otherwise we don't mess up with the existing logic/guarantees/etc. there is also a bunch of other things in the patch now. but nothing fantastically complex. -ss -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org