From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ceriel Jacobs Subject: Re: [systemd-devel] [RFC v2 3/6] kthread: warn on kill signal if not OOM Date: Wed, 10 Sep 2014 12:07:48 +0200 Message-ID: <541022F4.4020501@crashplan.pro> References: <1409899047-13045-1-git-send-email-mcgrof@do-not-panic.com> <20140905141241.GC10455@mtj.dyndns.org> <20140905164405.GA28964@core.coreip.homeip.net> <20140905174925.GA12991@mtj.dyndns.org> <20140905224047.GC15723@mtj.dyndns.org> <20140909011059.GB11706@mtj.dyndns.org> <1410241109.2028.22.camel@jarvis.lan> <1410291346.13298.16.camel@jarvis.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: James Bottomley , One Thousand Gnomes , Takashi Iwai , Kay Sievers , Oleg Nesterov , Praveen Krishnamoorthy , hare , Nagalakshmi Nandigama , Wu Zhangjin , Tetsuo Handa , "mpt-fusionlinux.pdl" , Tim Gardner , Benjamin Poirier , Santosh Rastapur , Casey Leedom , Hariprasad S , Pierre Fersing , Sreekanth Reddy , Arjan van de Ven , Abhijit Mahajan , systemd Mailin To: Tom Gundersen , "Luis R. Rodriguez" Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org Tom Gundersen schreef op 10-09-14 om 08:46: >> >Indeed. What I proposed with a multiplier for the timeout for the >> >different types of built in commands was deemed complex but saw no >> >alternatives proposed despite my interest to work on one and >> >clarifications noted that this was a design regression. Not quite sure >> >what else I could have done here. I'm interested in learning what the >> >better approach is for the future as if we want to marry init + kernel >> >we need a smooth way for us to discuss design without getting worked >> >up about it, or taking it personal. I really want this to work as I >> >personally like systemd so far. > How about this: keep the timeout global, but also introduce a > (relatively short, say 10 or 15 seconds) timeout after which a warning > is printed. Even if nothing is actually killed, having workers (be it > insmod or something else) take longer than a couple of seconds is > likely a sign that something is seriously off somewhere. I don't agree with the statement that something is seriously off when it takes more then 10 to 15 seconds. When probing only one hard disk drive, then I do agree that something is seriously off after 10 to 15 seconds. When probing a SAS bus with one hundred hard disk drives in standby mode, then I do expect that to take longer then 10 to 15 seconds.