Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8634186imu; Tue, 4 Dec 2018 11:30:50 -0800 (PST) X-Google-Smtp-Source: AFSGD/WE4ruClBf+X++O9TEXeTPfMpmGz7eHKWA1SVHh10Aywazbhfyx/xRk4nye5Q9mZzDkQFwc X-Received: by 2002:a62:7687:: with SMTP id r129mr21101954pfc.17.1543951850650; Tue, 04 Dec 2018 11:30:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543951850; cv=none; d=google.com; s=arc-20160816; b=XFX4SH49wLoWfc1bV4k0BD+Zg5ltvRwb3kUIROviq8M63T1uEp96zbvtjdHADf9x25 ovY9yC2pYJB3KjqkNJaDIgRPYw48/Pk5c4a2VKN6mw0YQhj3lJOagDi87b5KeEwjZAe/ +miDA1sv5LUUyO354mvZochnhKLCsT5+Mvec8QCCREyeO/V6mS3vhAFgjPVt1Q2S/+xM v+IQ7KUYSuXrMW4TdY7pCfo/dDXp/FGgNbRPk6iH73MweM12GHqVfHgFTXtVALOkRK/R 2Hp++ibkCiIy60LSMvndwcHgEX0zlOBmH6U/oEM/8MuyB4M11Mf384tIo9vPrtDxjcQ/ ORhg== 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; bh=92jsILokFdBZ5AlURSixOtKjtKHix1TwZMX0Nm3/gvg=; b=bUPuNT/IzV6fHC0K1DxrmPJGPrWP+IufRBpyaE5d63aM74lxSwFqhIuG/NdobALngq 3hlns7yLlKYIT3e40Nyy5Jf9ISIckbFttrny1eFSeRuHpABmCZbl9Y7DEuEpq5lj/uvD ezRTUw/49XiN3RN+A7HjBSaf3I1l+D+SEC6ZiZOPSJZDnjKedBBWzkt7Kz692Gn7xiuP sXWkip8I/qiNCmKCWqcCqKg9yAbtwkVR9OM111m9Rdc0TL50nSXF0KKj8/bQqwNFuG7A czMFQXOpW8eQnGLBy/c43Dgxi7A1t63OJjxcJrPwG3tshQRxqUQXSVyF87kZWOTVVvV7 mZyQ== ARC-Authentication-Results: i=1; mx.google.com; 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 189si18051078pfd.142.2018.12.04.11.30.35; Tue, 04 Dec 2018 11:30:50 -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; 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 S1726206AbeLDT3a (ORCPT + 99 others); Tue, 4 Dec 2018 14:29:30 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:45798 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725841AbeLDT3a (ORCPT ); Tue, 4 Dec 2018 14:29:30 -0500 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id AC2D18089F; Tue, 4 Dec 2018 20:29:23 +0100 (CET) Date: Tue, 4 Dec 2018 20:29:26 +0100 From: Pavel Machek To: Ingo Molnar Cc: Michal Hocko , Oleg Nesterov , Linus Torvalds , Linux List Kernel Mailing , "Rafael J. Wysocki" , Chanho Min , Thomas Gleixner , Peter Zijlstra Subject: Re: [PATCH] Revert "exec: make de_thread() freezable (was: Re: Linux 4.20-rc4) Message-ID: <20181204192926.GA28651@amd> References: <20181203074700.GA21240@gmail.com> <20181203083942.GF31738@dhcp22.suse.cz> <20181203123149.GB31795@redhat.com> <20181203123857.GS31738@dhcp22.suse.cz> <20181203131006.GA10054@amd> <20181203135351.GU31738@dhcp22.suse.cz> <20181203141459.GA14789@amd> <20181203141737.GY31738@dhcp22.suse.cz> <20181204090228.GC73770@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qMm9M+Fa2AknHoGS" Content-Disposition: inline In-Reply-To: <20181204090228.GC73770@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --qMm9M+Fa2AknHoGS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > * Michal Hocko wrote: >=20 > > > Do we actually have reports of this happening for people outside > > > Android? > >=20 > > Not that I am aware of. >=20 > I'd say outside of Android 99% of the use of hibernation is the fail-safe= =20 > that distributions offer on laptops with very low battery levels: the=20 > emergency hibernation when there's almost no power left anymore. Android does not use hibernation AFAICT. Just s2ram. > Do these hibernation failure messages typically make it to persistent=20 > logs before the system uses power? I'd say so. If you have enough energy left for hibernation, you also have enough energy left to write the logs and sync. > In practice if that is buggy the kernel won't hibernate and the laptop=20 > will run out of power and the user will conclude "ugh, I shouldn't have= =20 > left my laptop turned on" - without looking into the logs and reporting,= =20 > as they'll perceive it as a user failure not a system failure. >=20 > I certainly saw random Linux laptops fail to hibernate over the years and= =20 > didn't report it, so if the distribution doesn't do the reporting=20 > automatically then chances are we'll never see it. There are many reasons while hibernation can fail. Buggy drivers, tasks in D state... And there are some when hibernation can fail "by design". If you swap does not have enough space to store the data, for example. Hibernation was designed to be non-intrusive, and reliable as in "if it hibernates it will also resume ok", but not reliable as in "it will always hibernate". I see that is problematic for "hibernate on battery low". Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --qMm9M+Fa2AknHoGS Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlwG1ZYACgkQMOfwapXb+vJeRQCgsyAz8KRczaAiDegP3s4cu2Qr ffUAnR3HMlIQ34Orrj2Ym3BCTAz18/4j =SvLS -----END PGP SIGNATURE----- --qMm9M+Fa2AknHoGS--