Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7568429rdb; Wed, 3 Jan 2024 23:57:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IF5SZsHKLJe4qbFtgIQe5uT2NiBnXgpZ05lI304yumM7VKHRanpJqn2cSOx8N0R58NcPT21 X-Received: by 2002:a05:6358:5245:b0:172:d67c:61ce with SMTP id c5-20020a056358524500b00172d67c61cemr179097rwa.9.1704355061857; Wed, 03 Jan 2024 23:57:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704355061; cv=none; d=google.com; s=arc-20160816; b=WF6ARvkNXlLaiI9avVXYwPKVzC1hau6qn/znxzqSFegnevyZ656Fdbvzk6kbQE4UgR NVqEOa7to71PXyDxL1kIVaOPozCJfEBAD/JmPS3PJxX4ylDqrgK9HW9p/AqBEFw363QY n7Gdh7zX3hQOIIJeNumyJR7N4Vve6N8Xs0Fin+BpxAYwztKnwUsnU8MMQtAdQB7iex14 4kguaAV+TIvl9yPlg88bM1M1C29r0ldUEAtYsSBg0KuaR66XN0FElfdGDmbAy4kdkqRm tzlNbDt1tLHoSNusO4B1Nhv/P/qrLgzhul0ks31hLG8NUcyXmc+wP3QS4pvN7ruREfeX g4sA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=BQZtCo3H6h9b3FM5QY391lvIOdqO2eyj0lGwNL8bJqA=; fh=u1aY8rpDT9x4SzckIhHCOIDWYncMsChZAd6zZjCYbe4=; b=PIChCQ4R7YKdCmPaIApF8So/zX5BXDYC92UgzTbTmfsy9pyjE50lQEeQ7WPJFdoJFe CNhSTg/CqZAv6ZCGwvJpYjyHSXMnHRgDtU/EZZr0RlBTOvSJEPnGbitqHVzFqkHWI1aK w9e3bXTDyTPw5TS4g54BDYUMW4uPACT5ks8NUE2Iw7ACxfbc1eXkvGklONZXx6qBHVr7 U06RHoO7Bn1RpYIvVowi7aNa6+rICGvJLTwozoz44xb6C0OjP+wHiFLlnCezGVGbt+Y1 r3YAj2tUiTOuRu9tD1X96JfCu8qIkM/1n6eHHrEFb5BNF1EyPQjj8qAPU8r0CpRNq8Uy 7Cig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=S95tPCHg; spf=pass (google.com: domain of linux-kernel+bounces-16342-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16342-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id c27-20020a630d1b000000b005c6b0557950si22671332pgl.76.2024.01.03.23.57.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 23:57:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16342-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=S95tPCHg; spf=pass (google.com: domain of linux-kernel+bounces-16342-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16342-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 3B27AB238FF for ; Thu, 4 Jan 2024 07:57:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 63FB2200B7; Thu, 4 Jan 2024 07:57:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="S95tPCHg" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 25C47200A0 for ; Thu, 4 Jan 2024 07:57:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-a271a28aeb4so21144366b.2 for ; Wed, 03 Jan 2024 23:57:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704355019; x=1704959819; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=BQZtCo3H6h9b3FM5QY391lvIOdqO2eyj0lGwNL8bJqA=; b=S95tPCHgJNnQ3TpvCOTbcNlaOpZQWXSFFLfmJp2Uiu7puvlHal7KxjiE4plrDPW7OR KR0Q3PWkB+vPttyBch1dw7haePMDJF6nz9umA/CjNK01BMXHHUI30DiJVr5B3Yi4et1p KCtjmnc5xQuv+citnFB32s75uyLqavl42X8geKlQfM8Zo9VTBes2DX9o+f2S5A9ZlxP+ 8WDoex/1Ychi6ak5CIff/mZr1phuaGKFItbqEs07/ZN57YG/0jRamLu7yTwf8eeThT/a h8hpbywwKzMAcAoy7QCWR/v7G5GxKmuKAPuu3XuBhnEgFimSONeaNC+pfVemt0ym+2HA y4Pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704355019; x=1704959819; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BQZtCo3H6h9b3FM5QY391lvIOdqO2eyj0lGwNL8bJqA=; b=Pn2kgGsrowjxEQ1E+Q8/ZwchwkxZfDdZ1X0BgdFxIeYBBXYNv5XbDoNAWfbq2mnjTU RQf4W4aAI5Xg9iAWs3ljMgPsH7c+CLbwSzkko69lY1UFbKslgcX1OPHSVjba658U7c/0 TjOMPi4HAc0TTmfiIKe2RtliGRJ1u3ddwzUqDPfIzcj/V3VNWlfakMwljvkeppLoyglf GbCAs9qzcsO6tpZhtRjRRDbbqS5r87Wz2wzvTbYp/D2G7ovC0rlJ7LSvHL9Cq2Q3iPMo dRFcYMka77OOGIWEe0cmTtPZgAePyUEjkPOa3cz0KlC8ifMCWMj7nxdqRPb/W9bcTIe/ atBQ== X-Gm-Message-State: AOJu0Yy9h4RYgbndXDAL5ounptviodDaf6j0GtQqPmxloiYnGuXGnTB4 q5zifU4uJ/AF4dFQBGlHZFgPr5YJdDkb82DXW+0= X-Received: by 2002:a17:906:c94e:b0:a26:85ed:78dc with SMTP id fw14-20020a170906c94e00b00a2685ed78dcmr109586ejb.133.1704355019018; Wed, 03 Jan 2024 23:56:59 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240102073351.1527503-1-alexs@kernel.org> In-Reply-To: From: Alex Shi Date: Thu, 4 Jan 2024 15:56:22 +0800 Message-ID: Subject: Re: [PATCH] sched/tracing: correct the task blocking state To: Valentin Schneider Cc: alexs@kernel.org, Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , linux-kernel@vger.kernel.org, curuwang@tencent.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Jan 3, 2024 at 9:56=E2=80=AFPM Valentin Schneider wrote: > > On 03/01/24 11:14, Alex Shi wrote: > > On Wed, Jan 3, 2024 at 12:16=E2=80=AFAM Valentin Schneider wrote: > >> > >> Why is that an issue? If those tasks didn't have to be > >> TASK_UNINTERRUPTIBLE (via TASK_IDLE), we'd make them TASK_INTERRUPTIBL= E and > >> they'd also inflate the 'sleeping' schedstat (rather than the 'blocked= '). > >> > >> What problem are you facing with those tasks being flagged as blocked = during > >> their wait? > >> > > > > Uh, Tencent cloud has some latency sensitive services, a blocked state > > means the service has > > some trouble, but with IDLE state involved, it's failed on this judgem= ent. > > and 2nd, if a service has abnormal, we want to check if it's hanging > > on io or sth else, but the top > > 3 D tasks are often queuework in our system, and even a task in > > blocked state we have no > > quick way to figure out if it's IDLE or BLOCKED. 2 different states > > will help us a lot. > > > > That's useful information - generally it's good to add the motivation for= a > patch in the changelog. Thanks a lot for coaching, I changed the commit log in the v2 patch: https://lore.kernel.org/lkml/20240103081042.1549189-1-alexs@kernel.org/ Btw, which way is usual prefered, send v2 patch in a separate thread or add '--in-reply-to' to follow this thread? Thanks Alex > > > Thanks! >