Sujet : Re: Memory trashing? Virtual memory question.
De : mhx (at) *nospam* iae.nl (mhx)
Groupes : comp.lang.forthDate : 30. Sep 2024, 16:21:57
Autres entêtes
Organisation : novaBBS
Message-ID : <d039b668ce34bd3330fcb4497d8649b7@novabbs.com>
References : 1 2 3 4
User-Agent : Rocksolid Light
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