Re: How to make my app non-pagable
- From: Stephen Kellett <snail@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 16 Nov 2005 11:29:40 +0000
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
.
- Prev by Date: Re: "an invalid argument was encountered"
- Next by Date: Re: How to make my app non-pagable
- Previous by thread: Re: How to make my app non-pagable
- Next by thread: Dynamic Menu update
- Index(es):
Relevant Pages
|