Re: Paul: Win10 Laptop Using Hard Disk As Memory!

JJ <[email protected]> Sat, 4 Dec 2021 13:12:46 +0700
Newsgroups alt.computer
Organization Aioe.org NNTP Server
Message-ID <[email protected]>
On Fri, 3 Dec 2021 13:34:09 -0500, Paul wrote:
> 
> If I apply the memory squeezing line, the machine launches
> programs "almost as fast as a real computer". It's sad really.

That's due to memory block fragmentation. That tool allocates multiple
non-swappable continous memory block as many and as large as possible. It
forces all swappable memory blocks in RAM of other applications to be moved
into paging file.

When the memory is released, it leaves large continuous free memory spaces.
i.e. it preallocates continuous free memory space. So the system doesn't
need to move swappable memory blocks in RAM when loading big a application,
because there's enough continuous free memory space already.

So, even if there's enough free memory space, it doesn't mean that it has
enough continuous free memory space for an application if it needs one. If a
continous memory space is required and there is not free continuous memory
large enough for it, memory swapping will occur to make the needed
continuous memory space - and that will add more time.

When free continuous free space can not be achieved, the continuous memory
allocation will fail. However, the system will report a generic "not enough
memory" error message, which is too ambiguous. It is why sometimes big
applications - usually games, complain that there isn't enough memory even
though the user see that there's enough free memory.