From patchwork Tue Nov 20 13:43:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Hocko X-Patchwork-Id: 10690399 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 E82EE14BD for ; Tue, 20 Nov 2018 13:43:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D8E0E27853 for ; Tue, 20 Nov 2018 13:43:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CCC1D2847A; Tue, 20 Nov 2018 13:43:38 +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 6B6D027B81 for ; Tue, 20 Nov 2018 13:43:38 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 786476B1FCB; Tue, 20 Nov 2018 08:43:37 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 70CAA6B1FCC; Tue, 20 Nov 2018 08:43:37 -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 5FDA16B203D; Tue, 20 Nov 2018 08:43:37 -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 1B9706B1FCB for ; Tue, 20 Nov 2018 08:43:37 -0500 (EST) Received: by mail-ed1-f71.google.com with SMTP id b7so1289938eda.10 for ; Tue, 20 Nov 2018 05:43:37 -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=pm9BFsTZwttpokAoTBqiBJjRdorII9/av+J2UcJN2SQ=; b=tOqlhwc2DT360uSmBdW8l7w4FsdSuRydAxF2CKoFVvLpbGv+0EY9F56Vay4CeIdWJX aloJkHC06h3mMmry8+hxeSDwOXHeML+Sf/32ddLkz/qTFvf///c/ZG/NkJRrupFC7Kuh iaLtLuCQmt7KAMiypps/o6gAVxud7biQYvn6EMwBIojlCoqdupUY6VFJBcFK7h5ZkTs5 6DQpRpp8oDiOR/vr1LD4x4YOsw3vW28bydAWMzDV1HoCppNKHSKGGMbBjaNrdUbieixs RS1hBDBrjzuKoEyUKAYE2bf5g60rpKTMqLqfF29t9oYcE8Izoql5klglqepkSeFYvo1a BEBg== 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+aEWb6y/LEph9s5uuHuOXKhobBejX6OoQXSY1yx+SQE525u4pyq0fQ CtI9S7JNQnD+EiXXJu8rsUDh8+nxBioYS0vAEbaZemykJwt/fiXdxqkWS7SWnrWtdWlsPd+sIBl 6432vFqWOiShwysiRP5ZJYuLVXbtJ/cmFKUBrSLJjCAGRmeyiJiqT3/r6XcwD66tsvOLsCY90Gh fANeSEWIN8tAw2223xbZKmpAVIlmT6SFfsyqe/6N9TodQI5oHam8juqYwKbEnloTM8Cwwpwttsl qc6zu48nDlXh+puCuERHgccaxIsW4xMH0UADcgl01VdIQ6J3Si3qGGbgV4t6fjByv2ckiVbhNjB nJInvBvOQCcpM9edjzyp+9PduHomxwqpULU10HSLB+XXlIqdWb6dmG+RJ454ypwmtft9pmairg= = X-Received: by 2002:aa7:d749:: with SMTP id a9mr2239345eds.223.1542721416613; Tue, 20 Nov 2018 05:43:36 -0800 (PST) X-Received: by 2002:aa7:d749:: with SMTP id a9mr2239317eds.223.1542721415778; Tue, 20 Nov 2018 05:43:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542721415; cv=none; d=google.com; s=arc-20160816; b=xFjNM12adClhHbFn0peN5CLiKX4VpYtaUUIPvb3gSSWGlFY2RBsF8hD5agdOcDta61 JwECrkPImIKpsJgLoGyJJM8gyX3jmA7IXovAhXdKbRl+ct3+d78B+9KAXaQsaWmgHuLV wWS21aP0uGEpk13abKZADUZ3vPx/MRJmEy7bcQxe+DxSblJnyZBPlQaq9V0YnH/3ZzJH B5dIr6DPUWpZM9Iv9NfU/9cJAeftjgWG0VVN3RrT9Ci39sRM/Lp2PDoClZb6BylF+sC0 JAM2yOx6Z0z59/X7kHvBcuYWLS0sAVYX7X2mrlAw20HwBSCIHEpBg5KcaqZ3PZ+tL/tA RJKA== 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=pm9BFsTZwttpokAoTBqiBJjRdorII9/av+J2UcJN2SQ=; b=AGH+qZkwMrPkI1iD2o2+le9W2e9qIa02P78nrmLvcX0pk3ETSNC05Vhb4g7+CUENpO hg0xT4kt/BJDHt5GhVSpk22l4jZ3hXRER0FOK8dwRHtPFOAIR29jT0QTvSNQq7Gx6HAY OC0W+n0GQUY+V8FCnehZTwjDoY8kwP1VSpuOdyNSWOan4cq7Ko960QHYFjZmfEPma8N1 uweT+dNoxRJoNpjhBYSz/4NnT79YZlLTZ7oWEFbiLLfuR8WY4E6OUBnffKCaTbycCY2d fUYWkWHcbSslI3QGsgIrbw17FCvn/TcH/vRYmWbNcBldefsBT5OGst6nC+GDwpHqL9DY +sMg== 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 i53-v6sor21843408ede.8.2018.11.20.05.43.35 for (Google Transport Security); Tue, 20 Nov 2018 05:43:35 -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/XKJcgq7UxS8sK4BF9W5DdSiizRqG1frM+FYHacR/P/cQdpf8YXqg3zL15b4TxtJ8tl730Q2Q== X-Received: by 2002:aa7:d394:: with SMTP id x20mr2279753edq.193.1542721415022; Tue, 20 Nov 2018 05:43:35 -0800 (PST) Received: from tiehlicka.suse.cz (prg-ext-pat.suse.com. [213.151.95.130]) by smtp.gmail.com with ESMTPSA id 49sm8428786edz.59.2018.11.20.05.43.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Nov 2018 05:43:33 -0800 (PST) From: Michal Hocko To: Cc: Andrew Morton , Oscar Salvador , Pavel Tatashin , David Hildenbrand , LKML , Jan Kara , "Kirill A. Shutemov" , Michal Hocko Subject: [RFC PATCH 0/3] few memory offlining enhancements Date: Tue, 20 Nov 2018 14:43:20 +0100 Message-Id: <20181120134323.13007-1-mhocko@kernel.org> X-Mailer: git-send-email 2.19.1 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 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 [1] 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/20181114070909.GB2653@MiWiFi-R3L-srv