Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5831010ybv; Wed, 12 Feb 2020 00:52:20 -0800 (PST) X-Google-Smtp-Source: APXvYqwh//mQ6nt7M+h/1ObZBkzF4sB6QVnXNEN0UmpwJzQL6W3nPBsezpgZG+Fxrnm6/FgAfRsF X-Received: by 2002:a9d:784b:: with SMTP id c11mr8039903otm.246.1581497540867; Wed, 12 Feb 2020 00:52:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581497540; cv=none; d=google.com; s=arc-20160816; b=UHvxb76pLEbBgExwLjUyoxPYiQ6Elozqc5PDvjwZy97G53zo1gUR7d1Yx2g+ofX6c1 qJPCk96BZTN31UpI3z0P+Qh5AIx/C8IlMTWTLMjnvB8iiuRUGm44lIE3Em90Ef6nEfKx ypSbx4l7JOO9s0/hmYCNeSToEqonAVYeHql9aqGi3mEbOxEb241sYE+bmqh4QvLNYFFB MyI/9F6vgc6Jq9bGmVMl8oJf5m5YVXU+viToY6u5+1Ih3tENPjBP1RNFv75znKDqeh8H vpU1PsFr3sFYRefcoT0EL7XpCS1wLQpoX3cQ7OelNvJxM+LmmPjlMqC/S/iGCpQklo8W NzrA== 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=tk+0bM8cd5ZIYqVYD9PAPacc4Q7l0P6OiL1TQt3bBTg=; b=ga7/98tGmSTwvqzn0ZMEqgHtuc/WyEBsbp69U3qo5YDsMqPxR/PADv/7+Kxf3dsDr/ 2tMihAa0xGNWxzoMRxzfTZO2PRETnL4SK4tMc45tBzedpzqrV4BRdBFjP/burQDGVzb1 BdbmK2y1dANDEHhy7B1JACiheX7YNB+MkpCOuZGGaZeEG1T8sWAcGwvERaF/iA9P23cC jPzG9Ric5nubZauFV14w0QsGlSO+b0x7jxsNUNXYYUkXmh2LEgjIpQaG1DWu3zUAzgCq 9O2B1TwORr0PaFpkCat6bOlKf4akqI4rFnTXtBjmpmJ8HTgYjikNt2oX3jNfN0DfeRdZ i1gg== 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 y22si3229151oti.269.2020.02.12.00.52.08; Wed, 12 Feb 2020 00:52:20 -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 S1728645AbgBLIu6 (ORCPT + 99 others); Wed, 12 Feb 2020 03:50:58 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:32426 "EHLO mx0b-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728538AbgBLIu6 (ORCPT ); Wed, 12 Feb 2020 03:50:58 -0500 Received: from pps.filterd (m0127361.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 01C8oRd4184482 for ; Wed, 12 Feb 2020 03:50:57 -0500 Received: from e06smtp05.uk.ibm.com (e06smtp05.uk.ibm.com [195.75.94.101]) by mx0a-001b2d01.pphosted.com with ESMTP id 2y1ucm6khj-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 12 Feb 2020 03:50:56 -0500 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 12 Feb 2020 08:50:49 -0000 Received: from b06avi18626390.portsmouth.uk.ibm.com (9.149.26.192) 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) Wed, 12 Feb 2020 08:50:45 -0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06avi18626390.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 01C8noiP50463198 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 12 Feb 2020 08:49:50 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 380DFAE057; Wed, 12 Feb 2020 08:50:44 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 60A42AE045; Wed, 12 Feb 2020 08:50:42 +0000 (GMT) Received: from [9.124.35.38] (unknown [9.124.35.38]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 12 Feb 2020 08:50:42 +0000 (GMT) Subject: Re: [PATCH v12 8/9] hugetlb_cgroup: Add hugetlb_cgroup reservation tests To: Mina Almasry , mike.kravetz@oracle.com Cc: shuah@kernel.org, rientjes@google.com, shakeelb@google.com, 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 References: <20200211213128.73302-1-almasrymina@google.com> <20200211213128.73302-8-almasrymina@google.com> From: Sandipan Das Date: Wed, 12 Feb 2020 14:20:41 +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: <20200211213128.73302-8-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: 20021208-0020-0000-0000-000003A965B0 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 20021208-0021-0000-0000-000022014956 Message-Id: <37a49c35-567f-1663-33cd-3dac150020a0@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-02-12_03:2020-02-11,2020-02-12 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 bulkscore=0 phishscore=0 impostorscore=0 adultscore=0 lowpriorityscore=0 mlxscore=0 mlxlogscore=999 priorityscore=1501 suspectscore=0 spamscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002120070 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/02/20 3:01 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 > Cc: sandipan@linux.ibm.com > > > --- > > Changes in v12: > - Fixed tests on machines with non-2MB default hugepage size. > Changes in v11: > - Modify test to not assume 2MB hugepage size. > - Updated resv.* to rsvd.* > Changes in v10: > - Updated tests to resv.* name changes. > Changes in v9: > - Added tests for hugetlb reparenting. > - Make tests explicitly support cgroup v1 and v2 via script argument. > Changes in v6: > - Updates tests for cgroups-v2 and NORESERVE allocations. > For powerpc64, Tested-by: Sandipan Das