"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
>"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
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(
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]
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
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