From nobody Wed Dec 27 20:39:31 2023 X-Original-To: stable@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4T0k5f5d9zz56HDk for ; Wed, 27 Dec 2023 20:39:34 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: from egress.chen.org.nz (egress.chen.org.nz [170.75.172.82]) by mx1.freebsd.org (Postfix) with ESMTP id 4T0k5f10Nlz4VF3 for ; Wed, 27 Dec 2023 20:39:34 +0000 (UTC) (envelope-from jonc@chen.org.nz) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of jonc@chen.org.nz designates 170.75.172.82 as permitted sender) smtp.mailfrom=jonc@chen.org.nz; dmarc=none Received: from mail.chen.org.nz (unknown [210.54.37.164]) by egress.chen.org.nz (Postfix) with ESMTP id 6B3E9111E14 for ; Thu, 28 Dec 2023 09:39:20 +1300 (NZDT) Received: from mail.chen.org.nz (localhost [127.0.0.1]) by filter.inside.chen.org.nz (Postfix) with ESMTP id E82332835B for ; Thu, 28 Dec 2023 09:39:31 +1300 (NZDT) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on ametrine.inside.chen.org.nz Received: from [192.168.1.10] (jade.inside.chen.org.nz [192.168.1.10]) by mail.chen.org.nz (Postfix) with ESMTPS id E39872835A for ; Thu, 28 Dec 2023 09:39:31 +1300 (NZDT) Message-ID: <735d5bc7-fc83-4470-abde-2dca43bf7496@chen.org.nz> Date: Thu, 28 Dec 2023 09:39:31 +1300 List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Unusual ZFS behaviour Content-Language: en-US To: stable@freebsd.org References: <3cad03f3-f3f6-4d6f-976b-55f5af8909db@chen.org.nz> From: Jonathan Chen In-Reply-To: <3cad03f3-f3f6-4d6f-976b-55f5af8909db@chen.org.nz> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-3.19 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_SPF_ALLOW(-0.20)[+a:egress.chen.org.nz:c]; RCVD_NO_TLS_LAST(0.10)[]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; MLMMJ_DEST(0.00)[stable@freebsd.org]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; DMARC_NA(0.00)[chen.org.nz]; ARC_NA(0.00)[]; ASN(0.00)[asn:174, ipnet:170.75.160.0/20, country:US]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; PREVIOUSLY_DELIVERED(0.00)[stable@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Queue-Id: 4T0k5f10Nlz4VF3 X-Spamd-Bar: --- On 23/11/23 19:06, Jonathan Chen wrote: > On 22/11/23 19:49, Jonathan Chen wrote: >> Hi, >> >> I'm running a somewhat recent version of STABLE-13/amd64: >> stable/13-n256681-0b7939d725ba: Fri Nov 10 08:48:36 NZDT 2023, and I'm >> seeing some unusual behaviour with ZFS. >> >> To reproduce: >>   1. one big empty disk, GPT scheme, 1 freebsd-zfs partition. >>   2. create a zpool, eg: tank >>   3. create 2 sub-filesystems, eg: tank/one, tank/two >>   4. fill each sub-filesystem with large files until the pool is ~80% >> full. In my case I had 200 10Gb files in each. >>   5. in one session run 'md5 tank/one/*' >>   6. in another session run 'md5 tank/two/*' >> >> For most of my runs, one of the sessions against a sub-filesystem will >> be starved of I/O, while the other one is performant. > > I've run a few more tests, and the issue appears to be isolated to my > Alder Lake based system only. So it's more likely to be an issue with > the 'Alder Lake-S PCH SATA Controller [AHCI Mode]' or maybe the > scheduler using the P & E cores. I've updated to FreeBSD 14/STABLE, and I'm glad to report that this bug has gone away. I personally suspect that: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274698 is the cause. Cheers. -- Jonathan Chen