Problem about demand page

windows ce


  • 1. WinCE6.0 Suspend problem
    Hi All, When we are testing the suspend functionality in wince the following error is shown in hyper terminal: ERROR: Power Handler function yield to low priority thread. How to solve this issue? By searching the forums we got the information as 'don't use blocking calls in power handler functions'. We verified the code in device drivers which uses the power handler functions and disable the code to isolate the problem,but still it's showing the same problem. Any thing we need to do in PB to avoid this problem?
  • 2. DirectShow CDynamicOutputPin
    Dear Team, I have implemented custom parser source filter which changes the sample format dynamically using CDynamicOutputPin on PC. When I try to port the same to Win CE 6.0, I cannot find CDynamicOutputPin class in the directx framework. Is there a procedure to implement dynamic format changes using normal CBaseOutputPin or any other way. Regards.
  • 3. DirectShow Parser Filter
    Dear Team, I implemented a custom source filter for audio formats with the following hierarchy. --- My Source -- My Parser -- Default MP3 Decoder -- Device On Windows XP SDK, everything was as expected and I can play the formats using GraphEdit tool. When I ported the same code to wince, the media player gives the Invalid Media error and my parser never gets invoked. On PC, I used regsvr command to register both source.dll and parser.dll. I tried the same using regsvr32 in ce, but sill facing the same issue. Am I missing something. Regards.
  • 4. NotSupportedException on Windows CE 6.0 not on Windows CE 5.0
    Hello, I have an application (developed with .Net CF 2.0) that works fine on my target device with Windows CE 5.0. I have ported Windows CE 6.0 on my target but my application randomly crash with a "NotSupportedException". I have no is randomly.... Any Ideas ? Thanks, Paolo -- Paolo Patierno Embedded Software Engineer

Problem about demand page

Postby eg_yskaa » Sat, 11 Nov 2006 18:14:16 GMT

Hi all,

My ultimate goal is to free up more RAM for application.

My system configuration:
2. 64MB NAND flash
3. Nand flash has created BINFS partition in NAND flash for storing OS

I read from the help that the OS be can demand paged from NAND flash. I
checked with my config.bib and it has allocated 32MB for my Kernel
region, which is equal to the compiled ROM size.

My question is as follows:
1. If the OS can be demand paged, why it allocates such amount of RAM
for the Kernel? I understand that a portion of the Kernel image should
be read from NAND flash to SDRAM during startup, but why it has to load
the entire image during the bootup into the SDRAM?

2. If my understanding is correct, the amount of RAM allocated to the
Kernel in config.bib actually can be lowered. Am I correct?

3. If my assumption of point 2 is correct, how can I determine the
minimum amount of RAM that should be allocated for the Kernel region?
(And thus the amount of image that should be loaded in the bootloader
during startup)

Any comment is appreaciated. Thank you very much!


Re: Problem about demand page

Postby Dean Ramsier » Sat, 11 Nov 2006 23:17:12 GMT

It's a little more complicated than that.  You need to create a multixip 
image, with at least two regions.  The kernel region contains everything 
required in order to boot far enough to get the BINFS filesystem running, 
the binfs region contains everything else.  The kernel region is always 
resident in RAM, the binfs region gets paged in as needed.

You create these two regions using different tags in the bib file for each 
entry.  Your bootloader must have knowledge of the setup, and be able to 
load just the kernel region from NAND into RAM and jump there.  If you 
support any type of image update your loader will also have to understand 
the mechanism.

This isn't a trivial task...

Dean Ramsier - eMVP
BSQUARE Corporation

Re: Problem about demand page

Postby eg_yskaa » Mon, 13 Nov 2006 13:58:23 GMT

Hi Dean,

Thanks for you reply. But I want to know if multixip is the way of
accomplishing my task? Since I just want a single nk.bin (My BSP
doesn't support XIP yet). I am wondering if there is any work-around.
Thanks for your kind help.


Dean Ramsier 

Re: Problem about demand page

Postby Dean Ramsier » Wed, 15 Nov 2006 22:59:46 GMT

No.  The BINFS mechanism was added specifically to address this issue, and 
it requires a multixip build.

Dean Ramsier - eMVP
BSQUARE Corporation

Hi Dean,

Thanks for you reply. But I want to know if multixip is the way of
accomplishing my task? Since I just want a single nk.bin (My BSP
doesn't support XIP yet). I am wondering if there is any work-around.
Thanks for your kind help.


Dean Ramsier 

Re: Problem about demand page

Postby eg_yskaa » Thu, 16 Nov 2006 10:32:36 GMT

Hi Dean,

Thanks for the information. I will try to implement XIP myself. Hope it
is not a long way....


Similar Threads:

1.To Demand-Dial or not Demand-Dial

Hi guys,

I am setting up a test environment, virtural server 2k5, to test
between two locations that are different domains. I want to simulate a
leased-line configuration (no VPN).

I'm using RRAS but I have a couple of questions:

1) Should I use DD? I need a persistent connection. I'm not charged
for usage.
2) I know I need static routes between routers but do I create the
route in domain 1 to the other side of domain 2's router?


simulated internet:
Interface on domain 1 side =
Interface on domain 2 side =

Router on domain 1 side =
Router on domain 2 side =

Do I point the static route from domain 1 to, or


2.About Demand Paging

Hi Expert/Professional,
I want to study the work principles of Demand Paging of WinCE. Where
can I find some documents?
Can some share with me?

3.XIP and demand page


I am confused on XIP and demand page.
When I set "IMGMULTIXIP=1", OS image will be built into many *.bin
Then I use chain.lst to download the OS, I think "demand page" seems
be on( I check the remaining memory)

When I set "IMGMULTIXIP=", OS image will be built into one NK.bin.
Then I download it, I think "demand page" seems be off (I check the
remaining memory)

Is the above description right ?
As I know, XIP and demand page shoud be two different technologies. 
Can I turn on the XIP and turn off the demand page ?
Can I build the OS to the NK.bin when I want to use the demand page ?



4.Detect and locate demand zero page faults.

I have a program that I inherited the maintenance of.  It is a very
large and complex program.  It has a high rate of demand zero page
faults, about 100 per second. The program does not grow in virtual
memory size. It is written in C++.

Is there any way to locate the section of code that is causing the
demand zero page faults? 

Thank you

5.Demand paging from Hard Disk in WinCE


I have a 32 MB Flash in my system which can not be increased any more due to 
hardware limitations. Now if the WinCE image size is bigger than 32 MB, can 
some part of the image (say some DLLs) be stored in any other storage device 
like say Hard Disk and then runtime swapped in on demand. We know that the 
WinCE loader supports demand paging of modules into RAM from Flash. Is 
something similar to that possible in case some part the image is stored in a 
Hard Disk? It is more of a PC like environment where applications are stored 
in Hard Disk and swapped in-swapped out frequently. Is that achievable in 

Any comments/help on this is appreciated.


6. Demand Page on Nand Flash ?

7. Running from RAM, demand paging

8. Problems with CBS Mega March Madness on Demand

Return to windows ce


Who is online

Users browsing this forum: No registered users and 21 guest