Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #132376

Re: Memory trashing? Virtual memory question.

From mhx@iae.nl (mhx)
Newsgroups comp.lang.forth
Subject Re: Memory trashing? Virtual memory question.
Date 2024-09-30 21:50 +0000
Organization novaBBS
Message-ID <c6ae01e82c7ebbf4ea67f02770d47778@novabbs.com> (permalink)
References (1 earlier) <nnd$56a65fea$30328e9e@fe5292c2aea63e4d> <f9e2a709183796c9cee0d60d24b0cf89@www.novabbs.com> <nnd$70fe424a$27f9d60b@74640bc44a399edf> <d039b668ce34bd3330fcb4497d8649b7@novabbs.com> <912001cc0472ced53fde294b4fe9df82@novabbs.com>

Show all headers | View raw


Bug found - the units were wrong.

iSPICE> 13 tt ( allocate 13 GB )
1.000 seconds elapsed. ok
iSPICE> 13 tt .TICKER-INFO
1.113 seconds elapsed.
AMD Ryzen 7 5800X 8-Core Processor, timer & PROCESSOR-CLOCK of 4192MHz
Peak WorkingSetSize         = 13982 MB
Current WorkingSetSize      = 67 MB
Total memory size           = 31 GB
Available memory size       = 17 GB
Total paged memory size     = 40 GB
Available paged memory size = 16 GB

I now use ...
SetProcessWorkingSetSizeEx(
 hProcess,
 1000000000,	/* dwMinimumWorkingSetSize 1GB */
 16000000000,	/* dwMaximumWorkingSetSize 16GB */
 QUOTA_LIMITS_HARDWS_MAX_DISABLE /* Flags */
);

This minimizes the time for a/the first (large)
allocation and discourages the OS to swap out
deallocated memory.

-marcel

Back to comp.lang.forth | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Memory trashing? Virtual memory question. albert@spenarnc.xs4all.nl - 2024-09-23 14:18 +0200
  Re: Memory trashing? Virtual memory question. David Schultz <david.schultz@earthlink.net> - 2024-09-23 08:27 -0500
    Re: Memory trashing? Virtual memory question. albert@spenarnc.xs4all.nl - 2024-09-24 11:47 +0200
      Re: Memory trashing? Virtual memory question. Schlomo Goldberg <schlomo.goldberg@mailinator.com> - 2024-10-10 19:38 +0000
        Re: Memory trashing? Virtual memory question. albert@spenarnc.xs4all.nl - 2024-10-11 10:37 +0200
  Re: Memory trashing? Virtual memory question. anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2024-09-23 16:48 +0000
    Re: Memory trashing? Virtual memory question. albert@spenarnc.xs4all.nl - 2024-09-24 14:33 +0200
      Re: Memory trashing? Virtual memory question. Paul Rubin <no.email@nospam.invalid> - 2024-09-24 11:11 -0700
  Re: Memory trashing? Virtual memory question. mhx@iae.nl (mhx) - 2024-09-23 17:51 +0000
    Re: Memory trashing? Virtual memory question. minforth@gmx.net (minforth) - 2024-09-23 18:19 +0000
      Re: Memory trashing? Virtual memory question. mhx@iae.nl (mhx) - 2024-09-23 19:10 +0000
        Re: Memory trashing? Virtual memory question. minforth@gmx.net (minforth) - 2024-09-24 07:47 +0000
  Re: Memory trashing? Virtual memory question. albert@spenarnc.xs4all.nl - 2024-09-24 14:20 +0200
    Re: Memory trashing? Virtual memory question. antispam@fricas.org (Waldek Hebisch) - 2024-09-30 02:40 +0000
    Re: Memory trashing? Virtual memory question. mhx@iae.nl (mhx) - 2024-09-30 07:26 +0000
      Re: Memory trashing? Virtual memory question. albert@spenarnc.xs4all.nl - 2024-09-30 11:53 +0200
        Re: Memory trashing? Virtual memory question. mhx@iae.nl (mhx) - 2024-09-30 15:21 +0000
          Re: Memory trashing? Virtual memory question. mhx@iae.nl (mhx) - 2024-09-30 17:42 +0000
            Re: Memory trashing? Virtual memory question. mhx@iae.nl (mhx) - 2024-09-30 21:50 +0000
      Re: Memory trashing? Virtual memory question. John Ames <commodorejohn@gmail.com> - 2024-09-30 07:54 -0700

csiph-web