Bill Allombert on Tue, 12 Sep 2023 14:56:20 +0200
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: threadsizemax management
|
- To: pari-users@pari.math.u-bordeaux.fr
- Subject: Re: threadsizemax management
- From: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>
- Date: Tue, 12 Sep 2023 14:51:26 +0200
- Arc-authentication-results: i=1; smail; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1694523078; c=relaxed/relaxed; bh=0kCo/TbAiqUeiukigsiLxa26qwh5xwGkkwOeDeEgVek=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:Mail-Followup-To: References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; b=EcjaptlzxKWtIH7XKAGotSWURol6v8hr2xG88jKbXmSXWYukYitynCgJx+GnBPQJxAnUWMm9d13/H4HmuUWw718owYxVl7v87BgQNBDHXNi+/pIwcTlBNKbdao8V0qK6un10b4bnk5DTqkxKEE7ErWNNq3KyIRbgukWIuI3L4lE0npz4VqbxfV9nlzqIhw/N/mmwfk5ekxeqI1SMFj3ICOCX4fcg/0WMpmEX97BEkglFTLgYuVkYd5DeOBAtQItdx/8rhgaSOaqtbSI0j1IdllH01ve8cpXnaLsZ4UOQUf699iHJ1UIuxWlvwauSgimntoV+Wt0GkrfFMCUPmwFeOyqFwV97qWvGl5/qgtfcbr2RuMcTw+Qy/UF5HO+wpB96HJlWMmwIfzltXp643RORxOLEmnVrZdpiy7e04Wk7DskLZ/HiXlHQim+aCsEW4xjTy2KRcrUuV0WvOGzHSSKTOzg7L4S40R3z+4fyT0qZlrLADuVgmM+I7UAA0RVafEnfr+4YkfXDgPQabWACSyq1uYBm6DaMCP9LUrx3w6UwXwXerBoBArWBdm8uka35cU8KiaCZyyta/pGHDvCdZLXvlluXHiFXEDpdQPOvfoxM+f8pllBLvaYkR/QYcNPsVfhFVhfO9iYai4V1aeWURvivjS9ZXpjt6fBDeqwnuT2QBT8=
- Arc-seal: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1694523078; cv=none; b=FW2sxVvgLuRBwCBDh/R2Jnp4PmoZCmnaRjWt5nY9JY7PVvjC8Rxpy0+qsZvOT5PP/xrnrSkXJmflymHV1GW37ODcTfXzEEXY3lu03U/LvNTo3Hs4W2Ik77ItBnImcuFZxJvvvYATzzS03x4pMx6BcgpJAzs8qMpD5tf2Mo+BKpiAqaeya7sAw4bu95m4f8mpokT6RQWW9bC8yantbaaJ/c2txl5l7awVxa3GVELwHUYsYrh8zyfAiR2kBRZzmIN0ZDda81SLNcHCirvsNU+/rqG5Iz7gwuECh7kxIdBBs51Jw0PkUGOVsJ5iL9GTr1xiCfX0pyy0n3PUqk3wScmPf6Ivhibh4DPnfR8kjjPjJYloZ4FB+G5oOMJ06yUDrpHNxQ5we7fVqJf8YQGsLE3hM5caoRL2xV88jOLdO0K5wiYHNEbcevM1oG37To6OykLv39wWxlcHzjyUVboL91urQEumKL12g7O/02Lu7jdu4a2GvZ+CsCKi45agqEFigk4dxj6hnFCh6dvbH+z0+XFBrsMWP+t0bea00cceJtBrN6DarOYx2djyr+SYXluuISd4figlJxTZHTfxBcW3K8hnlSznIXe4KFR9iGs2x5Yw5Zq5H0iaB5OHmdCF4qAoq3GMVq9auBkcaGFYP6G0LY/F8HhWMEM0mn8GUSpTsacwxNo=
- Authentication-results: smail; dmarc=none header.from=math.u-bordeaux.fr
- Authentication-results: smail; arc=none
- Delivery-date: Tue, 12 Sep 2023 14:56:20 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=math.u-bordeaux.fr; s=2022; t=1694523078; bh=0kCo/TbAiqUeiukigsiLxa26qwh5xwGkkwOeDeEgVek=; h=Date:From:To:Subject:References:In-Reply-To:From; b=bC+Ykn7VK3Rh1w6M6UlVirMkEQZcVjZ1Z7ZankptXbNDr4Ysnhw3J6yTGkFYAohj6 BlmCfNkZ1mtGo0PqYh4MFndpHN0cTLvVy/s8a2QfZXJl3//MIHRpfuM6DH3R/x6frX lY0aH6ZgNL7uHTlobWn0L0qa0A6TUy7/kcagGQOTpj2fa1c0k0czSgKPZ/X5Jr3Std E+IFRgrjCbXtzV7HFbO5zh1wrmixRZCEL1bd9a28Ni/f/jWdWu8Tsyph9HeJO39EZj dU6Qb4QWu65cFF/3lzJhEQT2YLB623YPqQ5ULbyjgrdFM2vj4twvtIYaPMZBhH4+vW 4TPDmT7/XD6bs4LarNtH00VwKrXaX8iHsUwtrXJYj+2ObUGT7j1PcB2yjb0jvHGzhS lZiAgJZr/jCDZbfS4jb9XKI+vr8uHdu22AGPRqECVF7+DAO1f0ost7N40N+5HN1qYB r1OXAD2yOFeOj1TDW0+7lDwrrqnGgtBMRnUol/UyzsY9VPiGM9zkvC1OtL2qFwoGXl DHZdCsgJyz8cTGtVAluzrv/XItQ55vPtLOHzestnIAum8TdbaWiftkJoEpH24Px8od Abw6iIqNP/5qHMUHG/IDQlTJ/uRZPqXoPZM5IOvO321sMjcgDxib3GGpsO5qB65I/u +cR0b5ZG+sBDL9C5aUcJsITA=
- In-reply-to: <106e18be-371b-dd75-3cc6-ae0870b461e1@filmsons.com>
- Mail-followup-to: pari-users@pari.math.u-bordeaux.fr
- References: <106e18be-371b-dd75-3cc6-ae0870b461e1@filmsons.com>
On Tue, Sep 12, 2023 at 02:24:55PM +0200, Jean-Luc Arnaud wrote:
> Hi all,
>
> I'm quite sure htreadsizemax is managed on a per thread basis, isn't?
Each threads has a separate stack which can increase independantly of the
other, yes.
> I have a script using 2 threads, and only one generates Warning: increasing
> size stack to...
>
> So, I think it's possible to set up threadsizemax to a larger value than the
> full amount of available RAM. Am i right?
>
> For example, I have a Mac with 64 GB or RAM. Setting up threadsizemax to 30
> GB would work as long as only 2 threads increase to 30 GB.
Yes on Linux. On Macos, It depends how Macos handles overcommit.
> What happens if a third thread tries to increase its stack? I guess this
> will generate a "Memory is full" or "No more memory available" error. Right?
Yes.
> And what if a thread terminates? Will its stack be freed, allocating more
> memory for other threads?
No. The memory for all threads is freed when the last thread end.
Cheers,
Bill