From patchwork Tue Dec 11 14:27:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Hocko X-Patchwork-Id: 10723893 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2067B91E for ; Tue, 11 Dec 2018 14:27:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0FAFA28587 for ; Tue, 11 Dec 2018 14:27:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 037862883D; Tue, 11 Dec 2018 14:27:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9977A28587 for ; Tue, 11 Dec 2018 14:27:53 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 415F88E008F; Tue, 11 Dec 2018 09:27:52 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 3C70D8E004D; Tue, 11 Dec 2018 09:27:52 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2B6048E008F; Tue, 11 Dec 2018 09:27:52 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by kanga.kvack.org (Postfix) with ESMTP id C5F3E8E004D for ; Tue, 11 Dec 2018 09:27:51 -0500 (EST) Received: by mail-ed1-f71.google.com with SMTP id e17so6962348edr.7 for ; Tue, 11 Dec 2018 06:27:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id:mime-version:content-transfer-encoding; bh=uWKbXWDybGHa7TqlCpRzSWsYEsMiSEDWD1y1DOSD/Ds=; b=fw+sRcDpnFUYtRe6FvrUz8bK0iUPaM9wX2gt60RhQ0023qjC11fet969NocI1gnt2U 3Gz2pKg4rAVSAJBEaSgHdj9OvEz8hgZvee9u5vPoV2uT3LD6DfKnMZ3HvwXn+6gVzqCT G/vcT5TG/5p4BYmrbZELo6tAsYahfMNNCChNiCYHerdOhx0ryvf0ppHPx3XU04Zx3Ovq BMSaFD2D4EWzOd1S4F9aaGmihxPfyX1QjGrjVjUoYd9/ywTu3Eb81a33HvW0FxIM+CvX Nsiz9ZsoIYGnT98Ma+0HANWyM9rw/8G5UWDbXSgpjU7bnQHflMg4fS4N2keukYPzHLXk hmAA== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of mstsxfx@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=mstsxfx@gmail.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Gm-Message-State: AA+aEWaiXbYxzAQ++BL8Ikl12CQomryRSO0uifIeM5qgT1jyPMTqTu4e NUDHVSt6FGCjCYXCnqkYNuH/ZLnWBOOr72VuPrwVWE0jSsnRncn+k/RYlCXlBLzWXF/ws2u5uAs 5Y13CPMYP+1U93t0/58kOn4IVdJWqKDzqaoZiQEAS0wno+yGNqFYPMhajs77Tu73aVeJC8NcBqw 1W5FftoDgDNGlUANPl+f4WXoOx8iTAV857JUcRjmgZDMx6/GJA3E2PlNGw2aZ9SSktEvtGFvC3C Rrv2mmrq3ZUgGsJLQG0TUuGE3Bk4QWj3m9yj19PLHE6uW2/MF45eD0C8VP47qCPwG4DF90Q8uFL pZ+IozLsG4qiSsC6xcqA6ioVasEtktqfncZd6ALV/hWXlnSt3RJeGAi9MXJs5kZ0OQX5xIKuvA= = X-Received: by 2002:a50:8719:: with SMTP id i25mr15744025edb.53.1544538471273; Tue, 11 Dec 2018 06:27:51 -0800 (PST) X-Received: by 2002:a50:8719:: with SMTP id i25mr15743985edb.53.1544538470416; Tue, 11 Dec 2018 06:27:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544538470; cv=none; d=google.com; s=arc-20160816; b=xt1IBeuwqBQqxPNQjoPe4geHyfOD3j4ooWI9BHRcEtTrgA5YTWTGbV/3VVWOOUzKiP 4Ga06bn0bty4O/CnQqxk3z0f4f12jUfWNxpzJWf86XDLD9LqF9rfAI4XrW4akcIthHcx 8FSv+cq+XvkaU7eGgwmdhGF8ArOTUbOHSStl6lj5u/mfkVUudSO5f6g2HYqAMdXdwFRc c6/Lw4cW7d6JYLs8OTZjMFmp8iBHzKrj58kt1u8a5HhBlswOx7PiOBM0Cpmw1jpZ0zsv wVcQwd9Lk4M7mqtr8D8cIqFXWzvllnN/hLYgCTl0cXiq8RJTXGLbucBfOvVvL0MvhYQX q9Uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from; bh=uWKbXWDybGHa7TqlCpRzSWsYEsMiSEDWD1y1DOSD/Ds=; b=B3W9HT+q9Q5bRP7iF8R4Axy2P+WTo8N+wdCexRxJG1TCn9gqarQeN9zACQ3Mszg6Zw TXZ7sbtRBKrAJiygwnNWGbsRPLGLIWMYI57uwgRerRPDgzzn7h3dc/NyPTzO2tIfOEWu 52R7tnbOTvoI/9aHUlW4HBgvqb1iG2Y2hjdITjA9lRoXCMRROnhfOJ2Yj3Oaf93hoJyK BWFmd4dYBC3hu6nsOK6Y/iC4Qk1O5NoCG1gDT9MVjFvFAM3eX7iY07WpUq7lp0wURTrm KtTWHL5A65TM8MMAwJtyhzHp5kP2DnTzpSPCd9hRW2W+35MIKSbcPqT1KCQybM8pmFXI n4kA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of mstsxfx@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=mstsxfx@gmail.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id n19-v6sor3779554ejr.12.2018.12.11.06.27.50 for (Google Transport Security); Tue, 11 Dec 2018 06:27:50 -0800 (PST) Received-SPF: pass (google.com: domain of mstsxfx@gmail.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; spf=pass (google.com: domain of mstsxfx@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=mstsxfx@gmail.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Google-Smtp-Source: AFSGD/UFU/xd/EaZjqIX24eiawbdn2SJMpbYUZuA9K6q2D341p52PrJjxp3lRDQr2jz1wItoRmKjSw== X-Received: by 2002:a17:906:4944:: with SMTP id f4-v6mr12849696ejt.72.1544538469884; Tue, 11 Dec 2018 06:27:49 -0800 (PST) Received: from tiehlicka.suse.cz (prg-ext-pat.suse.com. [213.151.95.130]) by smtp.gmail.com with ESMTPSA id g31sm4073975eda.96.2018.12.11.06.27.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Dec 2018 06:27:48 -0800 (PST) From: Michal Hocko To: Andrew Morton Cc: , LKML , David Hildenbrand , Hugh Dickins , Jan Kara , "Kirill A. Shutemov" , Michal Hocko , Oscar Salvador , Pavel Tatashin , William Kucharski Subject: [PATCH 0/3] few memory offlining enhancements Date: Tue, 11 Dec 2018 15:27:38 +0100 Message-Id: <20181211142741.2607-1-mhocko@kernel.org> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 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: X-Virus-Scanned: ClamAV using ClamSMTP This has been posted as an RFC [1]. There was a general agreement for these patches. I hope I have addressed all the review feedback. Original cover: I have been chasing memory offlining not making progress recently. On the way I have noticed few weird decisions in the code. The migration itself is restricted without a reasonable justification and the retry loop around the migration is quite messy. This is addressed by patch 1 and patch 2. Patch 3 is targeting on the faultaround code which has been a hot candidate for the initial issue reported upstream [2] and that I am debugging internally. It turned out to be not the main contributor in the end but I believe we should address it regardless. See the patch description for more details. [1] http://lkml.kernel.org/r/20181120134323.13007-1-mhocko@kernel.org [2] http://lkml.kernel.org/r/20181114070909.GB2653@MiWiFi-R3L-srv