Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #132312
| From | mhx@iae.nl (mhx) |
|---|---|
| Newsgroups | comp.lang.forth |
| Subject | Re: Memory trashing? Virtual memory question. |
| Date | 2024-09-23 19:10 +0000 |
| Organization | novaBBS |
| Message-ID | <0cc201ffde92dc66ab35668798903706@www.novabbs.com> (permalink) |
| References | <nnd$0b021237$626a8881@55133cc8c31c4c51> <878398f7847a51accf2992fe65b9c886@www.novabbs.com> <0e358bb5b5542ee537b5cc96e11208a3@www.novabbs.com> |
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
Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar
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