On my server side I plan on loading as much resources into ram that will fit of course with an order of priority filling all the available ram. I want certain resources to be available as fast as possible trying to get <= 1ms round trip over gigabit lan. Im working on some hard numbers but the server im using has an hdd not a ssd so resources will be delayed by 7-15ms im working on storing everything in ram now and paging is something that comes to mind that will get in the way.
Does paging affect your server resources?
Is there a way to prevent paging?
I had a thought of reading the variables every so often tricking the computer they are in use not sure if that will work or might even be optimized out if its not something complicated so is this route feasible?
Is there a generic way rather than os specific I know different oses are going to handle thing differently but is there something that works most of the time at least?
If I have to go os specific I found MAP_LOCKED for linux probably mac but I havent found a way to do this in windows which is going to be the main target unfortunately
Also getting picky I dont want to prevent paging on the whole process just certain variables