From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752754AbdJSKTu (ORCPT ); Thu, 19 Oct 2017 06:19:50 -0400 Received: from mail-wm0-f44.google.com ([74.125.82.44]:47569 "EHLO mail-wm0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752166AbdJSKSf (ORCPT ); Thu, 19 Oct 2017 06:18:35 -0400 X-Google-Smtp-Source: ABhQp+QA3c+czxbyym/Z7xnNIQwEPrNbEv7oqyhunFi3kFJQwnJjPk3uGFPvYpJPCJVc71f0pjOfoQ== Date: Thu, 19 Oct 2017 13:18:32 +0300 From: "Kirill A. Shutemov" To: Shakeel Butt Cc: Andrew Morton , "Kirill A. Shutemov" , Vlastimil Babka , Michal Hocko , Joonsoo Kim , Minchan Kim , Yisheng Xie , Ingo Molnar , Greg Thelen , Hugh Dickins , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm: mlock: remove lru_add_drain_all() Message-ID: <20171019101832.xli25kizn3y55pbq@node.shutemov.name> References: <20171018231730.42754-1-shakeelb@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171018231730.42754-1-shakeelb@google.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 18, 2017 at 04:17:30PM -0700, Shakeel Butt wrote: > Recently we have observed high latency in mlock() in our generic > library and noticed that users have started using tmpfs files even > without swap and the latency was due to expensive remote LRU cache > draining. Hm. Isn't the point of mlock() to pay price upfront and make execution smoother after this? With this you shift latency onto reclaim (and future memory allocation). I'm not sure if it's a win. -- Kirill A. Shutemov