Re: Memory trashing? Virtual memory question.

Liste des GroupesRevenir à cl forth 
Sujet : Re: Memory trashing? Virtual memory question.
De : mhx (at) *nospam* iae.nl (mhx)
Groupes : comp.lang.forth
Date : 23. Sep 2024, 20:10:08
Autres entêtes
Organisation : novaBBS
Message-ID : <0cc201ffde92dc66ab35668798903706@www.novabbs.com>
References : 1 2 3
User-Agent : Rocksolid Light
On Mon, 23 Sep 2024 18:19:44 +0000, minforth wrote:

On Mon, 23 Sep 2024 17:51:58 +0000, mhx wrote:
>
I don't know (yet) how it works in Linux, but in Windows there
is something called 'Working-Set'. If I exceed that value,
things slow down.
>
It is quite difficult (if not impossible) to increase the
Working-Set without extensive knowledge (believe me, I tried).
>
Have you tried the SetProcessWorkingSetSize function
(memoryapi.h)?
>
It sets the minimum and maximum working set sizes for the
specified process, they say...
Yes, but...
"The handle must have the PROCESS_SET_QUOTA access right.
For more information, see Process Security and Access Rights"
And there the rabbit hole opens...
It does appears to be better documented than the last time
I looked:
"PROCESS_SET_QUOTA (0x0100) Required to set memory limits using
SetProcessWorkingSetSize."
   ... should be used with
"To retrieve a process's security descriptor, call the
GetSecurityInfo function. To change a process's security
descriptor, call the SetSecurityInfo function."
I expect it wants the executable run by an Administrator,
but that would only be a temporary nuisance.
-marcel

Date Sujet#  Auteur
23 Sep 24 * Re: Memory trashing? Virtual memory question.4mhx
23 Sep 24 `* Re: Memory trashing? Virtual memory question.3minforth
23 Sep 24  `* Re: Memory trashing? Virtual memory question.2mhx
24 Sep 24   `- Re: Memory trashing? Virtual memory question.1minforth

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal