From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.218.175.110 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795918650; b=u/WoXSGX/UeFISWktkPLDvXFybnNTjo8jEV8iklXU29yrYfJctPl+AySLVX600rL0V4k YORQrRRYGsP1uNuRpJKG2hjnpB+3EOQ+C/wsRYKzxa4X4mAxPwi/Szx0uqvzjhvfbk9jt t5SHuGDwubZQal4svxGNddABXJNLsrv+J3UXSlerLGhYximG5NUJAKHy1rpFMIgXiNQUe Z3LGznSuM+65jPf6Y9odV3Rvy2RoMwDGcyXCMkZ9TMCeOWV9x1/KOmUM21TrAp2ycD5iM mw1GQck+xkp70aROaTb65mpMSStQqypmDlAtR5MDdzMxLacODYWOrrijpeRHFQ78Gvg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795918650; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:Message-ID:Date:MIME-Version:User-Agent: Cc:Subject:To:References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; bh=vb78fIGOsUVANwfuWqe/MJxjL0xrkoFaYMMTYrmpD/M=; b=mg/yeqKippEzMuzlIqlWijWKiexkoDaAz+3D5XnVsiyfItYEgUleb8+b7E0ZAW1BGJ+S hJcoE02tRCcnd+vlxALNNn+3dvdmSAkOaLwBwXrs0pOhtsAOboGBT0j3KN6O9C4B2yl5S 5rnoGZ7bZjGI5Bn8p+2Y+16vAdxv36tMIOU64YmSv+RXbjsoSjt9CmmI2RPTot0xVbIeB mwM8idh2svAEQcE6RliCgmdBlQle5Y8UNvZ0o3QuWWlZkwMol9xAdv0ASwPfd9Dfk973y sTYcDlZ+SNDUZoemta0ej9Ucv7nLFNjkdVIPmlEaBsMzl460PLQeTIj4Sz0eWoxVGCQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=qyq3pb4t; arc=none smtp.remote-ip=91.218.175.110 Received: from mta0.migadu.com (out-110.mta0.migadu.com [91.218.175.110]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4D718606A31C for ; Sun, 29 Nov 2026 02:17:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4D718606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=qyq3pb4t X-Envelope-To: linux-kselftest@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=RDBPuW3F6AMMeAqCBii9pvaWyZqSz9IIrQqguhfkiGc=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1795918647; v=1; x=1796523447; b=qyq3pb4tJS0E3R7vGhs7COldF0n4smbPkOIflVQrV11ciR9BO8oMoKdpYKZ4kZ+ur04iJCV5 QrCuqlhzPdBYhPAOzChOMmQ6dcOzlfo/AJo5Bavl55rNvcYUnScNcC3WbkD41UZAfiJVFBWeosG F5lhdE8314yas1M0SrMUROvU= X-Envelope-To: linux-kselftest@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id a90bc613bccfda0b; Sun, 29 Nov 2026 02:17:27 +0000 X-Mizu-Trace-ID: a90bc613bccfda0b X-Migadu-Flow: FLOW_OUT Message-ID: <82636485-87c2-4753-8060-e8fc01a0a663@linux.dev> Date: Sun, 29 Nov 2026 10:17:18 +0800 X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: josef@toxicopanda.com, axboe@kernel.dk, ast@kernel.org, cgroups@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, andrii@kernel.org, eddyz87@gmail.com, daniel@iogearbox.net, linux-kselftest@vger.kernel.org, cuitao@kylinos.cn, ameryhung@gmail.com, alexei.starovoitov@gmail.com, cui.tao@linux.dev Subject: Re: [RFC PATCH v14 0/4] blk-iocost: BPF struct_ops cost model To: tj@kernel.org References: <20261118131029.797007-1-cui.tao@linux.dev> From: Tao Cui In-Reply-To: <20261118131029.797007-1-cui.tao@linux.dev> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hello, Tejun, 在 2026/11/18 21:10, Tao Cui 写道: > This series lets a BPF program take over the cost model of one > device. The BPF model provides calc_cost() for charged IOs plus two > transfer coefficients for the completion-time sizing, io.cost.model > selects between the attached model and the builtin one, and enabling > and disabling the controller stays with io.cost.qos. > > The builtin model is a linear formula derived from a handful of device > parameters, and the right formula is device specific. A BPF model can > be adapted to the device and updated without rebuilding the kernel. > > The series is based on next-20261117. > > Changes since v13: > - p1: stop updating attached and attached_link under ioc->lock; > rq_qos_mutex already orders all their accessors (review from tj) > - p1: name the calc_cost flags enum iocost_calc_flags and rename > ioc_model()/model to ioc_bpf_model()/bpf_model so that the > builtin model isn't called a NULL model (review from tj) > - p1: document why iocost holds its own model reference, the > field locking and the merge flag semantics, and reword the > commit message to describe guarantees instead of code paths > (review from tj) > - p1: clear the autop stepping timestamps when a BPF model is > attached; without this, the timestamps from before the attach > survive until a model=linear switchback and can trigger an > immediate profile step on that stale pre-attach evidence > (report from sashiko) > - p1: align the BPF pricing scope with the builtin model: > dataless bios with no flush state and ops other than reads, > writes and zone appends cost nothing, completion-time sizing > prices reads, writes and zone appends, and a dead owning map no > longer reports -EBUSY (report from sashiko) > - p3: probe the iocost_ioc_tick tracepoint, unwind the private > mount namespace on setup failure, report fopen errors faithfully > and fix an inverted posix_memalign() assertion that made the > streams test skip its whole IO block (report from sashiko) > - p2/p4: document the iocost_ioc_tick fields in the trace header > and extend the io.cost.model docs with the dev supply and the > -ENODEV attach conditions (report from sashiko) Just a gentle ping on the v14 series below. v14 addressed the comments from your v13 review. Since then, the only additional feedback has been a couple of selftest robustness fixes. The only change to p2 after your v13 ACK was an additional function comment, which I'll drop in the next version. Do you think the next version is ready to be posted as a regular patch series instead of RFC, or would you prefer keeping it as RFC for another round? Thanks, Tao