home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.forth      Forth programmers eat a lot of Bratwurst      117,927 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 116,827 of 117,927   
   mhx to All   
   Re: Memory =?UTF-8?B?dHJhc2hpbmc/IFZpcnR   
   30 Sep 24 15:21:57   
   
   From: mhx@iae.nl   
      
   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   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca