On Saturday 20 August 2005 23:52, Robert Paulsen wrote:
Simply allocating the memory does not cause the swapper to be used. Each page of the memory must be also touched.
One also has to declare all variables one uses, and return a value at the end of the program, and change the permissions of the program to allow execution, and.......
Then, there will still not be much activity if the memory is not touched repeatedly, especially if you want to see both swap in and swap out.
That wasn't the object of the exercise at all. I said if you wanted to see if the swap is actually working, not how well it's working, or how performant it is, or how intelligent the algorithm is. I said it was an interesting program, but just to see if swap is actually working, it's overkill