From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BBB11C54E60 for ; Fri, 15 Mar 2024 03:32:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.linux.it; i=@lists.linux.it; q=dns/txt; s=picard; t=1710473537; h=to : date : message-id : in-reply-to : references : mime-version : subject : list-id : list-unsubscribe : list-archive : list-post : list-help : list-subscribe : from : reply-to : content-type : content-transfer-encoding : sender : from; bh=qTOBfHaB8tZQPqhHSMnI2mMhUOXRQWDfWifn6IWG3BU=; b=MZgyU2NYXVDP6DZqTmf3iW7kF+BpYdZx1Gk1kC5qXcp6aTJiv62L9q7B/dQJOFgn9sry0 ShwGoHU+Tr8aroRfmfnI63mlk90z7VMT/XoDKr/7dRX0gxxfWpH83jUkAkDOVXsVD+R9cU2 yD8ZCuWm82FNBmAiU4XbKNzhK6It5Zk= Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 21EB43D0A36 for ; Fri, 15 Mar 2024 04:32:17 +0100 (CET) Received: from in-3.smtp.seeweb.it (in-3.smtp.seeweb.it [217.194.8.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 1F2EC3CD745 for ; Fri, 15 Mar 2024 04:31:55 +0100 (CET) Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-3.smtp.seeweb.it (Postfix) with ESMTPS id 3131B1A004ED for ; Fri, 15 Mar 2024 04:31:55 +0100 (CET) Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2d47a92cfefso19218821fa.1 for ; Thu, 14 Mar 2024 20:31:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1710473514; x=1711078314; darn=lists.linux.it; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=LUXP4zscd3FQBaXMdHnDPH8eCtPviOyczz/pGS7yUG0=; b=Jdmr8CIqhGJILChCV1pX17VN1Cf1hedjg/EusBpHy24kF5mxlx2NTgXYW0zdIg7RMS SUjasuUdUKzeSPUpc5Bwwo/FD853NTp0AnegZEuRfZuNgZeZIyzZNcShdeAyFtT9T90u Aq7mpQofPsswMJ6pMbHtels69B4x1t7VjGXILfYKee9CQVdr05n6H1rD4efFstBkf9sc iCSJ6Hb/BSd3KDEPLm2ZP7qhDpa4mIlx+AYRKMxobE6lPqwTcSfO4ONHreyOqS39cuvW c2kleTeutjhBsqlsADoEzB0Y1HaQKLhrMc3lJEveVGkPmurU6ETCnATtsBsHZtKR5P0E +HDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710473514; x=1711078314; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LUXP4zscd3FQBaXMdHnDPH8eCtPviOyczz/pGS7yUG0=; b=jtUMkv6Nl8cxhRnd8+HIhOYwzshmzOROb1eyNNJ0SIFv581Q6eW7SnlLhgF+mXhXYy avdHEZo1qh4Fu71Zv5nFo0YHAvF7zcUs/sZsg0ATvo4fdnqS/OTFrZV2/HJZ+zFJNGh8 Zch87DoYgdN4d27PnYrKTZ+omDUgmjgY3L2/P8noSDpMeTpBAlzTFbLO3uK2rHLuuP22 JWeR2cJQ2dfvKF+VF6uinIpv3iC2sVL7jbAq9vCR1ttGlaTBMLQQ6GKBdx62Umr3IHqf EV6HTVKc3+v+hiQxPS9r8q3vkZji75Sfoh2jqpeYFNQWZHKUX7+JSoGpO5EXoeVxtaiC 6GEQ== X-Gm-Message-State: AOJu0YxPPEDqjYrzK2jZf2ZXk+e2mc2FNLKG9jMg4vY9/XrTMrE926dw k9rddIFgqSb0UmnK2YXrtW/rNF0zRwxf56nfXXMmmcS/+KrFLG0AfhbqYRodGgC967A8emV3kLg = X-Google-Smtp-Source: AGHT+IE1SpYytmfybpzB/RLhla3ZZ25zwsWoXMotGn6N6dMBi3YwZXcoorKgmIWbaHYxX6GagRdPGA== X-Received: by 2002:a2e:b051:0:b0:2d3:2a95:6f0b with SMTP id d17-20020a2eb051000000b002d32a956f0bmr966980ljl.12.1710473513602; Thu, 14 Mar 2024 20:31:53 -0700 (PDT) Received: from localhost ([223.72.60.77]) by smtp.gmail.com with ESMTPSA id u7-20020a170902b28700b001dbcfb23d6csm2547613plr.267.2024.03.14.20.31.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 20:31:53 -0700 (PDT) To: ltp@lists.linux.it Date: Thu, 14 Mar 2024 23:31:39 -0400 Message-Id: <20240315033139.20557-1-wegao@suse.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240308023312.25449-1-wegao@suse.com> References: <20240308023312.25449-1-wegao@suse.com> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 1.0.3 at in-3.smtp.seeweb.it X-Virus-Status: Clean Subject: [LTP] [PATCH v2] memcontrol03: Using clean page cache to avoid dependency on IO rate X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Wei Gao via ltp Reply-To: Wei Gao Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-bounces+ltp=archiver.kernel.org@lists.linux.it Sender: "ltp" Bad IO situation(storage bandwidth ~10MB/sec) will lead background writeback has uncertain progress for dirty page. So system can not reclaim enough memory for new process and finally lead a unexpected OOM. memcontrol03.c:218: TPASS: Expect: (A/B/E memory.current=0) ~= 0 memcontrol03.c:116: TPASS: Child 1918 killed by OOM memcontrol03.c:224: TPASS: Expect: (A/B memory.current=52588544) ~= 52428800 memcontrol03.c:129: TFAIL: Expected child 1944 to exit(0), but instead killed by SIGKILL Signed-off-by: Wei Gao --- testcases/kernel/controllers/memcg/memcontrol03.c | 1 + 1 file changed, 1 insertion(+) diff --git a/testcases/kernel/controllers/memcg/memcontrol03.c b/testcases/kernel/controllers/memcg/memcontrol03.c index 9c6c808e0..e2fc85cc8 100644 --- a/testcases/kernel/controllers/memcg/memcontrol03.c +++ b/testcases/kernel/controllers/memcg/memcontrol03.c @@ -144,6 +144,7 @@ static void alloc_pagecache_in_child(const struct tst_cg_group *const cg, tst_res(TINFO, "Child %d in %s: Allocating pagecache: %"PRIdPTR, getpid(), tst_cg_group_name(cg), size); alloc_pagecache(fd, size); + SAFE_FSYNC(fd); TST_CHECKPOINT_WAKE(CHILD_IDLE); TST_CHECKPOINT_WAIT(TEST_DONE); -- 2.35.3 -- Mailing list info: https://lists.linux.it/listinfo/ltp