From nobody Sat Sep 23 14:50:54 2023 X-Original-To: ports-bugs@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 4RtBsC2qqXz4tmRR for ; Sat, 23 Sep 2023 14:50:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RtBsC1PgKz4Fcb for ; Sat, 23 Sep 2023 14:50:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695480655; a=rsa-sha256; cv=none; b=IUYkJ/G+lIWJX2jVflliP2IGNysAnMNvySmTLg4xw8EkPCNhxQ03F2T8uEoPpA/9P8mVyW L8/o2r6GEoI+aVgAb6DoYSXp7lqDa9/dfC0lO4p45osjggzGE7nc5BLn4wUxCTlWLuZ5TH iEG80g8scKpeCvDi2rWcHyR/buCO0ck5eoMTINEZFanl4mE31MjfcsxU0JPMC4Degz9PD1 fIUewRwKPJ4JLCqXkSEjqyVRdmNOLEc1AB9OePiFskM4Af8/ExfiQ4DdnQY5XYDCC9nu8O 4MWCo2hMftBO97fP9tqNQu/oq+KvQEuH335ZL04MUjvH2yACwl/w7J1hM1SwgA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695480655; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=REk/g4XCKhB5d1IWmCaGYr9mlsbxVDp5prXDb4CxFcI=; b=STCzfCoQ99zP9hoaefz2iI+O8WHO32CHQ9axPqcKzjbmd9crvQbZGcxp7hGSAuTbCjlFba Bj5tQjtrNYSNluvVPoLQ96IYYqf9y5X4ZJ6GiN3wOVEsdxhGfn+0v4QQCFG5AtkvBM3IJL kevMeUCZkYFY7GURg270rDjsaItMm87B6F6KUriodImq2cWgf9hiEk355gUVO3ejy38ARH XVMMi25qRdDH4fYFTmlu5zfXeWkHYerzLDMe3gK6oxhUO5pLAqc5AdN+Iz2EBUeQL6UtLw 1fhqp6Jc/d++Vo9GsRxXucllHMds3Ev5v6jTPVenBmOyxhaDx/F9SYH2sjxn9w== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RtBsC0TMZz17bT for ; Sat, 23 Sep 2023 14:50:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 38NEotov045135 for ; Sat, 23 Sep 2023 14:50:55 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 38NEotne045134 for ports-bugs@FreeBSD.org; Sat, 23 Sep 2023 14:50:55 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 274047] audio/alsa-plugins: large number of underruns and CPU usage with games/veloren-weekly Date: Sat, 23 Sep 2023 14:50:54 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: scf@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274047 Bug ID: 274047 Summary: audio/alsa-plugins: large number of underruns and CPU usage with games/veloren-weekly Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: scf@FreeBSD.org CC: games@FreeBSD.org, jbeich@FreeBSD.org CC: games@FreeBSD.org, jbeich@FreeBSD.org I am uncertain which is at fault (or both), but I noticed that Veloren runs= at a high CPU with many ALSA underruns. It also caused visual and auditory stuttering. The CPU can be observed by running Veloren in a single world game then suspending it by opening the menu to remove game activities. On my system,= the CPU usage hovers around 70%. The process will output many of these messages: ALSA lib pcm.c:8526:(snd_pcm_recover) underrun occurred The underruns can be verified via /dev/sndstat with hw.snd.verbose=3D2. To reduce the CPU usage to below 10% (on my system again) and greatly reduce the underruns, I decreased the value of ALSA_OSS_BUFSZ_MAX in audio/alsa-plugins/files/patch-oss_pcm__oss.c from 131072 to 16384. 32768 appeared to be the maximum value that could be used without underruns. I am not sure if this is the best decision or not, but it fixed Veloren for= me. --=20 You are receiving this mail because: You are the assignee for the bug.=