From nobody Mon Jul 27 17:17:46 2026 X-Original-To: freebsd-current@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 4h84zr3b7rz6nGW3 for ; Mon, 27 Jul 2026 17:18:00 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qk1-f182.google.com (mail-qk1-f182.google.com [209.85.222.182]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4h84zr1g9zz3HGQ for ; Mon, 27 Jul 2026 17:18:00 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-qk1-f182.google.com with SMTP id af79cd13be357-9305a2121a1so248331585a.2 for ; Mon, 27 Jul 2026 10:18:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1785172679; cv=none; d=google.com; s=arc-20260327; b=aBJThmL7Dd9qUJHKSUunBwlSPMX2nvdoeEMsk/7B4u6BssCN8BW7vPRGonmG0oW6gC AAb7tXiSTMaklL/eEonqB8J8enY8VxyKePmGAG4WJm8VqDnG1ihxpMHO6R/V4DgOsuWN GeDXnCdOUIqNfs42LdfVwymRukm+rhMpaH1583Yb14VSm0xyw2zPYzG8aRMfFPUGpjqe yxB5tdkW9Z450JX1ZDrSayo69rYjooSrK6n6cy00GWIVLTJ1Z0Ykzd6TxmenEMt93hRx iMHEstc0J5UtyyHv5GxjQsinP8A1pIGolQYHwr/D3sxC9SBKh9UwJ4it5lu3ZVe0XLhV 5cNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version; bh=kXqR6Eix6zEx10s5//UZZkbNkSiH8YKPUkfwahAbfbw=; fh=h1BSIUgdJi7irbtf6xZXHAlM7bwl4CQ/NTJUouiJhQA=; b=qx9GaK56zUB3f/+nG1a+Mg5zVB9edjn1ThR7Bus37uC52Gu6eSZu+Q8fnY+3eP2eP3 nDJ/SO3K0Vk98YAPPeHEC54xSJMNTdeSCp3JhLloR6NPxLdrVEK4wOWNdH7uofV2hRmU mizFfs32MLIRkUp9X9oc8NJfoCzZPCSFgWcxQlPvaGq7wzRfJpkBe+H/0N4cqTEzibWG zSFzcsd3lPMbKShCzoFKRriyYn5E15lvJiq22T2XlIUhdSvW1fjF0xCRUe1BiS87dZT/ 3DbNzXhfx7OtC+hQO/3SAIC+XGxwrBJRA7flJxOK5VfB5ZGvTJ4dLyPAV8Y1hwBKx3bi 3Apg==; darn=freebsd.org ARC-Authentication-Results: i=1; mx.google.com; arc=none X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785172679; x=1785777479; h=content-type:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=kXqR6Eix6zEx10s5//UZZkbNkSiH8YKPUkfwahAbfbw=; b=BuaU2Rl+nPQNMNnCANLXjYoEdiJpUVXiEbDF92F0K9Q8y0qWpnpIlwsWquQyEpQchY 36ZR5D00YzoyAG+PPsfQjyO1jMXbma9N1uD+SM4qU/NUNAHwyr2MMVt69YNuClgKGAZS TULxsiQxv4p9/pKBZmmjUSG0g/EZUvuWYLCTMeXiT3DfOP9x/A7wC/PRiIxdKNZd0GiQ vFPGG+wkrFjn+CEJh6cb0XuZZRYtMgaP8OJmiUcnNfpx8EN+9GS+ZdutAO1ZA7G5hpYG FOMs+nN8OEX093qR86dFmgimDkIgJq6BMbMuGIOj2kmCSycQnUTqABA/MrnPiErHkBbH 6HXg== X-Forwarded-Encrypted: i=1; AHgh+RqQaLcgNzK1lPe3q+l2KQYNsFnbnDLcOEYdhrVWYM0M+YJzd0ItMZVo458i7C3hUX22W8h8MtoE/omKRrGeG7k=@freebsd.org X-Gm-Message-State: AOJu0YwQIPaTGGk7SXZgOIvfDpWAqbOksH0NyF/wgUDCqzGYnuXkqNF5 BJBNUfGeQpz9q53MVXJE1GDNcvHi3x3vlpCt3GyGkmf2qwgbV8x+2OQ5ICFo+SxTVz4K6LSYeQN hsXqsfzcuYSe+NNStIJCrEuYDyPyWQa+VqA== X-Gm-Gg: AR+sD11B2SUNanVx86e9WF6M9JrIS9Y6gdCdL7bVSI3OehmkUDUoPxjCrxmIVw6bArB bIueDcnxVPT2kdhEbeQt205d47cSamNFEZvJnGZBupkUj0eOM2jI2rfPj5xYYvUXMKcWFe8F74l uHEDYS6EoJNdIKiDfCe5LfPEfgBT9OTgAoDfnNgGBLl/z7DbovWNdLAXBQjwVUAHXuFTdKL8olz HtbG1hENx4OSKrZ2Y5wRE4rbztSTRA7h2sk/prNdekS1CNFYXPdRktGBMa6EGzZyhba/XPJyd75 v+iC5Gs7n+c33n+ReyzfQ8sQsDp5sn4BPXpTGfA4mjtQeEHQJI40goxA1oxKtgxYU8Pq7m7nKhd rxBfh0oEe92Gojnvt6TYiR77vhe9gvEfU/D1+a+oYvllt7DRR9ILxXBIus6Jv3b04fVsaxuC94Z A= X-Received: by 2002:a05:620a:2945:b0:92a:d10e:bddf with SMTP id af79cd13be357-932df63de49mr965709985a.4.1785172679203; Mon, 27 Jul 2026 10:17:59 -0700 (PDT) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 References: <20260722085416.407316d393dce1884c29a3c7@dec.sakura.ne.jp> <20260724001549.c947af418add25dd00ac0344@dec.sakura.ne.jp> <20260724193239.d2eb613e0c4f42b90925eb46@dec.sakura.ne.jp> <20260726090359.4082568fe922add2dc01deb2@dec.sakura.ne.jp> <0AC6B63B-2A37-4F8D-BDBD-36D09F584913@ketas.si.pri.ee> <20260727190324.4b14bd9d7581c02c1cb001db@dec.sakura.ne.jp> In-Reply-To: <20260727190324.4b14bd9d7581c02c1cb001db@dec.sakura.ne.jp> From: Adrian Chadd Date: Mon, 27 Jul 2026 10:17:46 -0700 X-Gm-Features: AUfX_mxXG3nAszI1FXr94nFi-Y-6ow2hiwCkoQp-BR-_dNoU0tBqw81GbGM_pQs Message-ID: Subject: Re: Tragic State of FreeBSD Audio/Sound To: Tomoaki AOKI Cc: Sulev-Madis Silber , freebsd-current@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4h84zr1g9zz3HGQ X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; TAGGED_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US] X-Spamd-Bar: ---- On Mon, 27 Jul 2026 at 03:04, Tomoaki AOKI wrote: > > Another datapoint. > > When I've experienced "buzz" was when playing flac audio > using audacious AND under quite heavy loads (maybe especially > high I/O loads on staging / packaging) by poudriere builds > and `make buildworld` in case base llvm is under rebuilding. > > Experienced both on pulseaudio and OSS backends, and today > just experienced on pipewire backend, too. > > If this is caused by convergences on buses, I think > glmark2 (or any other GPU-intensive benchmarks for the computer) > could eat up bus bandwidth and causing the issue. > > Just my 2 JPY. ;-) > If you're experiencing "buzz" like I think you are then it's the same frame being queued over and over again to the DAC. Typically I've only seen that happen here when I have the kernel panic (we're not stopping audio DMA at this point, and I don't know why it's looping over.) If it's happening without a panic then it could be worthwhile digging into whether there's some driver bug around DMA and interrupt handling latency in high load scenarios. I'm unsurprised /i/ have not reproduced it as I don't do crazy stuff like run poudriere locally whilst also watching youtube. If you're interested in reproducing and chasing down /this/ but then I think this would be a fine thing to reproduce it locally on a given machine, file a bug, and then we can dig into profiling what's going on. eg if we can reproduce it with something VERY STUPID - eg mpg123 playing an mp3 direct to /dev/dsp* with no other virtual audio stack running - we can then focus on the kernel side to see if there's weird driver issues under high IO/interrupt load. Even in the year of our lord "LLMs are available" there's only so much one can do in long email threads; at some point bugs need reproducing, PRs need filing and developer / user time needs to happen. Let's be methodical about it to help out the sound folks in figuring it out. -adrian