| Deutsch English Français Italiano |
|
<d039b668ce34bd3330fcb4497d8649b7@novabbs.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!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 15:21:57 +0000 Organization: novaBBS Message-ID: <d039b668ce34bd3330fcb4497d8649b7@novabbs.com> References: <nnd$0b021237$626a8881@55133cc8c31c4c51> <nnd$56a65fea$30328e9e@fe5292c2aea63e4d> <f9e2a709183796c9cee0d60d24b0cf89@www.novabbs.com> <nnd$70fe424a$27f9d60b@74640bc44a399edf> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: i2pn2.org; logging-data="4166830"; mail-complaints-to="usenet@i2pn2.org"; posting-account="t0bSWFIQDvYvkkhDiPIIv6byulC6WbSEwXWMJpxc4k0"; User-Agent: Rocksolid Light X-Rslight-Site: $2y$10$zWVgbIxxPdj5D6M41sm87.xdMI8q4Kz.7AAqAyv6G6AziErAqeOc. X-Rslight-Posting-User: 59549e76d0c3560fb37b97f0b9407a8c14054f24 X-Spam-Checker-Version: SpamAssassin 4.0.0 Bytes: 3414 Lines: 64 On Mon, 30 Sep 2024 9:53:32 +0000, albert@spenarnc.xs4all.nl wrote: I played around with it some more on Windows 11. FORTH> .TICKER-INFO AMD Ryzen 7 5800X 8-Core Processor, timer & PROCESSOR-CLOCK of 4192MHz Peak WorkingSetSize = 650 kB Current WorkingSetSize = 631 kB Total memory size = 31 GB Available memory size = 16 GB ok FORTH> 0 VALUE am1 ok FORTH> TIMER-RESET #2000000000 ALLOCATE ?ALLOCATE TO am1 .ELAPSED am1 FREE ?ALLOCATE 0.215 seconds elapsed. ok FORTH> TIMER-RESET #2000000000 ALLOCATE ?ALLOCATE TO am1 .ELAPSED am1 FREE ?ALLOCATE 0.155 seconds elapsed. ok Faster the second time. FORTH> TIMER-RESET #8000000000 ALLOCATE ?ALLOCATE TO am1 .ELAPSED am1 FREE ?ALLOCATE 0.902 seconds elapsed. ok FORTH> TIMER-RESET #8000000000 ALLOCATE ?ALLOCATE TO am1 .ELAPSED am1 FREE ?ALLOCATE 0.616 seconds elapsed. ok FORTH> TIMER-RESET #8000000000 ALLOCATE ?ALLOCATE TO am1 .ELAPSED am1 FREE ?ALLOCATE 0.583 seconds elapsed. ok FORTH> TIMER-RESET #8000000000 ALLOCATE ?ALLOCATE TO am1 .ELAPSED am1 FREE ?ALLOCATE 0.586 seconds elapsed. ok With 8 GB the OS apparently is busy in the background and takes 4x as long, a linear increase. FORTH> TIMER-RESET #1000000000 ALLOCATE ?ALLOCATE TO am1 .ELAPSED am1 FREE ?ALLOCATE 0.076 seconds elapsed. ok If we go back to 1 GB the memory/diskspace is apparently pooled. FORTH> TIMER-RESET #12000000000 ALLOCATE ?ALLOCATE TO am1 .ELAPSED am1 FREE ?ALLOCATE 1.120 seconds elapsed. ok The timing suggests that the pool is increased, not build from 0. FORTH> TIMER-RESET #12000000000 ALLOCATE ?ALLOCATE TO am1 .ELAPSED am1 FREE ?ALLOCATE 0.908 seconds elapsed. ok FORTH> TIMER-RESET #12000000000 ALLOCATE ?ALLOCATE TO am1 .ELAPSED am1 FREE ?ALLOCATE 0.881 seconds elapsed. ok FORTH> TIMER-RESET #12000000000 ALLOCATE ?ALLOCATE TO am1 .ELAPSED am1 FREE ?ALLOCATE 0.883 seconds elapsed. ok FORTH> .TICKER-INFO AMD Ryzen 7 5800X 8-Core Processor, timer & PROCESSOR-CLOCK of 4192MHz Peak WorkingSetSize = 12075 kB Current WorkingSetSize = 631 kB Total memory size = 31 GB Available memory size = 16 GB The WorkingSetSize reflects the program's size + allocated memory. AFAIR, this was a lot worse a few years ago. Mysteriously, available memory size is still 16 GB. -marcel