Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1749441imu; Tue, 6 Nov 2018 03:50:34 -0800 (PST) X-Google-Smtp-Source: AJdET5cwQ4KUuzVdLNtoeopBEbUxePJyZgPKr4G83i/MIwktCr2nTGRxPMUBZR8+qbwrL0ctgyI5 X-Received: by 2002:a63:d252:: with SMTP id t18mr23591786pgi.133.1541505034094; Tue, 06 Nov 2018 03:50:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541505034; cv=none; d=google.com; s=arc-20160816; b=uI+JU9wQSnGvGrk1JihxeocxHWm8YdRULGEWyAez0pds9ezEnhg3Ma/emvzngiSqF8 uNHp1LczePBJIe8huOfiNga7JU2qRkllIzjl/HFp275oDC74B5pF9pK/YDsmadRRA+AT opMPr5e0L7X3qdSk6gtxjCD3aYcQA1lpOrY+4gOeejUFT68hlBWubD0Mzhh5pEppOxed zb0ExDriZteiIBgBieRj5Mr9ZbowJAX9CgmhbymSpt66/Ik3U0zcuMLH7oipV+vjwxSI 0xjCbNlhY/4rAYiXTrmgFr754OOLgiyCnEvdKjMRQ5P/PrxbOc2+lE1dt2LNasJueCCX kXQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=gbii29wtiRg6flUAAWtEvchYtVMTaKWWsTFXyHnDj9A=; b=DOaOEM+kf/WqPYMtBJspH23l8lSy+syNs6CPy0x3Fi5IqX0CgGDQFnIal2+nDEynwy Mqv0NLoLPV2wM54TrK5Gzhv08NS8ItmEU8xEb8xdftwGJINFQ4Z5Mriwtn882YAqH2MS k9fpSk+WgnPzXjiPCBX8/FS7SoOpBZe0RyGJf8fkbyUdn31+BZLnMZJwp/PENjLG5k/x 9vrOg66W1GIBZ1tTLxb/B7whF31o42vMU3mXwkSsIPZjRd3McBrejldRamtGcfJwn9Ib xKo5HtL/xP1TKD9UFm0EAaMlKIxhKOGKi8w733+UxiriAF2fuJzthNmKvCnVa857Q1DJ CzVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=jRg4ajig; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 89-v6si31425581pld.274.2018.11.06.03.50.18; Tue, 06 Nov 2018 03:50:34 -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; dkim=pass header.i=@chromium.org header.s=google header.b=jRg4ajig; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730568AbeKFVOr (ORCPT + 99 others); Tue, 6 Nov 2018 16:14:47 -0500 Received: from mail-oi1-f196.google.com ([209.85.167.196]:42457 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729878AbeKFVOr (ORCPT ); Tue, 6 Nov 2018 16:14:47 -0500 Received: by mail-oi1-f196.google.com with SMTP id x63-v6so6716725oix.9 for ; Tue, 06 Nov 2018 03:49:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gbii29wtiRg6flUAAWtEvchYtVMTaKWWsTFXyHnDj9A=; b=jRg4ajigMTBqkJMaMAXMFtcsPw6bUCUBlm9i8NQrvM/DH92kfOAAdF/aZi4iNSyuWw mdf+B67EtEaqR3OeE36wwI//fhuesz7HjcM97OLfkHIkvJIRGHwnMZ6BhpflSYVn73LM Q4s0K7Iuw9DM9BmQzz17xlRi+y4/LqKsmG5AA= 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=gbii29wtiRg6flUAAWtEvchYtVMTaKWWsTFXyHnDj9A=; b=HAK3YRQJEOfpBuiTZmZSa4tqRUEiFp1is4xpW0mu51poPJBxrJA64Q8Royg/Xb7G3s 5OlSOULMFwarXKB89y9MYrLZel8FnHzY+qqLFq5/aFgd62PE26nplQgdShN6GaMvaRUc Pzq6dKlQbZl+mkbpDEU2tfj62UMLKLf11Tky1BUMaw+ZCtFa59ddb70nkzUfJO+c3fuj w4c1mN8EoG3gxTj16eXkZ9LCXYvSJVnP8oxUeDMkjFzMnEzFpDu/cwoRLHiDicYs/Svl a6i4KLIAxcMzANQNi4Qpzg8xXt+e4UgHCjIyr0cwuvdXwDDyHP9u73aD27BthG+wX5GT SXTg== X-Gm-Message-State: AGRZ1gJU6OFP+sJHYxZy3oca6B3qT2RYw7kxg0F3fl7ZzL2wPgIvyWXc /QbD65Ls17yNF/ne2Zuz0l9y5ANDz28TM8Rw6FNv X-Received: by 2002:aca:f50b:: with SMTP id t11-v6mr15914576oih.57.1541504997070; Tue, 06 Nov 2018 03:49:57 -0800 (PST) MIME-Version: 1.0 References: <20181106093100.71829-1-vovoy@chromium.org> <154150241813.6179.68008798371252810@skylake-alporthouse-com> In-Reply-To: <154150241813.6179.68008798371252810@skylake-alporthouse-com> From: Kuo-Hsin Yang Date: Tue, 6 Nov 2018 19:49:46 +0800 Message-ID: Subject: Re: [PATCH v6] mm, drm/i915: mark pinned shmemfs pages as unevictable To: Chris Wilson Cc: intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Joonas Lahtinen , Peter Zijlstra , Andrew Morton , Dave Hansen , Michal Hocko Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 6, 2018 at 7:07 PM Chris Wilson wrote: > This gave disappointing syslatency results until I put a cond_resched() > here and moved the one in put_pages_gtt to before the page alloc, see > https://patchwork.freedesktop.org/patch/260332/ > > The last really nasty wart for syslatency is the spin in > i915_gem_shrinker, for which I'm investigating > https://patchwork.freedesktop.org/patch/260365/ > > All 3 patches together give very reasonable syslatency results! (So > good that it's time to find a new worst case scenario!) > > The challenge for the patch as it stands, is who lands it? We can take > it through drm-intel (for merging in 4.21) but need Andrew's ack on top > of all to agree with that path. Or we split the patch and only land the > i915 portion once we backmerge the mm tree. I think pushing the i915 > portion through the mm tree is going to cause the most conflicts, so > would recommend against that. Splitting the patch and landing the mm part first sounds reasonable to me.