Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1616112ybe; Fri, 13 Sep 2019 21:14:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqwdpn3ts/N4SVI2lr8jWPKwbl4rMs2DlRv++9EZc+14PyXOdGf9An5ND3cOYVsisxFWiCER X-Received: by 2002:a17:906:c79a:: with SMTP id cw26mr1899020ejb.265.1568434490651; Fri, 13 Sep 2019 21:14:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568434490; cv=none; d=google.com; s=arc-20160816; b=X97aWgEn6yenjdzwjZ0rjHM7qz1+Qmtjm1AQnSnZKZVptANtSVo44rXwtVzL0qWDKL suTCLQIkwniHjSi5CV53KjPbhMLdNh8oXkDNSi8QIWjJ4/oaKy/LWYMmecuu3x+9vQ92 6iJeccfChiXlJgri/wIVNgurBoy2CwEEfGP8vhl0TCnRBkZYrKkbdws04cis/xgB1std sfgxm1wsxqHScoaQ7ooX+Dbw+FiUzlCw4rSykYhpb/RGU73+vUllRUf51Tlc4zAVVgvv bQp+BuyirF+00D2OgeW/tgo62iCeWXSOebC+W/gFMLtagGndMsng9+k7YlkSBxbd9jaq rUhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject; bh=vh9pb+brTp1NjziwNoZoKs2olhZ7Mq0HIX/61eM51mU=; b=xMj8jx3IoFkuzek9/zFCzeZqwNeKPkWJK+UTpheD3cmRu7v8eqIEBkYi09hmO5uGaR FhB/Z9At468e38axIMQx4eN9kNPnmYN0DKzZzTGHzFY7Di/mg7pUJjs6i2OHTLz4dvyR mtOXK4xtMRRunXNpcO6++cLFGu/JHbmn89ZFa731J8QuVL//7SAYMWOTTSEh1q3A/19O 05nmLQt52ajoJ/MAW6lm13gg6uzZAhkiT+Xx4RvO73+6rcCBlxoVPnhYbuMcc6hzWQzm UcSoMCA5PAWBOP3OPIWX6w901jah5PexI5XU1JFQTLpPvdbvM0Cx6SO048etZrqzOybC +d+A== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p18si17236258ejn.370.2019.09.13.21.14.27; Fri, 13 Sep 2019 21:14:50 -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; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389357AbfIMSXq (ORCPT + 99 others); Fri, 13 Sep 2019 14:23:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54844 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387802AbfIMSXq (ORCPT ); Fri, 13 Sep 2019 14:23:46 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 52ACE10C0515; Fri, 13 Sep 2019 18:23:46 +0000 (UTC) Received: from llong.remote.csb (ovpn-125-105.rdu2.redhat.com [10.10.125.105]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0C6FC5C1D4; Fri, 13 Sep 2019 18:23:44 +0000 (UTC) Subject: Re: [PATCH 5/5] hugetlbfs: Limit wait time when trying to share huge PMD To: Mike Kravetz , Peter Zijlstra , Ingo Molnar , Will Deacon , Alexander Viro Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, Davidlohr Bueso References: <20190911150537.19527-1-longman@redhat.com> <20190911150537.19527-6-longman@redhat.com> <87ac9e4f-9301-9eb7-e68b-a877e7cf0384@oracle.com> From: Waiman Long Organization: Red Hat Message-ID: <3d98ea00-ea0d-a9b1-9e1a-e78a731c20a5@redhat.com> Date: Fri, 13 Sep 2019 14:23:44 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <87ac9e4f-9301-9eb7-e68b-a877e7cf0384@oracle.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.65]); Fri, 13 Sep 2019 18:23:46 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/12/19 5:43 PM, Mike Kravetz wrote: > On 9/12/19 2:06 AM, Waiman Long wrote: >> If we can take the rwsem in read mode, that should solve the problem >> AFAICS. As I don't have a full understanding of the history of that >> code, I didn't try to do that in my patch. > Do you still have access to an environment that creates the long stalls? > If so, can you try the simple change of taking the semaphore in read mode > in huge_pmd_share. > That is what I am planning to do. I don't have an environment to reproduce the problem myself. I have to create a test kernel and ask the customer to try it out. Cheers, Longman