From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 38436CA9EA0 for ; Fri, 25 Oct 2019 13:57:53 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 076A522467 for ; Fri, 25 Oct 2019 13:57:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 076A522467 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id A690B6B0006; Fri, 25 Oct 2019 09:57:52 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 9F2AD6B0007; Fri, 25 Oct 2019 09:57:52 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8E1E36B0008; Fri, 25 Oct 2019 09:57:52 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0143.hostedemail.com [216.40.44.143]) by kanga.kvack.org (Postfix) with ESMTP id 69C316B0006 for ; Fri, 25 Oct 2019 09:57:52 -0400 (EDT) Received: from smtpin05.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with SMTP id 1CB8F8249980 for ; Fri, 25 Oct 2019 13:57:52 +0000 (UTC) X-FDA: 76082460384.05.cave94_7edb4ff3de12f X-HE-Tag: cave94_7edb4ff3de12f X-Filterd-Recvd-Size: 3372 Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) by imf05.hostedemail.com (Postfix) with ESMTP for ; Fri, 25 Oct 2019 13:57:51 +0000 (UTC) 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 5A20DB8B0; Fri, 25 Oct 2019 13:57:50 +0000 (UTC) Date: Fri, 25 Oct 2019 15:57:49 +0200 From: Michal Hocko To: snazy@snazy.de Cc: Randy Dunlap , linux-kernel@vger.kernel.org, Linux MM , Andrew Morton , "Potyra, Stefan" Subject: Re: mlockall(MCL_CURRENT) blocking infinitely Message-ID: <20191025135749.GK17610@dhcp22.suse.cz> References: <20191025092143.GE658@dhcp22.suse.cz> <70393308155182714dcb7485fdd6025c1fa59421.camel@gmx.de> <20191025114633.GE17610@dhcp22.suse.cz> <20191025120505.GG17610@dhcp22.suse.cz> <20191025121104.GH17610@dhcp22.suse.cz> <20191025132700.GJ17610@dhcp22.suse.cz> <707b72c6dac76c534dcce60830fa300c44f53404.camel@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <707b72c6dac76c534dcce60830fa300c44f53404.camel@gmx.de> User-Agent: Mutt/1.10.1 (2018-07-13) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Fri 25-10-19 15:45:37, Robert Stupp wrote: > On Fri, 2019-10-25 at 15:27 +0200, Michal Hocko wrote: > > On Fri 25-10-19 15:10:39, Robert Stupp wrote: > > [...] > > > cat /proc/$(pidof test)/smaps > > > > Nothing really unusual that would jump at me except for > > > 7f8be90ed000-7f8be9265000 r-xp 00025000 103:02 > > > 44307431 /lib/x86_64-linux-gnu/libc-2.30.so > > > Size: 1504 kB > > > KernelPageSize: 4 kB > > > MMUPageSize: 4 kB > > > Rss: 832 kB > > > Pss: 5 kB > > > Shared_Clean: 832 kB > > > Shared_Dirty: 0 kB > > > Private_Clean: 0 kB > > > Private_Dirty: 0 kB > > > Referenced: 832 kB > > > Anonymous: 0 kB > > > LazyFree: 0 kB > > > AnonHugePages: 0 kB > > > ShmemPmdMapped: 0 kB > > > Shared_Hugetlb: 0 kB > > > Private_Hugetlb: 0 kB > > > Swap: 0 kB > > > SwapPss: 0 kB > > > Locked: 5 kB > > > > Huh, 5kB, is this really the case or some copy&paste error? > > How can we end up with !pagesize multiple here? Ohh, I haven't noticed pss and didn't realize that Locked is pss like as well. > > > > > THPeligible: 0 > > > VmFlags: rd ex mr mw me lo sd > > mlockall() seems to lock everything though, it just never returns. > > Pretty sure that it's not a copy&paste error. Got a couple more runs > that have an "odd size" - this time with 3kB... > All "Locked" values seem to be okay - except that one. And it's always > odd for the same one (the one with `Size: 1504 kB`). > It's not always odd (3 kB or 5 kB) though - sometimes it says 4 kB. > Seems it's a little breadcrumb? Please try to watch for stack of the syscall and see if there is any pattern. -- Michal Hocko SUSE Labs