Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1336009imm; Tue, 3 Jul 2018 09:21:16 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ+WMkXc1aj9e8C01e6KJkc25pCS7PB68uaVJVJn05qU9YNOczisprqbA9VYMluJgJ/lO/Y X-Received: by 2002:a17:902:201:: with SMTP id 1-v6mr31322543plc.310.1530634876091; Tue, 03 Jul 2018 09:21:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530634876; cv=none; d=google.com; s=arc-20160816; b=R0FGCbfM3bNg4BM1tYIWFv4xutgaAN+0bMpGYLTHaxSVeLwNloHtn/exOIyXAz4eBY H4xYG3cNaRyA/l5wEbU8P1sKH564ZZWWh8Gcs3qp8YLonYRLviEtdmvo8jjymEDSvCuo Mmp1X4rmZGMSPGGu3iUWkYVVNMBW+NlGaZGTsTtuP2TMI+/9N3/+5eGYQIIFNeNK3b/i jopubO6bldX/WDWRWgwebhuGbEOuli5PlFqR5P1no3dKpF6aeYBe9xWP+I8xY1pj1l9t X/55SVA7ZpRt7jri39BaJMpkWK4QoYtHOMT6ed99Pn0Z5jDfGh8NfuobwQI78O0ES1ec Jueg== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=bTGYgHsfAMfrLxkiCz8Z/5ru5MDag3LSI1vx3ToKAdM=; b=kB8wSfyau0oNQzeJRem3brbP5NBU2Zr+a8X0qPp2xkwA/Hb5xCfjSh4/6fRjIwJHMY tNTJs8Nw2INFDFLHbVyGNIeMaNMG46616DVhtn+o5htEmaXqawRTorPvx2+EItGzqVjC 6GiC44umADD3t4U506CIib5VkyJz+9o4/cABkWnW7j0kcGu8lFTiOKNMMbYLs/1we0lp 7IPjw9S5SV8Abj8qzIGJ1DtV93/mUY0HlTnotbmZ2D91aBfOF5gVvdVfzYFg3w9ClDDJ +/eoACArSjYdXn1/XbvbLny4viqztSJ6JpsidJx3dh+BhGC9/M1ZPPUdKQUJVk0QBejD vcbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=m5pVes8b; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b7-v6si1262335pgt.642.2018.07.03.09.20.59; Tue, 03 Jul 2018 09:21:16 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=m5pVes8b; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932942AbeGCQUG (ORCPT + 99 others); Tue, 3 Jul 2018 12:20:06 -0400 Received: from mail-it0-f65.google.com ([209.85.214.65]:50537 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753341AbeGCQUE (ORCPT ); Tue, 3 Jul 2018 12:20:04 -0400 Received: by mail-it0-f65.google.com with SMTP id u4-v6so3938410itg.0 for ; Tue, 03 Jul 2018 09:20:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=bTGYgHsfAMfrLxkiCz8Z/5ru5MDag3LSI1vx3ToKAdM=; b=m5pVes8bH9R/Cc0weRST3oII8olmVdQ7fiswGDx0d9batX1cL78XmaAPM6nE1maetR iGif/GBxa/Hd5RqY22CG795+VUIjHy3xsF8gueMLRRhtUAlSIfg1CKK0Xy6S8SCzdR5+ FFo1guQ5NI/rNC7fMQ9C9KG/uRwAEfXONfGYpblKc1x36MKwCVOuGXuFFh4i5PIpGqvH Gv+NM1bgzo4w4JsqTeMZFURQ9DD6XyYiYsL0zA1GWnqQF90uM48Vhn9NYRdBeO4t2pNR ZEgdNWIg2YqwniKx9HcWSorLurXRTBNylLyLUTD/IUs9Hl7ffSh3wgv5xFWA9qLWmxpR cymQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=bTGYgHsfAMfrLxkiCz8Z/5ru5MDag3LSI1vx3ToKAdM=; b=jCwljUNRZBmlP51c0/nY1hVRCIuVEfDmGBQeG4bRmPW5a16ohK7BCpFdKDPEaq/6KF zZrbvATrM3m5dzqWi0PQm7EVZqPJwOXVhvovocB+0NfHeGFfNFXRbZbIevIuxo+83Hw9 3MGsJwP7g8g0iXlrbWSjtj4Xz4nilmziDMs0nARBzrp5od4OZcUjsmsyROvzlQcR9TmL t91aLG1cK5hrTXmVo5xpXoKaqd+q5WbfKiqECSt2twumMeHoPoCTif4SxnbNXEiYgCdj BcCdvpz+gfDSv6ULfYFwFvEbxTzffBc/bbyI4tUAUKltNrUfut0zViR78HhI9FK3Ra30 Kp3w== X-Gm-Message-State: APt69E1eyqiuOymvj6HYN3bpLF2u2McR7snz/fmo3AxcjnYMqe2b2Anf rUe/FC16dzods1dJ5cOVV/GWAVQOL4rMhOUYBNpfoA== X-Received: by 2002:a02:4442:: with SMTP id o63-v6mr25471489jaa.75.1530634803436; Tue, 03 Jul 2018 09:20:03 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4f:ba01:0:0:0:0:0 with HTTP; Tue, 3 Jul 2018 09:20:02 -0700 (PDT) In-Reply-To: References: <69eb77f7-c8cc-fdee-b44f-ad7e522b8467@gmail.com> From: Daniel Colascione Date: Tue, 3 Jul 2018 09:20:02 -0700 Message-ID: Subject: Re: [REGRESSION] "Locked" and "Pss" in /proc/*/smaps are the same To: Vlastimil Babka Cc: Thomas Lindroth , Andrew Morton , linux-api@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm 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 Tue, Jul 3, 2018 at 12:36 AM, Vlastimil Babka wrote: > +CC > > On 07/01/2018 08:31 PM, Thomas Lindroth wrote: >> While looking around in /proc on my v4.14.52 system I noticed that >> all processes got a lot of "Locked" memory in /proc/*/smaps. A lot >> more memory than a regular user can usually lock with mlock(). >> >> commit 493b0e9d945fa9dfe96be93ae41b4ca4b6fdb317 (v4.14-rc1) seems >> to have changed the behavior of "Locked". Thanks for fixing that. I submitted a patch [1] for this bug and some others a while ago, but the patch didn't make it into the tree because or wasn't split up correctly or something, and I had to do other work. [1] https://marc.info/?l=linux-mm&m=151927723128134&w=2