Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp856316imu; Tue, 20 Nov 2018 08:00:50 -0800 (PST) X-Google-Smtp-Source: AFSGD/Wg1tyIxtyaCo8crKUdVinfFdbBHKPoi+NZgvJyFzzxe8szmEwc6fjThioYeMXOoo2EGtXd X-Received: by 2002:a17:902:76c2:: with SMTP id j2mr2791903plt.339.1542729650090; Tue, 20 Nov 2018 08:00:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542729650; cv=none; d=google.com; s=arc-20160816; b=c02J+gERwRU2RGJnq9XXV5irIUcLM0tYltdg8rmMRbnGyo2UobUvfCCyTlEALhI95w ePZUr5x8E67zvQZF/cB4Lar/UcvzWbp7Hc46c8GILlwheNsEsT8ROP7CrfDuG33xu5oI IvkeTZcEP7nN+lGry/hvlgl+upisYX7bAkDPl7yRrUoRegdixUhz/zlzoj0szq7rEsUp m5hhIdx0bqWMjRkV6Hxghg+JubZ5SzCsAHX0BZbjxcRrsL4QcVbNP43W2aTgBF1lSHAk SjauV0XqRliVmUbT7c+qaimMpsUlb5+iltG9glti3j10CYTOAKhRC3mKfZdk3QZwZ5yb xEAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=pm9BFsTZwttpokAoTBqiBJjRdorII9/av+J2UcJN2SQ=; b=SF7X7FNdyCt6vkDJkKBtFgW0RiufznT6o+8ck/QD3x9Sd3vb4gsdH4GddOG3wZxls3 2h64X1JkDmWJteB1rHhiwtBkYveJdxsyCwbyDnQCBKLsO+3xLzJjsT3YkdGTd8DmzTWB WPjiPzvhmiFnJ4Ue/0AiJ/JnqVV76jyFYZLUJxXt93NNXcsPSuf6JFRfPtfTQCt+Fjac iXOELjyDU+l8AYyl15/S4CXOr74bPnAKIZs8/5OGGU8qSsrXwUx8zRyTSeUfdEuODO6W l99QpEdwx6vH0SynToI6vFKEkpw1mLBLwfBlWKqHgYk/lY66Vh2LiVzUkl4NjtezSan2 exLg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z8si41237613pgf.577.2018.11.20.08.00.34; Tue, 20 Nov 2018 08:00: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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728397AbeKUAMu (ORCPT + 99 others); Tue, 20 Nov 2018 19:12:50 -0500 Received: from mail-ed1-f68.google.com ([209.85.208.68]:44320 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725995AbeKUAMu (ORCPT ); Tue, 20 Nov 2018 19:12:50 -0500 Received: by mail-ed1-f68.google.com with SMTP id y56so1928490edd.11 for ; Tue, 20 Nov 2018 05:43:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pm9BFsTZwttpokAoTBqiBJjRdorII9/av+J2UcJN2SQ=; b=cGfmwIMh3H9zJKuRlWajW+WP3hSzWXPM9EH9S6Qj9gPNeFOhXcIMLle+ioQizp3cwM PWADBp3eGI/1obW8GaygJF9jQhc/X0Hi4GfY886uCn1OWyeGJGQP19+3gldMU4REw/ZL W4aSqiaGWYnR14uqWvV/Xb944cgD96oLq1Yrmxo66pbWusc6+BTOcWQ9xrp1p1+63W2O laajhzYUKOUjYRKZnO6fg+x0L7Q72AG5EhDo1W19Poa3lHVppJ7EUxgs46689PyIl2kO NVFPy3k6PUUcfx2WmTgg1BfhcMV/RqHGvcPdck+ZLqgNGbua9/BgRsZWXg0UkX5dzUk1 WyTQ== X-Gm-Message-State: AA+aEWbvEyPIvGV0vvtMlXstlKHXsZojy9ITRCPgvzv5v7yHgxlfbUEg OvdKMrLHC4EeWAtbL44tnpM= 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 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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