Re: [perf-discuss] mmap problem

2007-09-21 Thread Wee Yeh Tan
On 9/21/07, love_code meta <[EMAIL PROTECTED]> wrote: > Now I 'm testing mmap function, and my pagesize is 4k bytes. After mapping > 8k virtual memory, by dtrace I find there is only one pagefault when I > access memory like that s[0] , s[4096]. > > The following is my test spteps. > 1. fd = open(

Re: [perf-discuss] mmap problem

2007-09-21 Thread [EMAIL PROTECTED]
What are you using in dtrace to count page faults? max love_code meta wrote: > Hi All > > Now I 'm testing mmap function, and my pagesize is 4k bytes. After > mapping 8k virtual memory, by dtrace I find there is only one > pagefault when I access memory like that s[0] , s[4096]. > > The f

[perf-discuss] mmap problem

2007-09-21 Thread love_code meta
Hi All Now I 'm testing mmap function, and my pagesize is 4k bytes. After mapping 8k virtual memory, by dtrace I find there is only one pagefault when I access memory like that s[0] , s[4096]. The following is my test spteps. 1. fd = open("/var/tmp/mmap.file", O_RDWR); 2. I'm sur