Re: [perf-discuss] prefetch data for page fault

2007-09-21 Thread love_code meta
"I don't understand how you would prefetch this page from the kernel space" " My means is not prefetch the page but use prefetch instruction (e.g. __asm__ __volatile__( " prefetchnta %0" : : "m" (*addr) ) ;// addr is fist parameter of pagefault handler, which caused page fault trap), prefe

Re: [perf-discuss] prefetch data for page fault

2007-09-21 Thread johansen
>"The user program would have trouble >doing the prefetch, >because it is often difficult to predict >where page faults will happen >and because a prefetch before >the page fault will probably have no effect. >" > >The prefetch instruciton will execute in kernel

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(

[perf-discuss] File Cache under Solaris 9,10(sparc)

2007-09-21 Thread Alexandr Semenov
How view actual current size File Cache under Solaris 9,10(sparc) without additional drivers (memtool (prtmem) http://www.solarisinternals.com/si/tools/memtool/index.php) ? The command (/usr/sbin/sysdef|grep bufhwm) display maxsize from (/etc/system). [b]Need actual current size File Cache!![/b]

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