Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp466757ybl; Thu, 23 Jan 2020 01:59:40 -0800 (PST) X-Google-Smtp-Source: APXvYqzgaftVBV1otl+mgi5H/lR2H27iegZIF6SYwHUUy83UmUMSRwM7D/d7wfdkW9gfzzODIV3Q X-Received: by 2002:a9d:da2:: with SMTP id 31mr10279612ots.319.1579773580777; Thu, 23 Jan 2020 01:59:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579773580; cv=none; d=google.com; s=arc-20160816; b=jY40HxbkWVgFVh0/da3WQMgjs0mrRIzP06FfJsLn3RFVIhAc3QfJfPAjBpgQFPRSYu W2kQ2dWaY3ISdrxdJOqZ/Xs3a5sv4lTnumj70wOXkClP4bdfoGgRtDnBDKAO+AGkoY/S RjInV/rU6sm6pCZsvJLBnzUv34o2/nj/L5ocggsF3HSHyQM4jXx6JZdfOuEBluKkvrlP fQt88jx0zGJ1+xncJ6CXWu0teFgHnuIjfk2UhhzNFTixb+/zmamE+Jm3pgoTw4VxrvvO RMtyKnBTZp8jRtDuI454mbVk8oAwDCSPmDbpMfb+Qjc2TWveoOd8hWAK88xmT/n65daY o2gA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date:from :references:cc:to:subject; bh=cAq2/65wMHqgurbUKUDOa97U6AZ+pmHnRNtOSXnySQw=; b=Y6McFisK/iVq1X+Jw68gnOnbLmAM40cqFQpBDUW7/WaMxCmXOHfF1HDsNF0mjH3mNj Y+HhcgfyUiSWAtyQAn25KagFB5MzWUfq2vjUOKlnIqGWIZYnHEZbW1PJq9iLMvW3qSpi MCn5Pe5v1PgJZ7QVfZvAISTpTvyPq6QMijXq9KBZ6QNS+G5pZ/d/4Wdjy8tDEKssFx94 JAI3pSJf/shdsrPnmFYqfZzwAX8Q3Q1HD+gEm1myJZB7E4cGBp0p16tvZZF3cAJA2MKx XARSJHEfNqxKcTJ5l5yDKASILczIjXTYZGXEmqoKZNUY58uIOdeasnkGgewED7Eey9UA OFGw== 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h3si851807otq.203.2020.01.23.01.59.29; Thu, 23 Jan 2020 01:59:40 -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; 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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726729AbgAWJPs (ORCPT + 99 others); Thu, 23 Jan 2020 04:15:48 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:12836 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726194AbgAWJPq (ORCPT ); Thu, 23 Jan 2020 04:15:46 -0500 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 00N9Eqni040459 for ; Thu, 23 Jan 2020 04:15:46 -0500 Received: from e06smtp05.uk.ibm.com (e06smtp05.uk.ibm.com [195.75.94.101]) by mx0a-001b2d01.pphosted.com with ESMTP id 2xp9462quj-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 23 Jan 2020 04:15:45 -0500 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 23 Jan 2020 09:15:43 -0000 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp05.uk.ibm.com (192.168.101.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 23 Jan 2020 09:15:38 -0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 00N9FbuE41353368 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 23 Jan 2020 09:15:37 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 831D14C040; Thu, 23 Jan 2020 09:15:37 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 90CD54C04A; Thu, 23 Jan 2020 09:15:35 +0000 (GMT) Received: from [9.124.35.38] (unknown [9.124.35.38]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 23 Jan 2020 09:15:35 +0000 (GMT) Subject: Re: [PATCH v10 7/8] hugetlb_cgroup: Add hugetlb_cgroup reservation tests To: Mina Almasry Cc: mike.kravetz@oracle.com, rientjes@google.com, shakeelb@google.com, shuah@kernel.org, gthelen@google.com, akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, cgroups@vger.kernel.org, aneesh.kumar@linux.vnet.ibm.com References: <20200115012651.228058-1-almasrymina@google.com> <20200115012651.228058-7-almasrymina@google.com> From: Sandipan Das Date: Thu, 23 Jan 2020 14:45:34 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200115012651.228058-7-almasrymina@google.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 20012309-0020-0000-0000-000003A33EF7 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 20012309-0021-0000-0000-000021FAD787 Message-Id: <7ce6d59f-fd73-c529-2ad6-edda9937966d@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-01-23_01:2020-01-23,2020-01-22 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 adultscore=0 impostorscore=0 mlxscore=0 priorityscore=1501 bulkscore=0 lowpriorityscore=0 mlxlogscore=996 suspectscore=0 clxscore=1015 spamscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-2001230079 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 15/01/20 6:56 am, Mina Almasry wrote: > The tests use both shared and private mapped hugetlb memory, and > monitors the hugetlb usage counter as well as the hugetlb reservation > counter. They test different configurations such as hugetlb memory usage > via hugetlbfs, or MAP_HUGETLB, or shmget/shmat, and with and without > MAP_POPULATE. > > Also add test for hugetlb reservation reparenting, since this is > a subtle issue. > > Signed-off-by: Mina Almasry > For powerpc64, either 16MB/16GB or 2MB/1GB huge pages are supported depending on the MMU type (Hash or Radix). I was just running these tests on a powerpc64 system with Hash MMU and ran into problems because the tests assume that the hugepage size is always 2MB. Can you determine the huge page size at runtime? - Sandipan