From nobody Sat Sep 23 14:50:54 2023 X-Original-To: games@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 4RtBsC36yHz4tmRS 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 4RtBsC26VQz4Fth 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=SLtXB0YD54df2lbVc8aaRhP/e6yQEKNoe0kD4RCBZm2XQ1Plzm7KD9OylU9Ue0jVEHXx4o U1SfVSvxjhgf0vbQVFqkFItwxGIL6zVkEQ7UBhpNI85BFMhCl9MreozMrz4tsT61kvA89Y 0RmImhAKj02bQgWLu5j1cEkLGbePgQ+ULZSAhJZmMTGx2SpaHLHU3lG2RKj310QDY6V1+0 CXK/J6gg1BNJmOiH697bNp5YhyfQc5x5DarOs5XxeaW8rOzLKCzMQS6yIUrjIF5XHYh/2H PjYnDWnKzb76nwQkRqG/kNaFkDulUJy9hwG1n3Sl64YlDdStUpKBItjqxc/izg== 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=PCEqJTzKfuKCh/Oma66VSb/6SpLE6l497SCPhluMlKU=; b=lk6l9IPGg9IDnWTetWQRSUzNktE6jYi8wQb39mMr2Nl9+InMsJf4j6WScH/4lVv6BPOqv4 Y8J2I802JWqKYlmgyIBE1lKuUbgSFEKc/MYhLPD7pqfxkVUBHFcwC6TjBq3R099iOcOGhg TZHoXGYahVxEiMaIHbmBPNIgDfIIcppVMKRRjwpNoDaL9bIhqVa4PRZj6k7Zw0hYZwo7sY AIbWlwvxzQjKJNjCghPD6dqBnaIwRoZ9iHsvxQv/sTI4qWY5Y6PdU0xLnU2tPJEzFCcV1A gQx/ANqMCBv9tnRVNSD1NlgNSQB0fSlvsXyqhHCyZAotcQhPUSIk0ZW7jCyHlQ== 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 4RtBsC19Y7z17LZ 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 38NEotge045140 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 38NEot6P045139 for games@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: games@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: CC 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: Support for Games on FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-games List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-games@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 on the CC list for the bug.=