Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1641281pxu; Sat, 12 Dec 2020 21:41:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJy+m9SD6F7SdpuUtrXvl+a5KhUWvadRotCliOhEZSBfjVweP/PnAFJzPnNqdXH/sBNPOFhk X-Received: by 2002:a17:907:3f9e:: with SMTP id hr30mr5576215ejc.258.1607838101751; Sat, 12 Dec 2020 21:41:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607838101; cv=none; d=google.com; s=arc-20160816; b=bCX6t6ZFFjiKfqrV2U49I6tL+ZWFY1M3GHAiAYkmMHh3+ilt9S2oqwUxK2f4oSiboo H9ddEmpLf0tDYxj5HloGIl8Jhugy+8g0U/x4FejsCELsW8Wg+SzsSrmSNaKEpYj3udRk eVmlzaAj/X+yyEZEY/9vGWo33rIL10JJpPQmpwDTSp+fyW6aoxpc5pPPNMoN1r7oVZnA KZ/U0gCM2Q76QnfMo1dxpZgwh5QnHbJKaSw6iLlEV3yzfPnVqK3r4i9m7rgHtvHFIO5P 86mulkItIt1Ugro7WqzsIOEAvPZTkWNgVsPh57pWSL18EuSFPoGQLgPNIzhJcgikevDH Mj9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=GFKYVdHrtwiwhpkA9Do2VXDD8m9+meK8R9Kfm6AFeIA=; b=YKb7Y8Vw78FRD8IR6ytOOhMyzt2qLfm+lJ4903zGcRVpb8eKjmhMQgEnYBEK+G1eNi 7bCXhJGhxpoveJ8OYxDqHODVN6iJKX9FtRWLHrvg+IiM4pAQl9d6p/LvLBXnFJJuewHH Ba7JdHJp4OVO1ezazgmtGFLQJCw2R3TGp6wci/BnPwgluhQFrl9gMPsuH26W+jY4W37l CHb3vd8GDFZcHBa+m6m/PjF0wdb0flp2idEZA/MKp0cZE7a2ZcvJG8B5747xb4eQIm7y kLSHL6GkYs7YpL0Lt4/Mow50EuuZ+rreR++KUKeic0ZGOC6Q1+iZ7oSm+mAjbr5wLKw0 Hv6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@soleen.com header.s=google header.b=G2L4nkG+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dd25si7966267edb.438.2020.12.12.21.41.19; Sat, 12 Dec 2020 21:41:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@soleen.com header.s=google header.b=G2L4nkG+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404800AbgLKXCR (ORCPT + 99 others); Fri, 11 Dec 2020 18:02:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2394121AbgLKXBv (ORCPT ); Fri, 11 Dec 2020 18:01:51 -0500 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1496C0613D3 for ; Fri, 11 Dec 2020 15:01:10 -0800 (PST) Received: by mail-ej1-x642.google.com with SMTP id qw4so14499966ejb.12 for ; Fri, 11 Dec 2020 15:01:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=soleen.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GFKYVdHrtwiwhpkA9Do2VXDD8m9+meK8R9Kfm6AFeIA=; b=G2L4nkG+2a86HWG47Xy/ZeS/JPagQ4S1iIDkdkmNZpGdbylfdMtdumDUhfYLrN36a6 r9FcBfGlLA7oNgYPSWV1452G0gLBfHfX9R/E5/r9UdnLW8lnvQ9LqoFZS0YtcXAwMTIX gW/an9znixcgNfMIT+JAL8lkvMRONvK7hFpqDrxZFOfOTLhQoEt41+mGqIIqueIZOVkf +2Emj+V3RHlGGQ8M73ZLp4PsvMdlvnmx8o3rxEp/h/EkVuvAKo1vK/N/tIALBi1PsdR/ 0Oc78b1RKA5d6ZjtGsNlOeTt8MfSltcvsCZvL9Ufh4LISbNNGeOZBvy/dNtQL1IyQsJe 4oaw== 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=GFKYVdHrtwiwhpkA9Do2VXDD8m9+meK8R9Kfm6AFeIA=; b=CiXYWFXeLG3IdfCpz2rI/dkj4oaaW3z9lD6BvVAMXgr/v+aXW0GculKNqTnR/3okB2 wpg2oyMJo+qG/sza7spp+3E6o2ZwBKkYsm441GSwsrR3s7DKT3rsfDDcAmLhJ8gsSh/G oNq0imx1o3NLU5UWbYLCcX/Wsnrn4vZDXGYNd3S1nu5cPG5uBOMEhZ9pgfkswmKvcyFf mApe8EKZke+W5iTmaR7x9an+nTH1YET49k3J1zUiC/GGm68UaL46mHci4FY3EaxfEhXh GUzaPGDEpNEea3kjLP5fYGhSYucIa0ojXTPRzn5ZAw5zzASr6y/Z0nZ4p8jMQN8Q7cOz 7G6g== X-Gm-Message-State: AOAM532bisBGzM+XUWRmm7TQYk8eDMCNksQtoHnfcwhUeJmJHWmn7LuI pfykpUh1B6oPzoaDlR/8NWtBXQPUIkub4MCaUlJjcw== X-Received: by 2002:a17:906:fb9b:: with SMTP id lr27mr13275461ejb.175.1607727669571; Fri, 11 Dec 2020 15:01:09 -0800 (PST) MIME-Version: 1.0 References: <447A41F3-EB94-4DA4-8B98-038B127774A5@redhat.com> In-Reply-To: <447A41F3-EB94-4DA4-8B98-038B127774A5@redhat.com> From: Pavel Tatashin Date: Fri, 11 Dec 2020 18:00:33 -0500 Message-ID: Subject: Re: [PATCH v3 5/6] mm/gup: migrate pinned pages out of movable zone To: David Hildenbrand Cc: Jason Gunthorpe , LKML , linux-mm , Andrew Morton , Vlastimil Babka , Michal Hocko , Oscar Salvador , Dan Williams , Sasha Levin , Tyler Hicks , Joonsoo Kim , mike.kravetz@oracle.com, Steven Rostedt , Ingo Molnar , Peter Zijlstra , Mel Gorman , Matthew Wilcox , David Rientjes , John Hubbard , Linux Doc Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > I guess revert what we did (unpin) and return an error. The interesting question is what can make migration/isolation fail OK. I will make the necessary changes. Let's handle errors properly. Whatever the cause for the error, we will know it when it happens, and when error is returned. I think I will add a 10-time retry instead of the infinite retry that we currently have. The 10-times retry we currently have during the hot-remove path. > > a) out of memory: smells like a zone setup issue. Failures are acceptable I guess. > > b) short term pinnings: process dying - not relevant I guess. Other cases? (Fork?) > > c) ? > > Once we clarified that, we actually know how likely it will be to return an error (and making vfio pinnings fail etc).