Path: csiph.com!weretis.net!feeder9.news.weretis.net!i2pn.org!i2pn2.org!.POSTED!not-for-mail From: mhx@iae.nl (mhx) Newsgroups: comp.lang.forth Subject: Re: Memory =?UTF-8?B?dHJhc2hpbmc/IFZpcnR1YWwgbWVtb3J5IHF1ZXN0aW9uLg==?= Date: Mon, 30 Sep 2024 21:50:12 +0000 Organization: novaBBS Message-ID: References: <912001cc0472ced53fde294b4fe9df82@novabbs.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: i2pn2.org; logging-data="13672"; mail-complaints-to="usenet@i2pn2.org"; posting-account="t0bSWFIQDvYvkkhDiPIIv6byulC6WbSEwXWMJpxc4k0"; User-Agent: Rocksolid Light X-Spam-Checker-Version: SpamAssassin 4.0.0 X-Rslight-Posting-User: 59549e76d0c3560fb37b97f0b9407a8c14054f24 X-Rslight-Site: $2y$10$PzFGVjemZux8mJrbK6dp2eTxmk7b6ujjud/SaszPPc6fm1EiWVFRi Xref: csiph.com comp.lang.forth:132376 Bug found - the units were wrong. iSPICE> 13 tt ( allocate 13 GB ) 1.000 seconds elapsed. ok iSPICE> 13 tt .TICKER-INFO 1.113 seconds elapsed. AMD Ryzen 7 5800X 8-Core Processor, timer & PROCESSOR-CLOCK of 4192MHz Peak WorkingSetSize = 13982 MB Current WorkingSetSize = 67 MB Total memory size = 31 GB Available memory size = 17 GB Total paged memory size = 40 GB Available paged memory size = 16 GB I now use ... SetProcessWorkingSetSizeEx( hProcess, 1000000000, /* dwMinimumWorkingSetSize 1GB */ 16000000000, /* dwMaximumWorkingSetSize 16GB */ QUOTA_LIMITS_HARDWS_MAX_DISABLE /* Flags */ ); This minimizes the time for a/the first (large) allocation and discourages the OS to swap out deallocated memory. -marcel