Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1029671ybe; Wed, 11 Sep 2019 08:19:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqxv9ZQSs6K64IRiuzMGSflCUEN1BTqN2e5NJv2qRXK2VwrBRPUEBJ/TaxRn+ry4i2mgh8Dh X-Received: by 2002:a50:e001:: with SMTP id e1mr37443163edl.177.1568215159742; Wed, 11 Sep 2019 08:19:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568215159; cv=none; d=google.com; s=arc-20160816; b=wn1Y3yN2OBRvyu0WnrFhQbbUe74++9A9ok/9ppdR6whvAlehSN7GdUo9ytiKi+rier 4ymAKAY7BXWO6vU+3/xRDNMu21Hm8VD86of2zNGhsor2+Jz+jJnvOI9z+TAygAT7Ogje GtaX0P5vIgjVgeBxiseiUC05QpQowY9IQqasw5UZ64aRaE/Qcm1e6aQmoPZmKTDsr3Ae cUXH+KglrIkctDk53s8L5viiH5aBw+czdTKjaiWwtyJFVUH3oUbZcOV5vXl3bcUIUXBv 75fsjg2M9WXq3bEb1yjfAkOD577TT1DXxIdHGs0qFtf4e6jSYBlpxllQeJY4bUfcisPF ofuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=9Ts7UUugH0BhHT6ILLki/cYvYfh0gbGfHUwu1u4OVw8=; b=JQc0uP4wTpJchhIFPzbOlIamQw3PKl0Yw/o/z0I9pbaswYlQbcV9rP11hNTYbQ18H4 E4F51WUeDR7hMi00D0+UYZF7nfo/yslhTyR5KslS6KgLgi55USdZQAi1zngI9WRpLQps 3iZ9K8VilHARMb/cHpySYyQWh39bNOeySBlKLj+tDd1p4WRcly1MSKleoRvdo0DwR3Xx u6rXptj9nG0cxD7FLxSP0JaZGKyoP3AReM//lkAyNiOegBeOJBb3X1YhA7STyHCHLZ5D WkWD1t9R51n0ksAulQ0mC9I5+uAik9rRtgKLTwk3glDLNywAHphfM7g0fF7Zi8eg0uWo K0oA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=eqkcSKVD; 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 d3si11021587eja.30.2019.09.11.08.18.55; Wed, 11 Sep 2019 08:19:19 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=eqkcSKVD; 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 S1728383AbfIKPPA (ORCPT + 99 others); Wed, 11 Sep 2019 11:15:00 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:33492 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728182AbfIKPPA (ORCPT ); Wed, 11 Sep 2019 11:15:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=9Ts7UUugH0BhHT6ILLki/cYvYfh0gbGfHUwu1u4OVw8=; b=eqkcSKVD5dOJFE9++guNrEOku ugiFibAd7qPBNs79ndiqk4OEMfpM6jqG9pkL4/PgcpCNl1VtuKFn9391adW0g8KjDRn/2DrF+1J6U Gr9Qok/kye4rT8b59JEpXjUD5TFaVMr1dMKnWFC1eFVqzm5ygXtuFoyp951ixiriwwS5gwhbBLUJi U94832VbTPNeOBMMpu72U5QpaeSWUmS1XVcFXhor3uG9GgdzzMslZ209al1WCJl3Y5KcH8iybTCOv TzToz2C27tIJC0cWry7yAwavYapdb8V1G9AK2EhVnWeXkTXCF7FjLQo30x4oe8pVDHIWBOhdbjt8s XWUFtI3tQ==; Received: from willy by bombadil.infradead.org with local (Exim 4.92.2 #3 (Red Hat Linux)) id 1i84KZ-0008Ht-S4; Wed, 11 Sep 2019 15:14:51 +0000 Date: Wed, 11 Sep 2019 08:14:51 -0700 From: Matthew Wilcox To: Waiman Long Cc: Peter Zijlstra , Ingo Molnar , Will Deacon , Alexander Viro , Mike Kravetz , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, Davidlohr Bueso Subject: Re: [PATCH 5/5] hugetlbfs: Limit wait time when trying to share huge PMD Message-ID: <20190911151451.GH29434@bombadil.infradead.org> References: <20190911150537.19527-1-longman@redhat.com> <20190911150537.19527-6-longman@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190911150537.19527-6-longman@redhat.com> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 11, 2019 at 04:05:37PM +0100, Waiman Long wrote: > When allocating a large amount of static hugepages (~500-1500GB) on a > system with large number of CPUs (4, 8 or even 16 sockets), performance > degradation (random multi-second delays) was observed when thousands > of processes are trying to fault in the data into the huge pages. The > likelihood of the delay increases with the number of sockets and hence > the CPUs a system has. This only happens in the initial setup phase > and will be gone after all the necessary data are faulted in. Can;t the application just specify MAP_POPULATE?