Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp412325imu; Fri, 11 Jan 2019 02:38:38 -0800 (PST) X-Google-Smtp-Source: ALg8bN61ZodPt83+jlFPcHhw0GExgBzA8Rxo65WSfOaKp8LG7QKEhq4tfI0AkN1IQa2DDWr4ktpx X-Received: by 2002:a63:bc02:: with SMTP id q2mr12960960pge.116.1547203118587; Fri, 11 Jan 2019 02:38:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547203118; cv=none; d=google.com; s=arc-20160816; b=l6Ik1Unt5CrUThn7UucpDPlZvOe2ggtHj7XD4zgB8Td8ucTBSt9k0Ks7sUYlVW1D+e RFgl86wUGsNdY7gLeKgvGPYFuVTLewR+gl7w1F+Ew/rZhZzjKPJzeOJOeatix3ekSje9 IeUyo0OxLqQSiFxG7l50R08O/LtfTWT8nR6+hZWXJEDm1+rJOQpjoU7Ycda3DK1tHvNe TqgpF1gUXVpKQK3PT1pt5CelNeIvFPG+wDIWN51zdtyMUA9YZQIhuJlCobPFnj2Irh4f LnK+F6FW/4lAFycYZzJmO/7zygZuraZlS/anH1U/2CSI8wT+MeYrrHsWxs1+Vk9RKZZN bYiw== 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=Ran2Tn+WYwgFy+GtFJyFcZV6eUa7NG8NL2k0jnbBh1A=; b=dO/Errbj9ilz1nJZ4IiRoMqLHUCcAF83mx6kqDqc0x3ZEs1PTGQnHp0gDOL8WMo2+q VCWeRwBPLzcpmD+LzttYzrLmy/Lx2GMIrguA/QqYu0PvxPt/JGWt9j52yKpJg+Jaujhp UfXTiHxOwBKdWlSOPjF7d1kd59j1Wy11aw7TNaCkv+9z/lDcoTpVA0Zt5znfUIPE16IW 6W9Q9gQ6oQOsE1wiLdrZdGpCCvOa0wkg79ddbknDq5fKh3k9RNk3414PendRrB2RArZY fKLx1oCH03NXA09ufdnkKe+YVj1hQPcmp7i4jVKGVT+dyb+FtT7+CBhgqUfBTYg+Bc7R I33g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="HGj/rnID"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u9si73382309pge.48.2019.01.11.02.38.07; Fri, 11 Jan 2019 02:38:38 -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=@linux-foundation.org header.s=google header.b="HGj/rnID"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729691AbfAKHLo (ORCPT + 99 others); Fri, 11 Jan 2019 02:11:44 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:42736 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725807AbfAKHLn (ORCPT ); Fri, 11 Jan 2019 02:11:43 -0500 Received: by mail-lj1-f195.google.com with SMTP id l15-v6so11980477lja.9 for ; Thu, 10 Jan 2019 23:11:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Ran2Tn+WYwgFy+GtFJyFcZV6eUa7NG8NL2k0jnbBh1A=; b=HGj/rnIDA7w/CWKwOeurlFEaqKK1al46Dss9ncxDgNiAUDZIPiSfmNpTdB8HWGfDQ4 kODe24uzyisA3eqzkKr6meSOn6eXHpZ7y8yrZhOmS/w/6HQBmt5S8qPz140Wj61cp28G jSiHMmS3IietdkxIyexQ13K9ImtqvcYArprbg= 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=Ran2Tn+WYwgFy+GtFJyFcZV6eUa7NG8NL2k0jnbBh1A=; b=r16mhnlOs6uHNwuTNQ522qf/yQsTt9xXarRIyRulQ2t8g1hCYEhFBcxxG2czpFJou2 +t2bc5kDm22oHVyU28GstXdYB9QBuGM6oAd0tx6HgV0hPi/4e6rVDO5AqkZJeby7tEww H/l0gU97Ju5OWbnTSxAi2OU38qW9C3an5z2dHlVmGZQD62O4uVP381NQ+bQaQkujZfTx R+erNDRJFNVpfF/0QBD/3Fs7Jqq9voCwzaGdmvX73iLVZG3izn/UHFNb+R8JsBAGG1/e G+sSg+mzHIS971E/9vI3tVJCyZyJkHQaEd74ZKxfT905VqS56Tq6ZFPNGmNjigb3vYmf p4ZA== X-Gm-Message-State: AJcUukcEzWWRquTJHIfvni9R6fsGnIIPTMkYTK5NCNirMrViyDIjvqZQ a9ImVhHdgSxuywSzEfkHIwPh2svCe/w= X-Received: by 2002:a2e:8643:: with SMTP id i3-v6mr6777782ljj.43.1547190701276; Thu, 10 Jan 2019 23:11:41 -0800 (PST) Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com. [209.85.167.44]) by smtp.gmail.com with ESMTPSA id c22sm14496051lfd.88.2019.01.10.23.11.40 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Jan 2019 23:11:40 -0800 (PST) Received: by mail-lf1-f44.google.com with SMTP id c16so10081537lfj.8 for ; Thu, 10 Jan 2019 23:11:40 -0800 (PST) X-Received: by 2002:a19:982:: with SMTP id 124mr7044684lfj.138.1547190699923; Thu, 10 Jan 2019 23:11:39 -0800 (PST) MIME-Version: 1.0 References: <20190109022430.GE27534@dastard> <20190109043906.GF27534@dastard> <20190110004424.GH27534@dastard> <20190110070355.GJ27534@dastard> <20190110122442.GA21216@nautica> <20190111045750.GA27333@nautica> In-Reply-To: <20190111045750.GA27333@nautica> From: Linus Torvalds Date: Thu, 10 Jan 2019 23:11:23 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] mm/mincore: allow for making sys_mincore() privileged To: Dominique Martinet Cc: Dave Chinner , Jiri Kosina , Matthew Wilcox , Jann Horn , Andrew Morton , Greg KH , Peter Zijlstra , Michal Hocko , Linux-MM , kernel list , Linux API 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 Thu, Jan 10, 2019 at 8:58 PM Dominique Martinet wrote: > > I get on average over a few queries approximately a real time of 350ms, > 230ms and 220ms immediately after drop cache and service restart, and > 150ms, 60ms and 60ms after a prefetch (hand-wavy average over 3 runs, I > didn't have the patience to do proper testing). > (In both cases, user/sys are less than 10ms; I don't see much difference > there) But those numbers aren't about the mincore() change. That's just from dropping caches. Now, what's the difference with the mincore change, and without? Is it actually measurable? Because that's all that matters: is the mincore change something you can even notice? Is it a big regression? The fact that things are slower when they are cold in the cache isn't the issue. The issue is whether the change to mincore semantics makes any difference to real loads. Linus