Sujet : Re: Memory trashing? Virtual memory question.
De : anton (at) *nospam* mips.complang.tuwien.ac.at (Anton Ertl)
Groupes : comp.lang.forthDate : 23. Sep 2024, 17:48:21
Autres entêtes
Organisation : Institut fuer Computersprachen, Technische Universitaet Wien
Message-ID : <2024Sep23.184821@mips.complang.tuwien.ac.at>
References : 1
User-Agent : xrn 10.11
albert@spenarnc.xs4all.nl writes:
Now look
>
OK
MARK-TIME HERE 1,000,000,000 ERASE ELAPSED .mS
244.344mS OK
MARK-TIME HERE 8,000,000,000 ERASE ELAPSED .mS
67782.522mS OK
>
Apparently zeroing a gigabyte takes approximately a quarter of a second.
>
8 Gigabyte would take 2 seconds. Although the whole program fits
comfortably in RAM, it takes 30 times longer.
What gives?
You obviously have other stuff in more than 8GB of RAM, and paging
enough of that out to accomodate your Forth process takes its time (or
it could also swap out parts of the memory of the Forth system).
That's why I consider swapping pretty useless these days. If RAM is
too small for your needs, buy more RAM.
- anton
-- M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.htmlcomp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html New standard: https://forth-standard.org/ EuroForth 2024: https://euro.theforth.net