Re: prefaulting MAP_ANONYMOUS pages

2007-12-30 Thread Matthew Dillon
:1) Lots of page faults, which drop performance by a factor of 10 :compared to the case where everything is faulted in. : :... :Is there a way to achieve this that I am overlooking? If not can :someone give me some advice about what is needed? : :Kris The main problem here is that the backi

Re: prefaulting MAP_ANONYMOUS pages

2007-12-28 Thread Kris Kennaway
Kris Kennaway wrote: I am trying to optimize a malloc-based benchmark that is mmapping anonymous memory (via mmap) s/mmap/malloc/ ;) Kris ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubs

prefaulting MAP_ANONYMOUS pages

2007-12-28 Thread Kris Kennaway
I am trying to optimize a malloc-based benchmark that is mmapping anonymous memory (via mmap) and then eventually taking a page fault on every page that was allocated. This is pretty inefficient for two reasons: 1) Lots of page faults, which drop performance by a factor of 10 compared to the