| Deutsch English Français Italiano |
|
<2024Sep23.184821@mips.complang.tuwien.ac.at> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: anton@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups: comp.lang.forth
Subject: Re: Memory trashing? Virtual memory question.
Date: Mon, 23 Sep 2024 16:48:21 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 27
Message-ID: <2024Sep23.184821@mips.complang.tuwien.ac.at>
References: <nnd$0b021237$626a8881@55133cc8c31c4c51>
Injection-Date: Mon, 23 Sep 2024 18:51:47 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="223f54ca6da4b49a5335d1e89067df21";
logging-data="2937101"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/lAjO1QDU6V9HM0hdsj6pS"
Cancel-Lock: sha1:UQxayAYEBXr6h9vJ5UK+YtMZJLk=
X-newsreader: xrn 10.11
Bytes: 1849
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.html
comp.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