Memory Allocation (was Re: binary data files)

Henry Spencer henry at utzoo.uucp
Sat May 6 03:19:23 AEST 1989


In article <11486 at ulysses.homer.nj.att.com> kpv at ulysses.homer.nj.att.com (Phong Vo[drew]) writes:
>... Worse than that
>is wasted time due to the number of page faults when data are accessed frequently.
>This is a subtlety that is frequently missed when people run tests on malloc.

If your system is properly designed, the effect is not to run up the page
fault rate, but to increase the demand for physical memory.  (If the
system is not properly designed, or is short of physical memory, you have
problems that malloc cannot fix.)  Frequently-accessed data should be in
physical memory and hence should not fault.
-- 
Mars in 1980s:  USSR, 2 tries, |     Henry Spencer at U of Toronto Zoology
2 failures; USA, 0 tries.      | uunet!attcan!utzoo!henry henry at zoo.toronto.edu



More information about the Comp.lang.c mailing list