Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2752210pxa; Tue, 25 Aug 2020 02:10:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8GI1Hg8np/XEwNGesfnLEXr8uKyDd37n42k2K+8UOJ4X5imsyAVdkIzSvB75nqLqQDyXk X-Received: by 2002:a05:6402:2216:: with SMTP id cq22mr9099696edb.294.1598346608488; Tue, 25 Aug 2020 02:10:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598346608; cv=none; d=google.com; s=arc-20160816; b=TZm97cqWwtj2fzIb/kZFc5kxSG44g+9/E2KyAudt/g+IuQ03AcyNaGZfIo6kL3EnNb EWeYlVo1og/dr/s6Fsx+d/KjUxmuukBmrBg9Z1w6hS9nz87z0+dkMlxgrj8LgsmmHWMb B/H8rPggB+3jQ3r5xaIffFcToiFx2m+CPWwmBLfGZ0nXOOguthEoYxsAPhkn4gz1eqZI Tsea0Y6Jg0Hvgg6mYzc5EirruN3Ft6xT0j6VxZ3zcJW2M0BrHQxzaOuA2+B1YU7Hj+Vc phZ9kMyEL8cM137A+I/tvpydSIAuiwnFWaMPVZ9wxxXFZppjFWW+OCSHALMfPR83+h0e LVtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=nVoeo2/0pLIKitxUdBOJEYAFc2AvJ6o9OLfe8zDU2TA=; b=QZG+xmCdbM/YXjPZSb35rzR0TZQzbuz6IGr2jNmOgnr7sLHf3TdAtUTebvyYwRqTfz 7zSBn91xanCMTIYpVYFxvvvbDOqMQRIdfyfdmQE08N0RqR89ks1wvR5rKGg1evZOnvhZ uN0AEhsh2MnqJmuALl4Unv104Q0CUybGVV77lSjq2ClaCB74MumogSuBXMTi1gJRHTgK rblI1pNrmefMTn0w8L006dBxRSOngLLpZHWzDSe85nHcYD59KBbMs4o+3OKTbotkJJEI j6TGbIpe0nnHILOTxwNn9s8TyAcb6pNTfZ7W+6afhCTdV9l6OIcikixw8tOA61Pdl0Uj RvFQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u5si3840811edy.168.2020.08.25.02.09.45; Tue, 25 Aug 2020 02:10:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728761AbgHYIyj (ORCPT + 99 others); Tue, 25 Aug 2020 04:54:39 -0400 Received: from out4436.biz.mail.alibaba.com ([47.88.44.36]:45345 "EHLO out4436.biz.mail.alibaba.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725916AbgHYIyj (ORCPT ); Tue, 25 Aug 2020 04:54:39 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R101e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01f04455;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=21;SR=0;TI=SMTPD_---0U6oygkt_1598345661; Received: from IT-FVFX43SYHV2H.local(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0U6oygkt_1598345661) by smtp.aliyun-inc.com(127.0.0.1); Tue, 25 Aug 2020 16:54:24 +0800 Subject: Re: [PATCH v18 00/32] per memcg lru_lock To: Daniel Jordan , Hugh Dickins Cc: Andrew Morton , mgorman@techsingularity.net, tj@kernel.org, khlebnikov@yandex-team.ru, willy@infradead.org, hannes@cmpxchg.org, lkp@intel.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, shakeelb@google.com, iamjoonsoo.kim@lge.com, richard.weiyang@gmail.com, kirill@shutemov.name, alexander.duyck@gmail.com, rong.a.chen@intel.com, mhocko@suse.com, vdavydov.dev@gmail.com, shy828301@gmail.com References: <1598273705-69124-1-git-send-email-alex.shi@linux.alibaba.com> <20200824114204.cc796ca182db95809dd70a47@linux-foundation.org> <20200825015627.3c3pnwauqznnp3gc@ca-dmjordan1.us.oracle.com> From: Alex Shi Message-ID: <4cc9f54a-9eda-9966-df9a-a00bc9e88f4c@linux.alibaba.com> Date: Tue, 25 Aug 2020 16:52:54 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200825015627.3c3pnwauqznnp3gc@ca-dmjordan1.us.oracle.com> Content-Type: text/plain; charset=gbk Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ?? 2020/8/25 ????9:56, Daniel Jordan ะด??: > On Mon, Aug 24, 2020 at 01:24:20PM -0700, Hugh Dickins wrote: >> On Mon, 24 Aug 2020, Andrew Morton wrote: >>> On Mon, 24 Aug 2020 20:54:33 +0800 Alex Shi wrote: >> Andrew demurred on version 17 for lack of review. Alexander Duyck has >> been doing a lot on that front since then. I have intended to do so, >> but it's a mirage that moves away from me as I move towards it: I have > > Same, I haven't been able to keep up with the versions or the recent review > feedback. I got through about half of v17 last week and hope to have more time > for the rest this week and beyond. > >>>> Following Daniel Jordan's suggestion, I have run 208 'dd' with on 104 >>>> containers on a 2s * 26cores * HT box with a modefied case: > > Alex, do you have a pointer to the modified readtwice case? > Hi Daniel, my readtwice modification like below. diff --git a/case-lru-file-readtwice b/case-lru-file-readtwice index 85533b248634..57cb97d121ae 100755 --- a/case-lru-file-readtwice +++ b/case-lru-file-readtwice @@ -15,23 +15,30 @@ . ./hw_vars -for i in `seq 1 $nr_task` -do - create_sparse_file $SPARSE_FILE-$i $((ROTATE_BYTES / nr_task)) - timeout --foreground -s INT ${runtime:-600} dd bs=4k if=$SPARSE_FILE-$i of=/dev/null > $TMPFS_MNT/dd-output-1-$i 2>&1 & - timeout --foreground -s INT ${runtime:-600} dd bs=4k if=$SPARSE_FILE-$i of=/dev/null > $TMPFS_MNT/dd-output-2-$i 2>&1 & -done +OUT_DIR=$(hostname)-${nr_task}c-$(((mem + (1<<29))>>30))g +TEST_CASES=${@:-$(echo case-*)} + +echo $((1<<30)) > /proc/sys/vm/max_map_count +echo $((1<<20)) > /proc/sys/kernel/threads-max +echo 1 > /proc/sys/vm/overcommit_memory +#echo 3 > /proc/sys/vm/drop_caches + + +i=1 + +if [ "$1" == "m" ];then + mount_tmpfs + create_sparse_root + create_sparse_file $SPARSE_FILE-$i $((ROTATE_BYTES)) + exit +fi + + +if [ "$1" == "r" ];then + (timeout --foreground -s INT ${runtime:-300} dd bs=4k if=$SPARSE_FILE-$i of=/dev/null > $TMPFS_MNT/dd-output-1-$i 2>&1)& + (timeout --foreground -s INT ${runtime:-300} dd bs=4k if=$SPARSE_FILE-$i of=/dev/null > $TMPFS_MNT/dd-output-2-$i 2>&1)& +fi wait sleep 1 -for file in $TMPFS_MNT/dd-output-* -do - [ -s "$file" ] || { - echo "dd output file empty: $file" >&2 - } - cat $file - rm $file -done - -rm `seq -f $SPARSE_FILE-%g 1 $nr_task` diff --git a/hw_vars b/hw_vars index 8731cefb9f57..ceeaa9f17c0b 100755 --- a/hw_vars +++ b/hw_vars @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/sh -ex if [ -n "$runtime" ]; then USEMEM="$CMD ./usemem --runtime $runtime" @@ -43,7 +43,7 @@ create_loop_devices() modprobe loop 2>/dev/null [ -e "/dev/loop0" ] || modprobe loop 2>/dev/null - for i in $(seq 0 8) + for i in $(seq 0 104) do [ -e "/dev/loop$i" ] && continue mknod /dev/loop$i b 7 $i