From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 14C1DC4BA24 for ; Thu, 27 Feb 2020 06:44:07 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id A4E562467F for ; Thu, 27 Feb 2020 06:44:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=colorremedies-com.20150623.gappssmtp.com header.i=@colorremedies-com.20150623.gappssmtp.com header.b="XeRh5ylH" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A4E562467F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=colorremedies.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id EE2266B0003; Thu, 27 Feb 2020 01:44:05 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E6B526B0005; Thu, 27 Feb 2020 01:44:05 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D0CA66B0006; Thu, 27 Feb 2020 01:44:05 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0072.hostedemail.com [216.40.44.72]) by kanga.kvack.org (Postfix) with ESMTP id B23B76B0003 for ; Thu, 27 Feb 2020 01:44:05 -0500 (EST) Received: from smtpin26.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 66D8A2471 for ; Thu, 27 Feb 2020 06:44:05 +0000 (UTC) X-FDA: 76534967250.26.birth42_7af08702a7063 X-HE-Tag: birth42_7af08702a7063 X-Filterd-Recvd-Size: 4808 Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by imf09.hostedemail.com (Postfix) with ESMTP for ; Thu, 27 Feb 2020 06:44:04 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id j16so335081wrt.3 for ; Wed, 26 Feb 2020 22:44:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=colorremedies-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5k/UXfrWLI4mANPK0AmIZbwo/obrmKZTvxvRYX7gFyM=; b=XeRh5ylHwIimqU1VI3Iigi0JgnwuaRH17TbsQR+yz7jdd28UzaMM9PH7jQwwkivhJX tBQg6BNOiBfOXckE+B5sszyFFWLqGWh3LzpaPm3JhWuqR2FG5ayPLJ4f0EuaIYaajRe9 5rjcRK9S4l3cA2CynqHGnF1mgrtsOStyZXlwQC+xcp5q5AfJBVgjD7aJut48ZYia8OEL ke8WHmtta/qR2HuaeJZJVl4lmOiu4fOgfnDy8wYSQWQNXkkcOtFsX+uRD+jP2uiS5TNW T9aJcUXFOE7qf7mMntGg4hM0j9QPkYodhHB3frUf7OjPu91kv1RuuLW+xNYQsF7onnIV RPQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5k/UXfrWLI4mANPK0AmIZbwo/obrmKZTvxvRYX7gFyM=; b=uFK8eZvwlPrH+SV4a02PHqZkwo0Q2ngmaT04XIHxcUgvbDiQl9D3eRebFjSKMu8une ReR7kM6SoJLQZ6oR2SJxnYcQLZKWEKNx6hATl5NPI/63br8LPIb635iRx7No9mVyVzCU tv0AERHR+6YtHksJiuftqr4h2KJvBoXqRk/1c5td1iE3v43l06e8Y/0g6K+8WXkbWLjF FZLmH5sJGc/HjgAg8ip1kpfAZuFeV6gRGmSQ4hMPM8Lk0Q5ybhmHWpSYVF43sTaW25Bw hiyjrj49P+b9U+KvfLff9RGbNAhVqXK8ui5HWEIaxFFbSHjqMTSdC9/N2ZX07M6e04uR j+NQ== X-Gm-Message-State: APjAAAX0EzLrDMg510hbh9do/YywzygDxUPKKH/wEoARB95eySHQDp/m TgsVIx6irIZmFox1np5hJfS/lwr0eIe05ONtIHFo0A== X-Google-Smtp-Source: APXvYqwi6h8DxqwgRjEDYxp3+HdqRqJZQqprNp5Oq7mYt+KtBB9cSIIjBh8mAhp0QJaOrSrs9wn223gU9S5yq9okiZ4= X-Received: by 2002:a5d:4dce:: with SMTP id f14mr2919645wru.65.1582785843421; Wed, 26 Feb 2020 22:44:03 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Chris Murphy Date: Wed, 26 Feb 2020 23:43:47 -0700 Message-ID: Subject: Re: is hibernation usable? To: Luigi Semenzato Cc: Chris Murphy , Linux Memory Management List , Linux PM Content-Type: text/plain; charset="UTF-8" X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Thu, Feb 20, 2020 at 12:45 PM Luigi Semenzato wrote: > > On Thu, Feb 20, 2020 at 11:09 AM Chris Murphy wrote: > > > > On Thu, Feb 20, 2020 at 10:16 AM Luigi Semenzato wrote: > > > > > > I think this is the right group for the memory issues. > > > > > > I suspect that the problem with failed allocations (ENOMEM) boils down > > > to the unreliability of the page allocator. In my experience, under > > > pressure (i.e. pages must be swapped out to be reclaimed) allocations > > > can fail even when in theory they should succeed. (I wish I were > > > wrong and that someone would convincingly correct me.) > > > > What is vm.swappiness set to on your system? A fellow Fedora > > contributor who has consistently reproduced what you describe, has > > discovered he has vm.swappiness=0, and even if it's set to 1, the > > problem no longer happens. And this is not a documented consequence of > > using a value of 0. > > I am using the default value of 60. > > A zero value should cause all file pages to be discarded before any > anonymous pages are swapped. I wonder if the fellow Fedora > contributor's workload has a lot of file pages, so that discarding > them is enough for the image allocator to succeed. In that case "sync; > echo 1 > /proc/sys/vm/drop_caches" would be a better way of achieving > the same result. (By the way, in my experiments I do that just before > hibernating.) He reports hibernation failure even if he drops caches beforehand. https://lists.fedoraproject.org/archives/list/desktop@lists.fedoraproject.org/message/XYWYF33RFVISVZTPYSJRRXP7TFXPV4GD/ -- Chris Murphy