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 25357 invoked from network); 19 Jun 2022 21:27:07 -0000 Received: from tb-ob0.topicbox.com (64.147.108.117) by inbox.vuxu.org with ESMTPUTF8; 19 Jun 2022 21:27:07 -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 99AE629A69 for ; Sun, 19 Jun 2022 17:27:06 -0400 (EDT) (envelope-from bounce.mM06156a275c41ac100d18311b.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id 9214C291A27B; Sun, 19 Jun 2022 17:27:06 -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=Y3q/Fike 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-lf1-f48.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=1655674026; bh=AKj31GIvCY6Q+Tj/ E5jgbCuxhJUtor5dcSQUNS1WVFE=; b=beofTNendC8bCBjRr/mykVt1QJWca8to Hu6vfUzPCFCw53mAN+zfA8GNW0E+QFvgJ6DbkqtrdelY/KGOKs0cKnD89Ct/YfPc 4ND5EeLyv6AT4Hr52wvGpEZ3lYaCubvdLsup+yqVIi/Wb6YOUkCmMLa1HDzYCpQ7 +YkyZutlfMg= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1655674026; b=lTZuklJwJGng0foV62OM7uT48D0vQZaXMUBnP8oI5WMLz3JOpp anQp2cQ8rFQn94gScSdadDyeMZktNXnzieZhWHNgJ5nlx8A6OSwH/3MkqF2hJkcB cl+lrzTp7H9M2Zm6YJDhhWb0T8rqmNicFVPjKtH9CUUzs7HymQ5iUVINg= Authentication-Results: topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=Y3q/Fike 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-lf1-f48.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=Y3q/Fike 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.167.48 (mail-lf1-f48.google.com); spf=pass smtp.mailfrom=andrey100100100@gmail.com smtp.helo=mail-lf1-f48.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=oqTA8/w7; x-me-sender=none; x-ptr=pass smtp.helo=mail-lf1-f48.google.com policy.ptr=mail-lf1-f48.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=1655674025; x=1655760425; bh=AKj31GIvCY6Q+Tj/E5jgbCuxhJUtor5d cSQUNS1WVFE=; b=Mzl0NsIDtaNXMn4OSkvktWTkfPj7I05YEMxil0+isaa3QncF yBbepbhz1pwwRxnqYS8Dn8wJ5CZVQCMO1bvo5C17IZfOwRuDJREFLlWaS6sUhDAP K+uVTN8KyOcicCKKAxmFJeCS4lr0SEEpLDbLitkMittATGFkYNmV5U1E+tA= Received: from tb-mx0.topicbox.com (localhost.local [127.0.0.1]) by tb-mx0.topicbox.com (Postfix) with ESMTP id B70D12919E5C for <9fans@9fans.net>; Sun, 19 Jun 2022 17:26:51 -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 D868586E3CE; Sun, 19 Jun 2022 17:26:51 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1655674011; b=C7kMpVNghXivGYZ1Uu11DI2aUa1wAq59GT02JaHnUl50p7QKYQ WDvPSZDZ3FI9bsVi3NPZjS64d1WN6EgQHZslty34xBS8N9Q7uv0TXL5LKUC36tuv aLriRKBE7Xq55HL2/sOiHwqX807irpGXksgHMWA8uhM/b8Fwbg8aZvhNj7pwAmWp FmuLxcAMYjEnwDQWknamjb8O+4jMvyAPdv3W12cp41aNbHGSvz9PNpEZewLlE+iB KZJsbDTwZIsEfrEkvbUBunJZPLICJypiP9Lbojxau3UKQY5Ns4RfbnrkMd3gVrfT CI9bHEivUjDfX7NQbnZTOfBh8/m5Nf1tWwiQ== 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=1655674011; bh=P82/DCI0yx8fxIsmBZoGIUC+CkRzKo7T2b+ spbrOCtw=; b=AIIcA8sgUUSop8gmtVd8prb1FRdjdGIi8EDytxh/Zs0FXedR1Ps AkR3NHkd/UiBf8ODDVyNJQ/bM387yVc9tOe2r2riUwz9uALOwnd4IYdioT5tnS2a j7av84kxT9K/Z5pMJCcKAQ/3su4CZh0pifhPHvyDwTCS1N5KQ/8QFe/sztJ2N7Ho F5sLYCjP1tAdfAL7hZCrZvRCT68Sw/QESxl0i6Oc7HKVIRuBbzqqZVEl8FG3BTa6 eTlE6E4EEh8W8esL8Cbbd8zAkLW2rKGoLimG+QWGKOmqg8QdvprstNmWcHvnzJSE rAM3Te1UKUwLRcbMh5TRKdvqdaXju0oqQWA== 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=Y3q/Fike 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.167.48 (mail-lf1-f48.google.com); spf=pass smtp.mailfrom=andrey100100100@gmail.com smtp.helo=mail-lf1-f48.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=oqTA8/w7; x-me-sender=none; x-ptr=pass smtp.helo=mail-lf1-f48.google.com policy.ptr=mail-lf1-f48.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 uddttdesghhmrghilhdrtghomhenucggtffrrghtthgvrhhnpeffhedviedtkeelgeelvd ekgfeugfeiffeugfffvddvhefgffeitdehgfehfedujeenucfkphepvddtledrkeehrddu ieejrdegkedpkeehrddujeegrdduleelrdekvdenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepihhnvghtpedvtdelrdekhedrudeijedrgeekpdhhvghlohepmhgrihhl qdhlfhduqdhfgeekrdhgohhoghhlvgdrtghomhdpmhgrihhlfhhrohhmpeeorghnughrvg ihuddttddutddtuddttdesghhmrghilhdrtghomheq 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-lf1-f48.google.com; client-ip=209.85.167.48 Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (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:26:51 -0400 (EDT) (envelope-from andrey100100100@gmail.com) Received: by mail-lf1-f48.google.com with SMTP id g4so2026803lfv.9 for <9fans@9fans.net>; Sun, 19 Jun 2022 14:26:50 -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=P82/DCI0yx8fxIsmBZoGIUC+CkRzKo7T2b+spbrOCtw=; b=oqTA8/w70MJyN83aE9zeTAnTLq++Z/EcuS1kbc4/fIFKoYWtUF9FgJViqZiP/BiUqP 2r7pa7O9sZyui81Hv1Pi8jxBWpFcSEWlmCDulI6SDN2P7bnP9sPpb38KbY5/IVfiIn5Z kjXOp50LWtSrsmt+bMRZXt6P7gPBtcoc7JJrgdJAsdW8CGvyTDfY07cx5LZocnDyM6z2 KqduOdZmB/aKIKlFpU3uq01mnuL7AwmWELNcmkxt7uh/EZDYGZ0Ki1D9Bkn9XI8ov1rs dHF5SNfLocQUmLmyvScw3YTHQqaem7jEiZI4+aZYc7ZQrDCbnETDS7d/NsgZrvdveox9 FNjQ== X-Gm-Message-State: AJIora+dGmEsiv0WQru9xhQyBlm6J3zRjmzTkTEDPUSJxwFO/6ZvEb28 +bbtwPhYTCi6OsJTNTyF+ZytbU0oiws= X-Google-Smtp-Source: AGRyM1sPOcBsYXLcytA0PXWYJztCrEYfRtZoitNABJ7M0ZLivp8o1/0s2s0isWMUlVV3kW2KsP2U/g== X-Received: by 2002:a05:6512:260e:b0:47d:ae43:62b3 with SMTP id bt14-20020a056512260e00b0047dae4362b3mr11568237lfb.77.1655674009615; Sun, 19 Jun 2022 14:26:49 -0700 (PDT) Received: from [10.33.77.10] ([85.174.199.82]) by smtp.gmail.com with ESMTPSA id t9-20020a056512208900b0047255d2117bsm384410lfr.170.2022.06.19.14.26.48 for <9fans@9fans.net> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Jun 2022 14:26:49 -0700 (PDT) Message-ID: <714f4315abb5a095e98e8fbc8c1bd4dd031dee51.camel@gmail.com> Subject: Re: [9fans] syscall silently kill processes From: andrey100100100@gmail.com To: 9fans@9fans.net Date: Mon, 20 Jun 2022 00:26:48 +0300 In-Reply-To: <86055e9ba3dbe8ef06764d6d674830a8ec9404fa.camel@gmail.com> 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> <86055e9ba3dbe8ef06764d6d674830a8ec9404fa.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: 8b799444-f016-11ec-af14-c620a8d8cb6a Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UZmE2ODIzMDQ4YWQ5MGEyMS1NMDYxNTZhMjc1YzQxYWMxMDBkMTgz?= =?UTF-8?B?MTFiPg==?= 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:M06156a275c41ac100d18311b:1:z5QczL3zoIM7HNqMJUgRdawx_nmFUzT5hRVtzNk2Gjg =D0=92 =D0=9F=D0=BD, 20/06/2022 =D0=B2 00:22 +0300, andrey100100100@gmail.c= om =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > =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? >=20 > 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? >=20 >=20 >=20 > > 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. Channels are a good abstraction for exchanging data between processes. Even if not to use the libthread, I would have to (probably) write it. But yeah, maybe it's easier to do without it. > >=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 Regards, Andrej ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tfa6823048ad90a21-M06156= a275c41ac100d18311b Delivery options: https://9fans.topicbox.com/groups/9fans/subscription