Re: Paging in Windows CE by voidcoder
voidcoder
Thu Mar 09 16:58:22 CST 2006
I'm not really sure how is it implemented internally,
don't forget, its a "mystery" :)
I think this feature is based on the Memory Mapped
Files, ie. the binary is accessed using the Memory
Mapping mechanism. Once you code jumps to
the virtual address inside the page that has not yet been
loaded into RAM, a page fault occurs and kernel
loads the corresponding page into RAM. The whole
thing is of course transparent for the executable
itself.
Btw if you see some flaws in the documentation,
spend a few minutes to send a feedback on it.
Every topic in the PB documentation has a
"Send Feedback" link in the bottom of the page.
This will give the documentation guys some ideas
on how to improve it in the next releases. I believe
CE 6.0 is not so far way :)
"Anton Jarl" <aj@reply.to.group.please> wrote in message
news:eBqqjS8QGHA.2088@TK2MSFTNGP14.phx.gbl...
>
> Thanks for replying, your summary was exactly
> what I needed.
>
> How does the kernel behave when "releasing
> unused code"? Is it very aggressive, so that
> it tries to keep a lot of RAM free by often
> paging out executables? Or is there some
> limit when it starts to page out code? (For
> instance if free RAM gets below 10% or so)
>
>
>
>
> "voidcoder" <voidcoder@yahoo.com> wrote in message
> news:eklNKC8QGHA.6008@TK2MSFTNGP10.phx.gbl...
>> The meaning for this mystery is just a memory saving
>> feature that allows the kernel to release unused
>> pieces of code when executing a binary from that
>> particular storage. This however slows down
>> the execution and is not safe when used with
>> removable media.
>>
>>
>> "Anton Jarl" <aj@reply.to.group.please> wrote in message
>> news:%23wJB$w7QGHA.3192@TK2MSFTNGP09.phx.gbl...
>>> I'm trying to understand what "Paging" means under
>>> Windows CE.
>>>
>>> It seems to be different from Windows XPs pagefile?
>>>
>>> I havent seen good explanations on MSDN, the registry
>>> setting "Paging" for storage manger is explained "Set to 0
>>> to disable paging. Set to 1 to enable paging. One is the
>>> default", which isn't too helpful.
>>>
>>> Can anyone please point me to a better summary, or
>>> maybe outline the "big picture" of what Paging means
>>> in WinCE, and maybe compare it to how a pagefile
>>> works for WinXP? Why would or wouldn't I use
>>> paging in a system? What does a normal PDA
>>> based on Windows CE use? I have no real-time
>>> requests.
>>>
>>> It would be very helpful, so thank you!
>>>
>>>
>>
>>
>
>