Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp6306333imd; Wed, 31 Oct 2018 09:43:39 -0700 (PDT) X-Google-Smtp-Source: AJdET5dhoHgwl5EGFIzLWZX0yE4DeYRkyGHe1mK/U9tmA7xc8+T6aaNdoFo4whDuoEtjg648RiDc X-Received: by 2002:a62:4151:: with SMTP id o78-v6mr4207479pfa.66.1541004219484; Wed, 31 Oct 2018 09:43:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541004219; cv=none; d=google.com; s=arc-20160816; b=mnLX+trXUgv9C80TmlnGxiidd9nqTGF9SG7SU3wMzJjbFJj1IQiYm4Kfap/3ep8n8i hPf0B3+twoZWJAf7PFAVDb44NX3QfxsXU5i/1/aLU9aKwYX78S9XK0nmXxmEDu9Xmu9i cOZLBYUkXmVGdMlVc67RxUSpF+tpLu81vQmkJrzLguQfKInBRz4WGLFVJiNJrEmMdQFQ CyPtWVoZxqslo4o+Imc1kKUcZ9mYGfwfZhRF3SJJi+ksWadocze+lrZC4woa4fGPXneE nFT4dNtPr2a3aiinCNyAzZJdhlCl7ELA5AhZxwQ4RJGy0Qxk97r21NQ2LqNxiFeHcu3l xeUw== 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=5xEPv8t2BfcacPUbLNOPmjtKYLsfjxvYuLj/A1krDug=; b=ka7oRzoZZhqw581A9RsnDhkJ+sIciRC7CbD/iNdsksdtcz7uDTR/tlyAbbMvAVT9so TCGEkQYOqtKhsJ5BgfDfk5zSthAl8QAMzFHH09klbFaVQYMzYNRRuaNAhANcaw5GUHIG yj+EqLn/A5vqYS3B34qvo9dgoeph+Q+LMqkHshtT6jYK8CUDOxbf9d+1+vP80Sy4Bk+S viAcl8hz0IrBod1psPvMkveFN7MLqhs5YwOHm74/Kv6Mv4MwZdtMXdHV6fHmnftRJ1NR CXIoEK1Bxn6ChOBmZFXIQmd1colll38ieHw8+obQw2HFF5XpoBZbO4ZtbucgRzMuW132 BemA== 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 q19-v6si26226947pgl.77.2018.10.31.09.43.23; Wed, 31 Oct 2018 09:43:39 -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 S1729838AbeKABlU (ORCPT + 99 others); Wed, 31 Oct 2018 21:41:20 -0400 Received: from mx2.suse.de ([195.135.220.15]:58334 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729341AbeKABlU (ORCPT ); Wed, 31 Oct 2018 21:41:20 -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 D60BEAE85; Wed, 31 Oct 2018 16:42:32 +0000 (UTC) Date: Wed, 31 Oct 2018 17:42:31 +0100 From: Michal Hocko To: Dave Hansen Cc: Kuo-Hsin Yang , linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, linux-mm@kvack.org, Chris Wilson , Joonas Lahtinen , Peter Zijlstra , Andrew Morton Subject: Re: [PATCH v3] mm, drm/i915: mark pinned shmemfs pages as unevictable Message-ID: <20181031164231.GQ32673@dhcp22.suse.cz> References: <20181031081945.207709-1-vovoy@chromium.org> <20181031142458.GP32673@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 07:40:14, Dave Hansen wrote: > On 10/31/18 7:24 AM, Michal Hocko wrote: > > 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. > > Didn't we create the unevictable lists in the first place because > scanning alone was observed to be so expensive in some scenarios? Yes, that is the case. I might just misunderstood the code I thought those pages were already on the LRU when unevictable flag was set and we would only move these pages to the unevictable list lazy during the reclaim. If the flag is set at the time when the page is added to the LRU then it should get to the proper LRU list right away. But then I do not understand the test results from previous run at all. -- Michal Hocko SUSE Labs