From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mail.toke.dk; spf=pass (mailfrom) smtp.mailfrom=irif.fr (client-ip=2001:660:3301:8000::1:2; helo=korolev.univ-paris7.fr; envelope-from=jch@irif.fr; receiver=) Authentication-Results: mail.toke.dk; dkim=pass (2048-bit key; unprotected) header.d=irif.fr header.i=@irif.fr header.a=rsa-sha256 header.s=dkim-irif header.b=LTz4YIX2 Received: from korolev.univ-paris7.fr (korolev.univ-paris7.fr [IPv6:2001:660:3301:8000::1:2]) by mail.toke.dk (Postfix) with ESMTPS id 7AF29B1B5D9 for ; Sun, 13 Apr 2025 12:44:06 +0200 (CEST) Received: from potemkin.univ-paris7.fr (potemkin.univ-paris7.fr [IPv6:2001:660:3301:8000::1:1]) by korolev.univ-paris7.fr (8.14.4/8.14.4/relay1/82085) with ESMTP id 53DAhxjP028713 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 13 Apr 2025 12:43:59 +0200 Received: from mailhub.math.univ-paris-diderot.fr (mailhub.math.univ-paris-diderot.fr [81.194.30.253]) by potemkin.univ-paris7.fr (8.14.4/8.14.4/relay2/82085) with ESMTP id 53DAhxL5009430; Sun, 13 Apr 2025 12:43:59 +0200 Received: from mailhub.math.univ-paris-diderot.fr (localhost [127.0.0.1]) by mailhub.math.univ-paris-diderot.fr (Postfix) with ESMTP id 1EC7465F65; Sun, 13 Apr 2025 12:43:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=irif.fr; h= content-transfer-encoding:content-type:content-type:mime-version :user-agent:references:in-reply-to:subject:subject:from:from :message-id:date:date:received:received; s=dkim-irif; t= 1744541037; x=1745405038; bh=fzGwfMViNNnXGn0R4QTzAcjOeKcQogn5HZw LXI1gh5M=; b=LTz4YIX2Arzno+ZXPiAc98v/5TJqWNB6ysAt3VyyzbINQeqf7Ck VgQddi55H0XYcGM/cdvfDUUGnlt9tzXt1FKXWcbkgRW+OmNMFyMbArhkAI0mlqmX mFP43c9jhQqLDY4ad2hufOGP2HXTrn99nGMyYm/O8qQUvtoQycNzbQa1vTxdoyMF 0Dbz8jz8yk5SpVbn3fF8FGn5H2DdOXTB4tmv/PNVSnOGUkQ/zlh3Pa/BS1PdykFR u9w+dIMcf7Jj9pkDBo7PSY/kEObsOCVbN3x3cM6DkuwikuLCzts3HEhohNITRXcc 64ZY7oNEIWXOVAS9Qq7lghBYe97eQkpLDng== X-Virus-Scanned: amavisd-new at math.univ-paris-diderot.fr Received: from mailhub.math.univ-paris-diderot.fr ([127.0.0.1]) by mailhub.math.univ-paris-diderot.fr (mailhub.math.univ-paris-diderot.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id HOqe7u4smBwa; Sun, 13 Apr 2025 12:43:57 +0200 (CEST) Received: from pirx.irif.fr (unknown [37.175.81.72]) (Authenticated sender: jch) by mailhub.math.univ-paris-diderot.fr (Postfix) with ESMTPSA id 9906F66296; Sun, 13 Apr 2025 12:43:57 +0200 (CEST) Date: Sun, 13 Apr 2025 12:43:57 +0200 Message-ID: <87v7r8gx3m.wl-jch@irif.fr> From: Juliusz Chroboczek To: alex@alexschroeder.ch In-Reply-To: <174449896128.2905.17174186580459925646@gauss> References: <174449896128.2905.17174186580459925646@gauss> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/30.1 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (korolev.univ-paris7.fr [IPv6:2001:660:3301:8000::1:2]); Sun, 13 Apr 2025 12:43:59 +0200 (CEST) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (potemkin.univ-paris7.fr [194.254.61.141]); Sun, 13 Apr 2025 12:43:59 +0200 (CEST) X-Miltered: at korolev with ID 67FB956F.000 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-Miltered: at potemkin with ID 67FB956F.000 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Enveloppe: 67FB956F.000 from potemkin.univ-paris7.fr/potemkin.univ-paris7.fr/null/potemkin.univ-paris7.fr/ X-j-chkmail-Enveloppe: 67FB956F.000 from mailhub.math.univ-paris-diderot.fr/mailhub.math.univ-paris-diderot.fr/null/mailhub.math.univ-paris-diderot.fr/ X-j-chkmail-Score: MSGID : 67FB956F.000 on korolev.univ-paris7.fr : j-chkmail score : . : R=. U=. O=. B=0.000 -> S=0.000 X-j-chkmail-Score: MSGID : 67FB956F.000 on potemkin.univ-paris7.fr : j-chkmail score : . : R=. U=. O=. B=0.000 -> S=0.000 X-j-chkmail-Status: Ham X-j-chkmail-Status: Ham Message-ID-Hash: G7IAVUUZ5KOSKPSDAQL53TYMQOEJXENI X-Message-ID-Hash: G7IAVUUZ5KOSKPSDAQL53TYMQOEJXENI X-MailFrom: jch@irif.fr X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: galene@lists.galene.org X-Mailman-Version: 3.3.10 Precedence: list Subject: [Galene] Re: Munin stats List-Id: =?utf-8?q?Gal=C3=A8ne_videoconferencing_server_discussion_list?= Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: > OK, this made me laugh: >=20 > ~ $ curl https://campaignwiki.org:8443/galene-api/v0/.stats > Haha! Oh my, that dates from the very first prototype, before proto-Galene was even an SFU. I think the code is still available somewhere, https://www.irif.fr/~jch/software/chat/ Patches gratefully accepted, of course. > In any case, I'm currently experimenting with writing Munin plugin for Ga= l=E8ne. > Munin is a networked resource monitoring tool. https://munin-monitoring.o= rg/ I know nothing about monitoring, and I'll be grateful for suggestions to extend the monitoring data. Anything goes as long as: - it doesn't violate the users' privacy (that's why the current data is keyed by stream id, and usernames are not visible); - it doesn't cause contention on a central mutex or atomic variable in normal usage. The second point is somewhat subtle. Some people don't realise that atomic read-write-modify operations are just as costly as operations on an uncongested mutex (they cause cache line bouncing), and write statistics code that accumulates into an atomic variable. That's okay for rare operations (say, a user logging in), but it's not okay for frequent operations (such as per-packet statistics). (The solution is to maintain per-thread or per-connection statistics, and accumulate them into a central place periodically, either on a timer or on well-defined events, say, when a connection dies.) -- Juliusz