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,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 6707 invoked from network); 28 Jun 2022 15:58:11 -0000 Received: from tb-ob21.topicbox.com (173.228.157.67) by inbox.vuxu.org with ESMTPUTF8; 28 Jun 2022 15:58:11 -0000 Received: from tb-mx0.topicbox.com (tb-mx0.nyi.icgroup.com [10.90.30.73]) by tb-ob21.topicbox.com (Postfix) with ESMTP id DE587325AC for ; Tue, 28 Jun 2022 11:58:09 -0400 (EDT) (envelope-from bounce.mM71941c1e8258c2d786a38352.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id 967F12A525FD; Tue, 28 Jun 2022 11:58: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=M7vGCzcG 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=crossd@gmail.com smtp.helo=mail-oa1-f49.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=mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type:list-help:list-id:list-post :list-subscribe:reply-to:content-transfer-encoding :list-unsubscribe; s=sysmsg-1; t=1656431889; bh=xuE3AiOs7fwWmkDC 7vYFMoYFz/Glh8IBcuPmNNQdjTI=; b=mEKt+EoIzoQT/uvdIrUQ+RCbZQT+Tb7U zywpNGaqNMAu66NOJ+B0+NdJsRssmDVud7FVTwXkJvZbJ7Sn3f4+RQisgJx+IntZ dvcvWzZ/nrAuqY1gYw7XDCdPQ7SqEqJ82lroL19KaERQoqmMIlBX7tHU9yDA2bD8 UzLPOBBiOeA= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1656431889; b=T7czpJt8oZw4Yyf7kdk0yyy/eYHT9nfsNqwfGXC/WpQ6pHzibs /1WNCEeXanlBjQ9K1nPE0JVYW4BXMIai4yLhXG75iKPKC8DSFvfaeIW/VDIoNlC/ m9YzhHd9f1G4q3/n1er+5ed13v07vUya9OyoADhojK6P2SMf19VtLrjcI= Authentication-Results: topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=M7vGCzcG 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=crossd@gmail.com smtp.helo=mail-oa1-f49.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-mx1.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=M7vGCzcG 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.160.49 (mail-oa1-f49.google.com); spf=pass smtp.mailfrom=crossd@gmail.com smtp.helo=mail-oa1-f49.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=MDAd63hg; x-me-sender=none; x-ptr=pass smtp.helo=mail-oa1-f49.google.com policy.ptr=mail-oa1-f49.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: alt3.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: alt3.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt2.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= mime-version:references:in-reply-to:from:date:message-id:subject :to:content-type:list-help:list-id:list-post:list-subscribe :reply-to:content-transfer-encoding:list-unsubscribe; s=dkim-1; t=1656431889; x=1656518289; bh=p/izAXLSo9FolCzytUvjmEl0aCiMDPn2 fQJ3Ep/pSz8=; b=aPNgGrvUo9YX9b5sDEl+tN03nPfrQBq1ht6j83fgwoIz5gxI yYsGj/uYZyX4HSDmwEtwlJxUiFpx9YAiU+kwBQqhOFZpbwDrOj7oBsh8o5zyYqLg SLPIOvPlGpnKWeCTqF5mex/GZXxZ5KXvl8BgFvb3iQjMeHnqdsU97hGWwH0= Received: from tb-mx1.topicbox.com (localhost.local [127.0.0.1]) by tb-mx1.topicbox.com (Postfix) with ESMTP id B3D19A15A9E for <9fans@9fans.net>; Tue, 28 Jun 2022 11:57:52 -0400 (EDT) (envelope-from crossd@gmail.com) Received: from tb-mx1.topicbox.com (localhost [127.0.0.1]) by tb-mx1.topicbox.com (Authentication Milter) with ESMTP id F220BDD2610; Tue, 28 Jun 2022 11:57:52 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1656431872; b=wTKw+rSrFiXul1oOKM+/CTi/y2hrFZKbg6InFL0794ur/ygNMh JwLEgXYOghvZ5wKXsw9COiGdYeTva5cenYz4gk/y+120HPirUl8qUYDf5jda3ERV qLpt7mu5fShDU4IqS63MJia17zdRqABpRjdFK2aLfR92KmTaHWSGD9a3EVo44eyJ oNdxONx31rwtv5uRlHwf6SK0el9obV53m0NWidPnPiKeCYwOu+s6Az/33+GrrCsC xur6xzQHqk4960LW2yzkvzRlxAlWU6hWa9lzaPkniR13eON9344JWEpwk3eJ6AOj pti5LmhzZdQ6csyTwR3CGppFCglE/oFFgzYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type; s=arcseal; t=1656431872; bh=w6Uii+T9yCaLGw/J5nKhStG3RCqi6IjK3wwq69gQOfc=; b=idDufaxCSzIw U2avSb+jZbF/RKKGWyZRuV9R6K5UgpuCoALbZLcAfd2PukbSF84Oixi5J7Hvldec EUTm6+siB5yRHz3P2j9wI4VXrh81VEutvPXUum69VqvgfDPz6ib1BJHUXVZjEKeI 7i2WZTGmnNY7IHhkpLTqU44UAEMZvnvOBgVf2ZSkoHPXVmyh6PGihuRhUJBNB8IL dXsX6RLlxMYZAgdPTAyLxKvfUZ5bipx5iognUp3m5YeCn9qE/zB0EGWAYfmeDxiv OznB7ZlktHE3o9HMp65ZAhm9qYmS4gPX2yzrA03Ol2Z8bRIOEZACrninYcxPCp9H AiJ3mwgLkQ== ARC-Authentication-Results: i=1; tb-mx1.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=M7vGCzcG 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.160.49 (mail-oa1-f49.google.com); spf=pass smtp.mailfrom=crossd@gmail.com smtp.helo=mail-oa1-f49.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=MDAd63hg; x-me-sender=none; x-ptr=pass smtp.helo=mail-oa1-f49.google.com policy.ptr=mail-oa1-f49.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: alt3.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: alt3.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt2.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: gggruggvucftvghtrhhoucdtuddrgedvfedrudegjedgleeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpeggfhgjhf ffkffuvfgtsehttdertddttdejnecuhfhrohhmpeffrghnucevrhhoshhsuceotghrohhs shgusehgmhgrihhlrdgtohhmqeenucggtffrrghtthgvrhhnpeehvddtgffghefgudehie fhvefffeegudeigedvudegveefgfdulefgvddvhfevudenucfkphepvddtledrkeehrddu iedtrdegleenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvtd elrdekhedrudeitddrgeelpdhhvghlohepmhgrihhlqdhorgduqdhfgeelrdhgohhoghhl vgdrtghomhdpmhgrihhlfhhrohhmpeeotghrohhsshgusehgmhgrihhlrdgtohhmqe X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (gmail.com ... _spf.google.com: Sender is authorized to use 'crossd@gmail.com' in 'mfrom' identity (mechanism 'include:_netblocks.google.com' matched)) receiver=tb-mx1.topicbox.com; identity=mailfrom; envelope-from="crossd@gmail.com"; helo=mail-oa1-f49.google.com; client-ip=209.85.160.49 Received: from mail-oa1-f49.google.com (mail-oa1-f49.google.com [209.85.160.49]) (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>; Tue, 28 Jun 2022 11:57:52 -0400 (EDT) (envelope-from crossd@gmail.com) Received: by mail-oa1-f49.google.com with SMTP id 586e51a60fabf-101ec2d6087so17634582fac.3 for <9fans@9fans.net>; Tue, 28 Jun 2022 08:57:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=w6Uii+T9yCaLGw/J5nKhStG3RCqi6IjK3wwq69gQOfc=; b=MDAd63hg6T+9A35EZHrhdkyrZYuOLISxb4lG0ouctLdIC/jZyGNgzY/4h7mC0V67qn hfH1WGjpXCfNbtdLXdnwQ/Lm/JhnOCE/7WUcy4M13wr7ovX6Pjn22EQRpSmdMob/6Vow qYIAD3ELmr/VzyxZxTiXbZWcxLS4L09jfg2MWFG2jkR6FOUb891LwO0+LvHU53g8lkQ6 FG7psFPU0CL2q0EKXXjLb21nwPtaH/MFr1UH0h6hk4INrWJ7md8pQBWKcDfzso9iaU2m pommuzvMZmvQ2pEfno1pmaeFiPT8uXnon2rXqeTrdGBXneXUq1Qe62F5OMP+JnSqTDq/ d3tw== X-Gm-Message-State: AJIora9075zj3/yrtP4f/OkQZcm6oZIUccSDSCDmmYfERcC0PiANun8E +TXZXJv/LB8mgebM0WqpyeMhtoGjYZ+jacGoIp60YqL1 X-Google-Smtp-Source: AGRyM1tDnTrll0igx0V45D133/4GkQz7k6Hs9ym7akfInQUcqFoBI3oyPe3J9F70Lao0v4gTY92V2U/Fr9YVqb/fll0= X-Received: by 2002:a05:6870:32d1:b0:101:dc8:f213 with SMTP id r17-20020a05687032d100b001010dc8f213mr169206oac.49.1656431871353; Tue, 28 Jun 2022 08:57:51 -0700 (PDT) MIME-Version: 1.0 References: <7eea6efa-711a-31dc-031-dc5c2eddce3d@SDF.ORG> <7f0986f-5958-de7-68b6-8cd49f94e191@SDF.ORG> <24424f11-e49e-db53-4248-571e6424a2dd@SDF.ORG> In-Reply-To: <24424f11-e49e-db53-4248-571e6424a2dd@SDF.ORG> From: Dan Cross Date: Tue, 28 Jun 2022 11:57:15 -0400 Message-ID: Subject: Re: [9fans] Re: _threadmalloc() size>100000000; shouldn't be totalmalloc? To: 9fans <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 14224bb6-f6fb-11ec-beb1-a4509e3e3cdc Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UZTFiZThkYzcyNzM4MjU4ZC1NNzE5NDFjMWU4MjU4YzJkNzg2YTM4?= =?UTF-8?B?MzUyPg==?= 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:M71941c1e8258c2d786a38352:1:bvowGa9CIkbPIQl-cDHu-l-NEoac1vkIneHeXUHAjO0 On Tue, Jun 28, 2022 at 11:38 AM adr wrote: > On Tue, 28 Jun 2022, Dan Cross wrote: > > You mean by `newthread` and `chancreate`? Those are part of the > > thread library. Notice that there are no callers outside of /sys/src/li= bthread. > > What I mean is that "size" in _threadmalloc() will be set by those > functions with values directly given by the programmer, with this > limit not documented. Like I said earlier, plan9 had the luxury of being a research system. It has brilliant ideas, but mostly trapped inside of research-quality code. If you look just below the surface, there are arbitrary limits and edge cases all over the system. It's honestly surprising that it works as well as it does. That this particular limit is not documented isn't terribly surprising. Most of these limits are undocumented. I doubt anyone ever thought to create a 100MB stack or channel when that code was written. > I wouldn't call a function wich is part of an api internal. An > internal function, for me, is a function inaccesible for the > programmer, like _threadmalloc itself. > > By the way, you mean threadcreate, don't you? No, I meant the direct calls to `_threadmalloc`. But sure, we can say `theadcreate` since that just expands to a call to `newthead` and `newthread` is static. We may as well throw `proccreate` into the mix too as it also indirectly calls `_threadmalloc` via `_newproc`. For that matter, libthead's `main` also calls `_threadmalloc`. I'm not sure if that changes the point, though. - Dan C. ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Te1be8dc72738258d-M71941= c1e8258c2d786a38352 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription