From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 21287 invoked from network); 19 Jun 2022 16:41:36 -0000 Received: from tb-ob0.topicbox.com (64.147.108.117) by inbox.vuxu.org with ESMTPUTF8; 19 Jun 2022 16:41:36 -0000 Received: from tb-mx0.topicbox.com (tb-mx0.nyi.icgroup.com [10.90.30.73]) by tb-ob0.topicbox.com (Postfix) with ESMTP id 0CB7E282CD for ; Sun, 19 Jun 2022 12:41:31 -0400 (EDT) (envelope-from bounce.mMd1b869bf61deccadf9733908.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id 0A06727F5714; Sun, 19 Jun 2022 12:41:31 -0400 (EDT) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=none,d=none,d.eval=none) policy.policy-from=p header.from=sdf.org; spf=pass smtp.mailfrom=adr@SDF.ORG smtp.helo=mx.sdf.org; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=date:from:to:subject:in-reply-to:message-id :references:mime-version:content-type:list-help:list-id :list-post:list-subscribe:reply-to:content-transfer-encoding :list-unsubscribe; s=sysmsg-1; t=1655656890; bh=vLdvpQR/UgvfD+6S r8WJc6Fjtud9iO81v07TCk8ipKQ=; b=RtN0nvfTWuTT8OeWsWjdlfk9No/zJTXz nomESI0qZBxKtMz2/H58Lnw81E7evmD2DkCqDGG4K3zmbz8Ge21S1INVnmw5AjkL +oAFn+iQWCUKHy5VtfSR1J9li/O8AKoFCv9YJf9dIQdOf7/JJ1jI6PkB7jbBr1Mj k6dABS6UZUo= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1655656890; b=DMMCg6IvTM5cTYRGkHKtl6+N3Q+S7hPb8Tc/UYCTG4mlkEjUCc lki6UCxc/3u4y6fH8L/WqrNhymJl1X3JVDAJNYXbdG7We9W69svpT47PKpW+qwVU tf1Uzzx8I/Qyxe3KxYL79RcBEXBRT8+Xxy+BVhYibsSpvQEP5gyPUlzJY= Authentication-Results: topicbox.com; arc=pass; dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=none,d=none,d.eval=none) policy.policy-from=p header.from=sdf.org; spf=pass smtp.mailfrom=adr@SDF.ORG smtp.helo=mx.sdf.org; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) X-Received-Authentication-Results: tb-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=none,d=none,d.eval=none) policy.policy-from=p header.from=sdf.org; iprev=pass smtp.remote-ip=205.166.94.24 (mx.sdf.org); spf=pass smtp.mailfrom=adr@SDF.ORG smtp.helo=mx.sdf.org; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=mx.sdf.org policy.ptr=mx.sdf.org; x-return-mx=pass header.domain=sdf.org policy.is_org=yes (MX Records found: mx.sdf.org); x-return-mx=pass smtp.domain=sdf.org policy.is_org=yes (MX Records found: mx.sdf.org); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h=date:from :to:subject:in-reply-to:message-id:references:mime-version :content-type:list-help:list-id:list-post:list-subscribe :reply-to:content-transfer-encoding:list-unsubscribe; s=dkim-1; t=1655656890; x=1655743290; bh=T6l7NTAozeprfAfuUTyjjMBkSUVH2vVH zA349gXSBuc=; b=AtFp09oZ6IijPQa0jjGd8c+CaoNhCgoGGmZxt4r2XMTe6U8S 5ETRgpRxIK1qzHVzNFaa2R3ZLJJosZaG/YqtgjcaOHULAt+/wOJZVlEk/7KOkNGH JVpFfdBt0Ybd9l0rANtcuQYynRKenaZG3l+zCFIWEd/b8DW4+Ofb38SUgB8= Received: from tb-mx1.topicbox.com (localhost.local [127.0.0.1]) by tb-mx1.topicbox.com (Postfix) with ESMTP id 03024156290A for <9fans@9fans.net>; Sun, 19 Jun 2022 12:41:16 -0400 (EDT) (envelope-from adr@SDF.ORG) Received: from tb-mx1.topicbox.com (localhost [127.0.0.1]) by tb-mx1.topicbox.com (Authentication Milter) with ESMTP id 1C21BED79DA; Sun, 19 Jun 2022 12:41:16 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1655656876; b=V2gSDInt89RPftXk9RLnRYdEx35NYb/CZ/mZDcmdzkm8ex9jsY HHwqfka2Xo7im5dogXAGuO7pW0Bq8tOqzIjy/9n7wxf4cKjGhzSwouNlIc2n/6vK uaoRpJ9DyIz6H+0FZihv5Ka6bMVsdNoGyE82eElU7eJpuSgNyFDkN5ee8rsbPwFT sqlqOIE6qxUJ529IJsdrmv89FbpBmTYlT2Wzm+Mk23S560UoW+twep3RULcycJLv S4et7JOWzqEPOwrlLZ9l/7u4iZrr2yNbcLzKm5nUnaKIaykSzucuNNjN/1aBz4H6 1U1W+vXdIHTsV5jHkx0Qo5+Ka59JW0u+NioA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=date:from:to:subject:in-reply-to:message-id :references:mime-version:content-type; s=arcseal; t=1655656876; bh=55OjOqSW8R4NU2aGs2hBurOwR6CfgeLWkesJwGT0cZM=; b=O78p9bL3W7Nq a7L6SfpLjuoEkb1WQXtsObOqsr/ZXxbmG4F/TgCq7ebp7ZTkYwgCuDEqZZeVv0MD GrCispTit/bHX/MKIPqUMBFfqmwMLVx4DPVO1lTNZY0SxzSAPKUxsw1LlKemmRvj uxsY8ZJ3t0gyiRm+lNT2uxfLenBHAjzDzgdLE/Ym4yjlOzBkSoVcTlVwRrb0DEt6 N49r6BFQDaSVn1D5esiwEMv/qcdtJh+FfkjAZYk9kh9fmuTrff0gWzNBvOgawWJo iKnyrs62jykyl/TPtuaKAfK1Yd8Pxxa7u+F3qR0ItCjfznDpGkgdYIjXfJ3h+Xjy nz+Nv2xorQ== ARC-Authentication-Results: i=1; tb-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=none,d=none,d.eval=none) policy.policy-from=p header.from=sdf.org; iprev=pass smtp.remote-ip=205.166.94.24 (mx.sdf.org); spf=pass smtp.mailfrom=adr@SDF.ORG smtp.helo=mx.sdf.org; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=mx.sdf.org policy.ptr=mx.sdf.org; x-return-mx=pass header.domain=sdf.org policy.is_org=yes (MX Records found: mx.sdf.org); x-return-mx=pass smtp.domain=sdf.org policy.is_org=yes (MX Records found: mx.sdf.org); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgedvfedruddvledguddthecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvf fujgfkfhggtgesthdtredttddtvdenucfhrhhomheprggurhcuoegrughrsefufffhrdfq tffiqeenucggtffrrghtthgvrhhnpeekhedtveffheevhfdtgefhhefgveelvedujeetje dtheduvdefvdekgedtfffhffenucfkphepvddthedrudeiiedrleegrddvgedpvddthedr udeiiedrleegrdduieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvg htpedvtdehrdduieeirdelgedrvdegpdhhvghlohepmhigrdhsughfrdhorhhgpdhmrghi lhhfrhhomhepoegrughrsefufffhrdfqtffiqe X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (sdf.org: 205.166.94.24 is authorized to use 'adr@SDF.ORG' in 'mfrom' identity (mechanism 'ip4:205.166.94.0/24' matched)) receiver=tb-mx1.topicbox.com; identity=mailfrom; envelope-from="adr@SDF.ORG"; helo=mx.sdf.org; client-ip=205.166.94.24 Received: from mx.sdf.org (mx.sdf.org [205.166.94.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx1.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Sun, 19 Jun 2022 12:41:15 -0400 (EDT) (envelope-from adr@SDF.ORG) Received: from sdf.org (IDENT:adr@sdf.org [205.166.94.16]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 25JGfEhS009467 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO) for <9fans@9fans.net>; Sun, 19 Jun 2022 16:41:15 GMT Received: from localhost (adr@localhost) by sdf.org (8.15.2/8.12.8/Submit) with ESMTP id 25JGfElc001844 for <9fans@9fans.net>; Sun, 19 Jun 2022 16:41:14 GMT Date: Sun, 19 Jun 2022 16:41:14 +0000 (UTC) From: adr To: 9fans <9fans@9fans.net> Subject: Re: [9fans] syscall silently kill processes In-Reply-To: <1546d1fadc4a03e6772cd93c184a3ea1cf2f7486.camel@gmail.com> Message-ID: References: <79286caa2ca77ea9b9a1cd64918bdc5f28c8f180.camel@gmail.com> <9e922645a598c69ba14b74e18e8669cc068e9717.camel@gmail.com> <0e5677e6-684d-ff37-c6cd-430d18536070@posixcafe.org> <3889a52-3fe4-c28-1c3b-a73412a489@SDF.ORG> <64a85bad-7ab-fb6-6517-acfafa819bc@SDF.ORG> <658d1591a1abef7c4a85ea3bbf23777b38247893.camel@gmail.com> <1093bce-923f-8147-1f7-ba9e146a112@SDF.ORG> <458b1f1921fb081dc181c1aaa87caea69f5f3760.camel@gmail.com> <1546d1fadc4a03e6772cd93c184a3ea1cf2f7486.camel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: a705a87e-efee-11ec-8ded-f92b18391b71 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UZmE2ODIzMDQ4YWQ5MGEyMS1NZDFiODY5YmY2MWRlY2NhZGY5NzMz?= =?UTF-8?B?OTA4Pg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> Content-Transfer-Encoding: quoted-printable List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:Md1b869bf61deccadf9733908:1:8CTbodSgciy0yTr6CHtinm8nQ1_jSZ9BTav7sbaHHxg On Sun, 19 Jun 2022, andrey100100100@gmail.com wrote: > Yes, you were absolutely right, the thread library needs some work. > > It is impossible to use multiple processes with notes, due to the > exhaustion of the NFN limit. Andrej, what are you going to do with alarm in the real thing? You could use threads (cooperative round-ribbon multitasking) using some data log to register their state and use a "master" thread to control them (kill them, change some data structure, etc). You can use rfork, locks, pipes, etc and forget about libthread. You could experiment with the topology of the nodes, for example instead of a big star you can simplify things a lot using chains of nodes where the last node sends the chain data to the analyzer (you were talking about polling sensors): aNode1 --> aNode2 --> aNode3 --> ... --> aNoden --> = > --- > Anz bNode1 --> bNode2 --> bNode3 --> ... --> bNoden --> Imagine that n=3D100. Each node only has to make a connection with 2 nodes (the first of the chain just one), adding data to the received one and send it to the next. Anz only has to make a connection with the last nodes of the chains, two in this case, and process the data received. Of course you have to play with your numbers, the acceptable delay, etc. I'm pretty sure people here could point you to some examples using plan9, and note that you could use raspberry pi zeros as nodes. Have fun. ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tfa6823048ad90a21-Md1b86= 9bf61deccadf9733908 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription