Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1608961imu; Tue, 6 Nov 2018 01:09:39 -0800 (PST) X-Google-Smtp-Source: AJdET5fQpbygCTNUQyM6iYHxwLzMZ1qlM5cjjVnFMwLpcJVwfRQmSCaegBi9UofiD9F38aK9HdNT X-Received: by 2002:a17:902:ab81:: with SMTP id f1-v6mr11903130plr.103.1541495379537; Tue, 06 Nov 2018 01:09:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541495379; cv=none; d=google.com; s=arc-20160816; b=YgJNtH/e+bCdsndP/QVtmLnoHVD/qS1rSAi2qOuWgRJZvkFRwvEfUUpoFSSjgk8XQF QQDE0X+DEl0BUp2tMI0aW6DMFjYTZOw0l65JnRhqwaOkEMGkRZ7n114I1i16xHUrKF9j GZmDSMBlEl1fgfsc9A3YbiFNL0H3Lt9AJv/QpCF4pWnRWvtIdXE8g6jOUw7P3hhhgGlX 9r360Q06nkJByDIVQ5o+KCjwbGQsjDODzrNRZeF/Lr/k1a6k6aUjovYQLa9CF3x0EdOv Ax+HVDUagNB2HeHX35hAoSBX8GfdifHQFWiSmH3kCM0PNv4TjbwTRePHNqVf4AFloFA9 453A== 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=tILo1W0M+59dJw0rHMyTVVhoDnmHRwEahxLkKyXtj1I=; b=smJ+gvhjEYSH7FXRn5tH78/omqzVzpBqHbe/Sl/AwlTsefI7+KDqAWCeqQ8OGMUZia rJIraL3CWLlPCIvIH0MKcqQMQD98YqDMmLeppr5hnte3YbVB16n3XTcr9P0Uk0yZbPXl cHZdJ/l0KAVUvmdD6oC6iJbsyt2P0oxzY+eZW0HEpOy/aZOqlqtbQLOUoG/g0/EqNdJC PZFmnENgdNMuCFVzJzZbiae7FX3MH2ZkJ3W9BYq3LFlOABFILIYsAd/f8lDUaiiIR6qt fP5enUxHXr/eR0ULHp/VAqHEhyBX/OYq5ELobG4kfC/83nXS0o8D9LGSdajqGyjt3+k3 rAmQ== 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 cc8-v6si6529539plb.377.2018.11.06.01.09.24; Tue, 06 Nov 2018 01:09:39 -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; 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 S1730310AbeKFScz (ORCPT + 99 others); Tue, 6 Nov 2018 13:32:55 -0500 Received: from mx2.suse.de ([195.135.220.15]:38088 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729160AbeKFScz (ORCPT ); Tue, 6 Nov 2018 13:32:55 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id A26B5B100; Tue, 6 Nov 2018 09:08:39 +0000 (UTC) Date: Tue, 6 Nov 2018 10:08:39 +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 v5] mm, drm/i915: mark pinned shmemfs pages as unevictable Message-ID: <20181106090839.GE27423@dhcp22.suse.cz> References: <20181106090352.64114-1-vovoy@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181106090352.64114-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 Tue 06-11-18 17:03:51, Kuo-Hsin Yang wrote: > The i915 driver uses shmemfs to allocate backing storage for gem > objects. These shmemfs pages can be pinned (increased ref count) by > shmem_read_mapping_page_gfp(). When a lot of pages are pinned, vmscan > wastes a lot of time scanning these pinned pages. In some extreme case, > all pages in the inactive anon lru are pinned, and only the inactive > anon lru is scanned due to inactive_ratio, the system cannot swap and > invokes the oom-killer. Mark these pinned pages as unevictable to speed > up vmscan. > > Export pagevec API check_move_unevictable_pages(). > > This patch was inspired by Chris Wilson's change [1]. > > [1]: https://patchwork.kernel.org/patch/9768741/ > > Cc: Chris Wilson > Cc: Joonas Lahtinen > Cc: Peter Zijlstra > Cc: Andrew Morton > Cc: Dave Hansen > Signed-off-by: Kuo-Hsin Yang > Acked-by: Michal Hocko please make it explicit that the ack applies to mm part as i've mentioned when giving my ack to the previous version. E.g. Acked-by: Michal Hocko # mm part because i am not familiar with the drm code to ack any changes there. -- Michal Hocko SUSE Labs