Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp548622ybv; Wed, 5 Feb 2020 10:05:04 -0800 (PST) X-Google-Smtp-Source: APXvYqw66l1EcFSOL5KcO7SyufIbs6zm2WhxAdyNXo84VDzAC9Gwzbe+zvLPbmde8QJ2w16atii3 X-Received: by 2002:a9d:6045:: with SMTP id v5mr25755215otj.252.1580925904640; Wed, 05 Feb 2020 10:05:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580925904; cv=none; d=google.com; s=arc-20160816; b=c9xCEpZ/Qs6AI1CG3L4gjDhY3+P7tYsqi6clWBrRhJLNxw1MmLSwbqmlbMxwEIF+05 H9S16YGI1GppV27RNoTV2dVc0tfH9+uGAN8q2w9LAIiyz84MitgACHd9XNJ+DVFsgvxu dAalhW/SoDn1O6sFj0SvnOkk9qpnIJdXR/49Qlf1IhVsPJ3fqHDENe6+kUQl2p4ry9b/ JfqVR+w4rx4F9K3OJnBaurv6DQShfAxj6qHkVell/vrX5YkT3yfYo/JpcwxUWth9gzQC imqWIZt5ePT3TFQd6Y2MWeW2fv1EcaYZRwI1T4CVZNOt8F75DCzL6JEJi1nJz31GhWoY 0SMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=I4JPeEjt7Um0jnncW2xGqU+AjtbYUDQIukn/RWGYtPE=; b=v00Zhnzc6viu5ccUiGOnqm6XoAHfquC3lGhRu90RLlRplaOWWxfDSZ2sl90DzjyoQf KzYH8R2Y8RfIAZWqSK/OOVJ4sO+OQmGsxz4MfZLHpyqAnrDFawoWkLsYJV2KRxSgW+hB G9owR6NssmylqXJPnfsejUEBMRGCO73A4eLNZSE+8yYRWbIpjYDzcLiGm2uJEU1iqOpk TyX+WMFJUp7WSAV6tn/spHxiZHqAnsGgZ2/lUuCvSYDVyGoPBDGqCTtbB0Ajvuboaou5 Sq1LFuGa12zA9T/Rz+EHMw4I96Jbn7ghEQGuIFvB6d30wr8WzscDqKfjTTDX/k+LLuYX CHIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=isUzJGTJ; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w7si442863oie.196.2020.02.05.10.04.51; Wed, 05 Feb 2020 10:05:04 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=isUzJGTJ; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727165AbgBESDw (ORCPT + 99 others); Wed, 5 Feb 2020 13:03:52 -0500 Received: from mail-ot1-f67.google.com ([209.85.210.67]:35605 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726957AbgBESDw (ORCPT ); Wed, 5 Feb 2020 13:03:52 -0500 Received: by mail-ot1-f67.google.com with SMTP id r16so2812346otd.2 for ; Wed, 05 Feb 2020 10:03:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=I4JPeEjt7Um0jnncW2xGqU+AjtbYUDQIukn/RWGYtPE=; b=isUzJGTJ7f76WNj3ErRloIg+GCY6ppfYFibDbF7cYNcvcP7bRHDvBg3vVrVP41nXLs PD07PYxEOZQqCqG5IRE3GMbWwxGcKU2rsq68DZFR+ZvP1u/m722XWWDvErZR8seAUPJF lJmXNrqQKx1WThrxpU0zdZL9f3fX+c3NgvQ4MzjTE+A0k3mY8hGMgUZlOpIlYwIx9S5m axn1qNLQiFWRnKUgyVGwi1JRtg65lw+dXxeoT8i0E4wMdPHM/G6wLJZZno+wp2aYotgQ VdIXRU1IW2haNgXyxDNJLYTdTXdiBOsc/mHm/TjJWbphWVF8x+egXGz5JFiSyCeALgTl /q6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=I4JPeEjt7Um0jnncW2xGqU+AjtbYUDQIukn/RWGYtPE=; b=cOms61WjRugZQ6ASOvAIMRFrLOsSmh6GkLn4EhrEdG0fcqFzUuEaie9FQs9l/9CQT/ sgGfcOTOscR0+bgunl5wdBJACpyCNCmRD4hflV7ZjmmLu/JLykX8hGbiHM5qa5ybH6Fd ywxLawY8CO0hKf8M4dYwPxTEc6eacBxtbD/kr2BvmNi9GVGXWqTHz7NIcPl5aL6iu5E9 glPoM+K+uiKvTkPFJQuEfp7UXkvmo7uKU64LhCTnpgTyIKoFgn0PvTvcQXukRBHGsmaR K6eiFR4cD9DbeV/l6mrWbua+Ml0HsAom4ldp3/sEE6npV1fa8Y/c0te7gEABapDdxdoa BngQ== X-Gm-Message-State: APjAAAUaPlERXuSFWzgssKDiNTD7GFAAQJKq+jIRFCmUnXPdXtCc8zDc a1AqhbDPqwJbcReJaANXjkqfqb6/KSRsxmoN3fu4rw== X-Received: by 2002:a9d:2028:: with SMTP id n37mr28112037ota.127.1580925831217; Wed, 05 Feb 2020 10:03:51 -0800 (PST) MIME-Version: 1.0 References: <20200203232248.104733-1-almasrymina@google.com> <20200203232248.104733-8-almasrymina@google.com> <0fa5d77c-d115-1e30-cb17-d6a48c916922@linux.ibm.com> In-Reply-To: From: Mina Almasry Date: Wed, 5 Feb 2020 10:03:40 -0800 Message-ID: Subject: Re: [PATCH v11 8/9] hugetlb_cgroup: Add hugetlb_cgroup reservation tests To: Sandipan Das Cc: Mike Kravetz , shuah , David Rientjes , Shakeel Butt , Greg Thelen , Andrew Morton , open list , linux-mm@kvack.org, linux-kselftest@vger.kernel.org, cgroups@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 5, 2020 at 4:42 AM Sandipan Das wrote: > > Hi, > > On 05/02/20 4:03 am, Mina Almasry wrote: > > On Tue, Feb 4, 2020 at 12:36 PM Mina Almasry wrote: > >> > >> So the problem in this log seems to be that this log line is missing: > >> echo Waiting for hugetlb memory to reach size $size. > >> > >> The way the test works is that it starts a process that writes the > >> hugetlb memory, then it *should* wait until the memory is written, > >> then it should record the cgroup accounting and kill the process. It > >> seems from your log that the wait doesn't happen, so the test > >> continues before the background process has had time to write the > >> memory properly. Essentially wait_for_hugetlb_memory_to_get_written() > >> never gets called in your log. > >> > >> Can you try this additional attached diff on top of your changes? I > >> attached the diff and pasted the same here, hopefully one works for > >> you: > >> ... > > > > I got my hands on a machine with 16MB default hugepage size and > > charge_reserved_hugetlb.sh passes now after my changes. Please let me > > know if you still run into issues. > > > > With your updates, the tests are passing. Ran the tests on a ppc64 system > that uses radix MMU (2MB hugepages) and everything passed there as well. > Thanks, please consider reviewing the next iteration of the patch then. > - Sandipan >