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_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,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 24804 invoked from network); 19 Jun 2022 21:23:14 -0000 Received: from tb-ob0.topicbox.com (64.147.108.117) by inbox.vuxu.org with ESMTPUTF8; 19 Jun 2022 21:23:14 -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 351CD297E3 for ; Sun, 19 Jun 2022 17:23:09 -0400 (EDT) (envelope-from bounce.mM24ba5edacde926075a431016.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id 2648F291968F; Sun, 19 Jun 2022 17:23:09 -0400 (EDT) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=SoCsDn6f header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; spf=pass smtp.mailfrom=andrey100100100@gmail.com smtp.helo=mail-lj1-f178.google.com; 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=message-id:subject:from:to:date:in-reply-to :references:content-type:content-transfer-encoding:mime-version :list-help:list-id:list-post:list-subscribe:reply-to :list-unsubscribe; s=sysmsg-1; t=1655673789; bh=EzIsADV68Lm6Nw7h T9Gzzg+5uVQqI14T/JH6BgqRVAk=; b=ayqac78hNAdQ/tvK4v+gYwQearMXHDdJ /XrUp49TDa0rOYhslBeeqUx9KpF0MGch9KHWOQUS8msCIR28Tzt+I5GaqlbOaG2M QKZmIQ/MHlLQcBpCuxUEe76Lw5sLA3s8CerSGSLTLiRdnE6tk20s+yTprAmr4hFl ojRs9P6AWtU= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1655673789; b=WZKA+SrvxmV1IapgLpzA5kNYaUO6SABjVauY/zHleLkwMmQkBl IA0vp/tOwHMgJ+qt9dCaINuR/KMNEE6YGD76ynFuEZHAMfirEzgd+MohZ0VOWESj /LTUP/ojXrp4IsC7stUJhckVjBUnY1pSjO+DedFjsAF8zimLnYTEP+Qlg= Authentication-Results: topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=SoCsDn6f header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; spf=pass smtp.mailfrom=andrey100100100@gmail.com smtp.helo=mail-lj1-f178.google.com; 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-mx0.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=SoCsDn6f header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.208.178 (mail-lj1-f178.google.com); spf=pass smtp.mailfrom=andrey100100100@gmail.com smtp.helo=mail-lj1-f178.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=tTyNExHK; x-me-sender=none; x-ptr=pass smtp.helo=mail-lj1-f178.google.com policy.ptr=mail-lj1-f178.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com); 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=message-id :subject:from:to:date:in-reply-to:references:content-type :content-transfer-encoding:mime-version:list-help:list-id :list-post:list-subscribe:reply-to:list-unsubscribe; s=dkim-1; t=1655673788; x=1655760188; bh=EzIsADV68Lm6Nw7hT9Gzzg+5uVQqI14T /JH6BgqRVAk=; b=J/fhkZmkwykqMvUWli9+z1m4fn6mM8nQlwqm5FxFy8idXc32 V1H0nfw/R//eNbPP1p8am4xbfLkXdDKuv3agl0iLl7WZaNgHlgVjTUyQg+3t05U5 eXnvXL1XVrTjIhKVQGdBkFgcVDo9jFdOVEXDC4w0qTkeVGW1fZgIh9/UFas= Received: from tb-mx0.topicbox.com (localhost.local [127.0.0.1]) by tb-mx0.topicbox.com (Postfix) with ESMTP id D4B132919267 for <9fans@9fans.net>; Sun, 19 Jun 2022 17:22:42 -0400 (EDT) (envelope-from andrey100100100@gmail.com) Received: from tb-mx0.topicbox.com (localhost [127.0.0.1]) by tb-mx0.topicbox.com (Authentication Milter) with ESMTP id 780F229C798; Sun, 19 Jun 2022 17:22:42 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1655673762; b=micsMZgSukxBX3ELwwHmkqqSUtI26t0Z+q8vYEuIWL0WoyE1Y+ j03OZIAQ+g/BI4dswtM0k059sQ2jalvDGBP+zayMku1N5jQFOFS/66o87mz91R3I UjQnzjwDOCbDhIUSpNMEULOz8HhjGI7Y1BN7bixA80rL0zK5X0EFRcgWsCS1BZ0y WaapJmJ9RCRd1K9efY4zF/BCGR3sEChErucfJX2spueXPRITCQJaxWJBwouzrMx3 4+lCOTs3hpbjVaQpm6sz9eKbaErPFXVOdYR9z8Gmr/FF8yzH2L1k4rlRcVj9S6W+ x1JmutJisjGPagzMpjQsxS4MJ2XG1tPwXoMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=message-id:subject:from:to:date:in-reply-to :references:content-type:content-transfer-encoding:mime-version; s=arcseal; t=1655673762; bh=GbVVjnI9QIfTrAPKncZsYnKKBfDOyuvvgxb ADgky1gU=; b=n0BfdJdps4/EBwE3+bMmC10T2PKpb6Y8OZ7lJ/MOe2KgKD1wkFF NK0qU8JUogTatbDNzSR1XK9dNnb2IJLp1r3f16LPYRpu1snADebg6BaQ91KyZmq4 hJwBqL7NM1SFsrxjbRHxmn2CAomDhS5G/V/sFrT7VPtgbcOcOyBIcATE2zpx+DQL PrOWJoxt6Num0S1GlduBcoJuZaEMUS3FvKiLhcukOA6XHTTQvL/T76MY7K6V8qup FnaTTmclNsgkx+8UYpaGoZxNDFpYUuPjMa6ucOXzhKVQWzkoV8exRaVuaQ9c41lv Ulj7pi1WwLN0TuCxNfuNa7oSzvyAo8sJV7g== ARC-Authentication-Results: i=1; tb-mx0.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=SoCsDn6f header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.208.178 (mail-lj1-f178.google.com); spf=pass smtp.mailfrom=andrey100100100@gmail.com smtp.helo=mail-lj1-f178.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=tTyNExHK; x-me-sender=none; x-ptr=pass smtp.helo=mail-lj1-f178.google.com policy.ptr=mail-lj1-f178.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com); 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: gggruggvucftvghtrhhoucdtuddrgedvfedruddvledgudeivdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhepkffuhf fvffgjfhgtgfgfggesthhqredttderjeenucfhrhhomheprghnughrvgihuddttddutddt uddttdesghhmrghilhdrtghomhenucggtffrrghtthgvrhhnpedvudehudekkeetieehvd ektddvuddufeevffehheegveelhfekffelvdejfeehffenucffohhmrghinhepthhophhi tggsohigrdgtohhmnecukfhppedvtdelrdekhedrvddtkedrudejkedpkeehrddujeegrd duleelrdekvdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedv tdelrdekhedrvddtkedrudejkedphhgvlhhopehmrghilhdqlhhjuddqfhdujeekrdhgoh hoghhlvgdrtghomhdpmhgrihhlfhhrohhmpeeorghnughrvgihuddttddutddtuddttdes ghhmrghilhdrtghomheq X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (gmail.com ... _spf.google.com: Sender is authorized to use 'andrey100100100@gmail.com' in 'mfrom' identity (mechanism 'include:_netblocks.google.com' matched)) receiver=tb-mx0.topicbox.com; identity=mailfrom; envelope-from="andrey100100100@gmail.com"; helo=mail-lj1-f178.google.com; client-ip=209.85.208.178 Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx0.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Sun, 19 Jun 2022 17:22:42 -0400 (EDT) (envelope-from andrey100100100@gmail.com) Received: by mail-lj1-f178.google.com with SMTP id o23so2808467ljg.13 for <9fans@9fans.net>; Sun, 19 Jun 2022 14:22:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:content-transfer-encoding:user-agent:mime-version; bh=GbVVjnI9QIfTrAPKncZsYnKKBfDOyuvvgxbADgky1gU=; b=tTyNExHKkI/dpkxM4Fs2aaN3PX5LvmSOvYSJmlzR1CujutEWVOAMakO7hEjlnwd5pP ETMRZdLu6ww59JCbbNFdgm0/Gqv3D31qE6K1L7yw5Fq9PnbJpn49fAbELKrH43iN54gQ x3Mylf6SMy0CPO0vx2EnFzzip/L7b/apIw2F6Bt/bfGyZdUPsIsxr95KETgL5TlJPuta uRLNb+n6OEiNCvtCNP5A8Cj3xBY76aQtBY25kzmtgUWCDOrbNU9gA1BbjFPiD7iNvoj+ d57FlsNaNpBnrxGQgViXmGCF3SeMUkDC0CWeVz3eeqsnS4xTNY3jFVgzhEZj1GD3QWNA VH3g== X-Gm-Message-State: AJIora8EY2JZ12AA2gnhzQ2apAAvBGWLFTKn5X+r1JAUUnJF2AAOFRXM /p6RhJgNEwZ9Gw5ysoFjU2siC2Lr6fk= X-Google-Smtp-Source: AGRyM1s95LRUKFY4un2bf7W4YPVRJ9X06Jwl3GV9Tk133xLiDwFBo4YbAwqz2ITfs7MIq1kY8ZgdlA== X-Received: by 2002:a05:651c:233:b0:255:58b9:1f53 with SMTP id z19-20020a05651c023300b0025558b91f53mr10324022ljn.143.1655673760497; Sun, 19 Jun 2022 14:22:40 -0700 (PDT) Received: from [10.33.77.10] ([85.174.199.82]) by smtp.gmail.com with ESMTPSA id p5-20020a056512312500b0047255d2115fsm1490283lfd.142.2022.06.19.14.22.39 for <9fans@9fans.net> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Jun 2022 14:22:39 -0700 (PDT) Message-ID: <86055e9ba3dbe8ef06764d6d674830a8ec9404fa.camel@gmail.com> Subject: Re: [9fans] syscall silently kill processes From: andrey100100100@gmail.com To: 9fans@9fans.net Date: Mon, 20 Jun 2022 00:22:38 +0300 In-Reply-To: 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> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.1 MIME-Version: 1.0 Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: f780ea12-f015-11ec-b024-85ee2f0132fb Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UZmE2ODIzMDQ4YWQ5MGEyMS1NMjRiYTVlZGFjZGU5MjYwNzVhNDMx?= =?UTF-8?B?MDE2Pg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:M24ba5edacde926075a431016:1:rJk-XAAjFQAvZf01NKrVPW11YGqWx7gFqVQ6T3t1RNA =D0=92 =D0=92=D1=81, 19/06/2022 =D0=B2 16:41 +0000, adr =D0=BF=D0=B8=D1=88= =D0=B5=D1=82: > On Sun, 19 Jun 2022, andrey100100100@gmail.com=C2=A0wrote: > > Yes, you were absolutely right, the thread library needs some work. > >=20 > > It is impossible to use multiple processes with notes, due to the > > exhaustion of the NFN limit. >=20 > Andrej, what are you going to do with alarm in the real thing? The note 'alarm' is needed to interrupt the system call on timeout since system calls to lan 9 can be of a network nature, a notes is indispensable. A great example of this is the read() system call on a udp-connection. How else can this system call be interrupted? > 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). >=20 > You can use rfork, locks, pipes, etc and forget about libthread. >=20 > 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): >=20 > aNode1 --> aNode2 --> aNode3 --> ... --> aNoden --> > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 > --- > Anz > bNode1 --> bNode2 --> bNode3 --> ... --> bNoden --> >=20 > 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. >=20 > 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. >=20 > Have fun. >=20 > ------------------------------------------ > 9fans: 9fans > Permalink: > https://9fans.topicbox.com/groups/9fans/Tfa6823048ad90a21-Md1b869bf61decc= adf9733908 > Delivery options: > https://9fans.topicbox.com/groups/9fans/subscription ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tfa6823048ad90a21-M24ba5= edacde926075a431016 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription