Author: Roberto Waldteufel
Date: 16:39:40 07/23/98
Go up one level in this thread
On July 22, 1998 at 19:28:59, Tom Kerrigan wrote: >On July 22, 1998 at 13:05:45, Roberto Waldteufel wrote: > >>Thank you, this is very enlightening. It hadn't occurred to me that an OS could >>be so dumb, but then I guess this is Brand M we are talking about here. Do you > >Sorry to rain on your Microsoft-bashing parade, but the practice isn't really >"dumb." If you use a few programs, pages are going to be swapped in and out left >and right, and chances that you'll have 50 MB of contiguous pages swapped in >right when you run your chess program are slim to none. > >>know of any good way to avoid this problem? I suppose I could make the program >>access each hash table entry before the game begins, but then the user would >>have to wait for all the swapping before commencing play. > >Well, the end user can either wait before he starts the game or after. There are >pros and cons to each, but to me, the decision is a no-brainer: swap your >program in, THEN run it. > >Cheers, >Tom Hi Tom, When I run my program I usually make sure I have no other programs running concurrantly specifically because I want my program to have use of all my system's CPU and memory resources. I even run full screen in text mode to avoid the graphics overhead of Windows. When there are no other applications open, it seems strange to me that Windows does not automatically allocate RAM instead of slow-access disc space. I could understand it if I were multitasking other programs at the same time, but I am careful not to do this. Is there any way to instruct Windows to swap in the RAM before executing, or do I really have to resort to writing some unnecesary value into tens of millions of memory locations at the beginning of my program to instigate the swapping before the game begins? Best wishes, Roberto
This page took 0.03 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.