Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp6141229imd; Wed, 31 Oct 2018 07:25:52 -0700 (PDT) X-Google-Smtp-Source: AJdET5c9TFQBC2VRQ40upCz31jvOitSmp2YWi5fYZeqlgCvr7c8LagmMd35dyTyKjr1sfBm28iLH X-Received: by 2002:a62:6bc9:: with SMTP id g192-v6mr3614749pfc.232.1540995952580; Wed, 31 Oct 2018 07:25:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540995952; cv=none; d=google.com; s=arc-20160816; b=gK3pcu6dp0Dr1HKT2ipqxneUGEuWb31hBCZkyMPwou3KayprZCWMsj81YzY+iNOzda +Rmg7t/g2dFuEKD68DSFVGdlD8sKfgR0zKrcomqFxC+XVCbtLY56Scx0B0uBF2Q+TlNd Ot+uyWep6ugn1RSEGu0PmnSQ3hEFVQLMoJ1/Y37rTDEq6+0oW1Ef9y4s6T0BfVVlbdDj vDKLOe9BYh1NUekENiB0JHpKiNRiKr/rvXmY0ovvCjRMd/WRs/aPfARe7mURT1gR9d/k crqvVrPrbif/BTOQbXpn+xLTRUo0lvrJF95mqKNp6bz9CMwcHJeD2jAt0PA+y0NDwO78 5rNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Ffim4VwxsdS9ugNi7jk7JBVpGsge9aajF8KHZXRINzQ=; b=CQz/zSLXyPQ8tnEDQ7p8kJbu5pKLDXTXu7qnxvxOxRjv+B9HA5hJZpMAQnoRtvoMac Ify/b5LpDhTtdfy7iWqgHkxAJRDQ9rNch4IjElGb7O6+gFls3/1p7syif+7XLYCkA0z4 /6oxoKOvUWMwq0PWSjzFXcypXRXrh2YfiYlGDko/HTNxYltUdR8nRBkDzSbTDkE2U1LP qj8SSNmHfuAmpdmB5Nc2i7zbwEu72dgVHLgjbPW8au3s6EPCULaOmYsHOQ/8KuzdILXc h9f6IEKjuBOgwPas/gqqxarG7hLi+bI+H80Pg8Rzd+PfJ7lFZV58/iZgA7voLu+8JbC7 sM7A== 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 n17-v6si3536759pgk.501.2018.10.31.07.25.35; Wed, 31 Oct 2018 07:25:52 -0700 (PDT) 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 S1729549AbeJaXXP (ORCPT + 99 others); Wed, 31 Oct 2018 19:23:15 -0400 Received: from mx2.suse.de ([195.135.220.15]:37460 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729289AbeJaXXP (ORCPT ); Wed, 31 Oct 2018 19:23:15 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 2D78FAFD6; Wed, 31 Oct 2018 14:24:59 +0000 (UTC) Date: Wed, 31 Oct 2018 15:24:58 +0100 From: Michal Hocko To: Kuo-Hsin Yang Cc: linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, linux-mm@kvack.org, Chris Wilson , Joonas Lahtinen , Peter Zijlstra , Andrew Morton , Dave Hansen Subject: Re: [PATCH v3] mm, drm/i915: mark pinned shmemfs pages as unevictable Message-ID: <20181031142458.GP32673@dhcp22.suse.cz> References: <20181031081945.207709-1-vovoy@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181031081945.207709-1-vovoy@chromium.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 31-10-18 16:19:45, Kuo-Hsin Yang wrote: [...] > The previous mapping_set_unevictable patch is worse on gem_syslatency > because it defers to vmscan to move these pages to the unevictable list > and the test measures latency to allocate 2MiB pages. This performance > impact can be solved by explicit moving pages to the unevictable list in > the i915 function. As I've mentioned in the previous version and testing results. Are you sure that the lazy unevictable pages collecting is the real problem here? The test case was generating a lot of page cache and we simply do not reclaim anon LRUs at all. Maybe I have misunderstood the test though. I am also wondering whether unevictable pages culling can be really visible when we do the anon LRU reclaim because the swap path is quite expensinve on its own. -- Michal Hocko SUSE Labs