Re: How to make my app non-pagable



In message <2A98524A-29DB-4510-8C96-48C5F27AACEC@xxxxxxxxxxxxx>,
Chandler <Chandler@xxxxxxxxxxxxxxxxxxxxxxxxx> writes
>Thanks you guys,
>Since it may not possible to make the whole non-pagable,
>is it possible to make some function or some code-segment non-pagable ?

Not really. The OS thinks in pages. A page is 4K on a 32 bit x86 system
and 8K on most 64 bit systems. The Win32 API provides a function for
determining this size.

The OS will keep the pages of your app that are required paged in
according to their usage. You haven't said it, but I assume you are
determined to be paged in at all times because you think your software
is so important it shouldn't get paged out - it is time critical or
somesuch?

Windows is not a "real time" OS in that there are no scheduling
guarantees. There are some vendors that ship a modified Windows or a
Windows-alike that can do this.

If your code is running on a regular basis the Windows scheduler will
have picked up on this as part of its paging statistics that it uses to
determine what to page and what not to page. As a result your code that
executed regularly and frequently will probably not get paged out
anyway.

If you'd like to visualize the paging of your application take a look at
VM Validator (free) from Software Verification.

http://www.softwareverify.com

Stephen
BTW. A Vic-20 doesn't support paging which is why I suggested it :-)
Paging to cassette deck is just too slow!
--
Stephen Kellett
Object Media Limited http://www.objmedia.demon.co.uk/software.html
Computer Consultancy, Software Development
Windows C++, Java, Assembler, Performance Analysis, Troubleshooting
.



Relevant Pages

  • Re: Do I need a Page File?
    ... paging out physical memory or not. ... Can I do that or does Windows XP really need the ... > require the paging file, ... > unlimited amounts of RAM, we wouldn't even NEED a paging file. ...
    (microsoft.public.windowsxp.general)
  • Re: Paging a DataGrid or similar control...?
    ... As far as paging goes, the concepts are fairly the same between windows apps ... I am using MSDE as my database backend. ...
    (microsoft.public.dotnet.framework.windowsforms.databinding)
  • Re: Paging a DataGrid or similar control...?
    ... As far as paging goes, the concepts are fairly the same between windows apps ... I am using MSDE as my database backend. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Paging a DataGrid or similar control...?
    ... As far as paging goes, the concepts are fairly the same between windows apps ... I am using MSDE as my database backend. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Paging a DataGrid or similar control...?
    ... As far as paging goes, the concepts are fairly the same between windows apps ... I am using MSDE as my database backend. ...
    (microsoft.public.dotnet.framework.adonet)