Years ago I asked the question and received the answer in this thread - http://lowendtalk.com/discussion/893/how-do-you-check-the-memory-allocation-is-correct.
The website is currently not responding. Is there a copy or a similar script available somewhere else?