Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp437517imu; Mon, 5 Nov 2018 03:27:00 -0800 (PST) X-Google-Smtp-Source: AJdET5cxzE1C7zfe6hzrvma4bv5nq7igu/vs8hnPw4lOvil5EZUAzfrItDLawewhggtoKTmxitfZ X-Received: by 2002:a63:e516:: with SMTP id r22mr4008545pgh.256.1541417220555; Mon, 05 Nov 2018 03:27:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541417220; cv=none; d=google.com; s=arc-20160816; b=oEfy6Wc14W3XqfBBswoTwjDnJ2/jph5F8kFAgurB+beQSlVj0KZFDGPR4XHmOgKi8h b3ud9BxBTTstwv7a53nWxKJL1RAlBK6F+Y1wCwRNk0DiBvmlLbIfUulcBlIYjQxkm7Jz Xg2H4JS+jgXWlJ9kh7y/7bvCppH4UIDi6h1hWQC/3FaTqr2xCymzsrtfEnN9yY4LpbCi MddxCViPyT6iXoy4XyDQ20aTQSkmMUD+2zwa0JlifIBQ6aYk2QvWAdKN7Eo5ZlrpxVcM Iqc93HznFaSaAf/q+Vc69tfrQGqEyEmmCtVwt5MX+ZrYrTAEuRCD7M8FlqSCH2yOMVMD YQuA== 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=itghpjIfmiE5/KM5eenSeE+/NVGanYuSF9iEq8vTcew=; b=v91lVYl/qEWa4ATlfn6izkmN2CDcI9Y8qjoILCjHYmL0R3WQf1+aYRnqMgIYDAV4EX wrJCHN6XKX2BsbtKc92godmDn3HriTBulKsrZa39tW0Fn6X0U7HXxmICz7cF1lDsFTQP vMz7QF1LCT7t5uj2KLZC/EhLowhQ80JGDH+ISaLdeYOG+IWgM/pnTb0SJHGdpO/3Qfl1 wQ1YIqKDqaMTM2AxoEtUGedtG6mrrBefH/Y4lEeN9Zz480IHJYw2wYbbTzTJ1YZhDP/q dbIpYrQ2bM8pQHeiMLobVsHE2bEHUG5XQynhyICcahFVQiurYEbc/Qd/8CyN5+qOIeS+ 8HRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ONkUsKip; 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 206si18568249pga.240.2018.11.05.03.26.45; Mon, 05 Nov 2018 03:27:00 -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=ONkUsKip; 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 S1729496AbeKEUnx (ORCPT + 99 others); Mon, 5 Nov 2018 15:43:53 -0500 Received: from mail-oi1-f173.google.com ([209.85.167.173]:33732 "EHLO mail-oi1-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727563AbeKEUnw (ORCPT ); Mon, 5 Nov 2018 15:43:52 -0500 Received: by mail-oi1-f173.google.com with SMTP id c25-v6so7132705oiy.0 for ; Mon, 05 Nov 2018 03:24:38 -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=itghpjIfmiE5/KM5eenSeE+/NVGanYuSF9iEq8vTcew=; b=ONkUsKipqH3BpHvDk1jDbYNOpbfBrwOSagDvLCoTgIMo+a80c+fxWgRKDyL2OQa0uV YxW6oUDQu7Xl1oACGgr6lRqYmMNsGJ/O73MdSdEok66eHnLeFE+0A798uulwS9DuUck9 wtpsypr+EVBMV5Wg0VI8/sDVUHyS0Nz0EN1tM= 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=itghpjIfmiE5/KM5eenSeE+/NVGanYuSF9iEq8vTcew=; b=Dbx/AHSNB1uJuVmyCKiEvTiDyySpELmyUW/OtTTE4ApHYizOEwgg2ckwbnCLTFRjIV I4DOIibnLyS9N1QAF+CJ2pWD56i64N6OTxfRyF5q2JqD0fUi/E/JZipL2x4xknYG5wUD PyJWtF2x0xf8lyyMTWP5oyu4C5ICqy51BqdixEpSvtcP/2azt9D6l7Z1cRqvC+GHZk0a HU4M1+9xzsGg9aOws45lGBb14Sf1gGZC1wiliLct+9tVttMfMIt99PSDiZzr+BY3c/MN 3fA29y042avQp60dlcwAei7cQwwzoX31pkGUlfX3+0Htg8Ut47qC7PFckJ5E6OWTLsDY Ybog== X-Gm-Message-State: AGRZ1gLuO7nyimGuN2UYLByg4ZG0IzriEIuS66q2CEuocWdWHOqw/SQo XWhP8ZimT4ltfWrtl6h+5ys9pNoNA5udMe1HKX5k X-Received: by 2002:aca:5f45:: with SMTP id t66-v6mr59876oib.20.1541417077519; Mon, 05 Nov 2018 03:24:37 -0800 (PST) MIME-Version: 1.0 References: <20181031081945.207709-1-vovoy@chromium.org> <039b2768-39ff-6196-9615-1f0302ee3e0e@intel.com> <80347465-38fd-54d3-facf-bcd6bf38228a@intel.com> In-Reply-To: From: Kuo-Hsin Yang Date: Mon, 5 Nov 2018 19:24:26 +0800 Message-ID: Subject: Re: [PATCH v3] mm, drm/i915: mark pinned shmemfs pages as unevictable To: Dave Hansen Cc: linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, linux-mm@kvack.org, Chris Wilson , Michal Hocko , Joonas Lahtinen , Peter Zijlstra , Andrew Morton 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 Fri, Nov 2, 2018 at 10:05 PM Dave Hansen wrote: > On 11/2/18 6:22 AM, Vovo Yang wrote: > > Chris helped to answer this question: > > Though it includes a few non-shmemfs objects, see > > debugfs/dri/0/i915_gem_objects and the "bound objects". > > > > Example i915_gem_object output: > > 591 objects, 95449088 bytes > > 55 unbound objects, 1880064 bytes > > 533 bound objects, 93040640 bytes > > Do those non-shmemfs objects show up on the unevictable list? How far > can the amount of memory on the unevictable list and the amount > displayed in this "bound objects" value diverge? Those non-shmemfs objects would not show up on the unevictable list. On typical use case, The size of gtt bounded objects (in unevictable list) is very close to the bound size in i915_gem_objects. E.g. on my laptop: i915_gem_object shows 110075904 bytes bounded objects, and there are 109760512 bytes gtt bounded objects, the difference is about 0.3%.