From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2B69AC433E7 for ; Tue, 13 Oct 2020 17:36:47 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B42042536D for ; Tue, 13 Oct 2020 17:36:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="MCpY42vh"; dkim=pass (1024-bit key) header.d=perex.cz header.i=@perex.cz header.b="0jBiwzA4" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B42042536D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=perex.cz Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id CA2D442; Tue, 13 Oct 2020 19:35:50 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz CA2D442 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1602610600; bh=m+v+XFwmmVe0AkbKMd8+Qti/i+hGeYVHITYxMbHxn9Y=; h=Subject:To:References:From:Date:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=MCpY42vhA3tVjDBBg+FMn6JAhjVn4MBDS8akQWhv5LAoS72FpgikdtAeLzT/Ceujx a9JG10aM/cYPevprCfRvj2inyk7O3XDXs/zwLeE4bzEqBFBX4PAJ0cYrRqOsKlUvIR 3XIohOiXb+WvDowozCBuZ1PjhbFhpyedS1Lg7v2A= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 68592F8012C; Tue, 13 Oct 2020 19:35:50 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 4E6B2F801A3; Tue, 13 Oct 2020 19:35:49 +0200 (CEST) Received: from mail1.perex.cz (mail1.perex.cz [77.48.224.245]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 03AA9F8012C for ; Tue, 13 Oct 2020 19:35:42 +0200 (CEST) Received: from mail1.perex.cz (localhost [127.0.0.1]) by smtp1.perex.cz (Perex's E-mail Delivery System) with ESMTP id A82CDA003F; Tue, 13 Oct 2020 19:35:39 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.perex.cz A82CDA003F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=perex.cz; s=default; t=1602610539; bh=VyUbOVMzwcIf0YWiHD1veq8AMcmuHYi1Zy2QZLmHXP4=; h=Subject:To:References:From:Date:In-Reply-To:From; b=0jBiwzA4fkdDCSWFfiOo1s+lqb6Zz1toNeI5TUHnjEOm+Fidy9R8lh6sv6v84qUdw LiVK4adYhkEokvnRddLWhu/xRPT8ZPglzuoMrSvnyMZGbbJSsE4pvyMzmw+bsbhxXf fjuEB8W9vNt+SSnINto4PkiSpTDSbhT0DGig0FyI= Received: from p1gen2.perex-int.cz (unknown [192.168.100.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: perex) by mail1.perex.cz (Perex's E-mail Delivery System) with ESMTPSA; Tue, 13 Oct 2020 19:35:36 +0200 (CEST) Subject: Re: pcm_meter.c issue at s16_update To: Pavel Hofman , Go Peppy , alsa-devel@alsa-project.org References: From: Jaroslav Kysela Message-ID: Date: Tue, 13 Oct 2020 19:35:36 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Dne 17. 09. 20 v 21:13 Pavel Hofman napsal(a): > Hi, > > Dne 15. 09. 20 v 5:40 Go Peppy napsal(a): >> >> Just to remind what the issue is - while switching from one web radio >> station to another there is a high CPU usage for about 20 seconds. Because >> of that high CPU consumption almost all other processes are blocked. > > 20 seconds is only due to 32bit kernel on RPi. On 64bit machines the > boundary value is usually many orders of magnitude larger, basically > making the method never finish. Could you try this patch? https://github.com/alsa-project/alsa-lib/commit/a6c8ac0c85ca1b16684a687c7000c73aa38b7776 It should prevent the big copies which are definitely nonsense and this change does not hide the real problem. Jaroslav > > With regards, > > Pavel. > -- Jaroslav Kysela Linux Sound Maintainer; ALSA Project; Red Hat, Inc.