473,624 Members | 2,543 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to extend the allowed physical memory?

I have an application that fails to allocate all its memory on physical memory.
I have a Windows XP with 2 GByte RAM.

Can anybody tell me how to configure the allowed physical memory for each
application in the Windows XP so the application memory allocation will not
use any of the virtual memory?

I’m not talking about the .NET framework. I need to configure the Windows
itself.
--------
Thanks
Sharon
Nov 17 '05 #1
4 5723
Hi Sharon,

Thanks for your post.

I think this issue has nothing to do with .Net Framework, so I suggest you
post such issue in SDK related newsgroup later on. Thanks

Based on my understanding, you want to allocate a block of memory in RAM
without paged out to the disk.

Windows provided a technology named AWE, which allows user applications to
use up to 64 GB of physical non-paged memory in a 32-bit virtual address
space on 32-bit platforms, with windowed views to this physical memory from
within the application's virtual address space.

More specificly, we use AllocateUserPhy sicalPages to alloc the memory in
RAM, then use VirtualAlloc to reserve in process Virual memory space, then
use MapUserPhysical Pages to map the physical memory to the space we
reserved before. But please note, we have to enable SE_LOCK_MEMORY_ NAME
privilege before these operations.

For more information, please refer to:
"Address Windowing Extensions"
http://msdn.microsoft.com/library/de...us/memory/base
/address_windowi ng_extensions.a sp
"AWE Example"
http://msdn.microsoft.com/library/de...us/memory/base
/awe_example.asp
"Address Windowing Extensions and Microsoft Windows 2000 Datacenter Server"
http://msdn.microsoft.com/library/de...us/dngenlib/ht
ml/awewindata.asp

Hope this helps.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 17 '05 #2
Hi Jeffrey,

Thank a lot for the inof.

The trouble is that we have two PC’s with the same exact hardware and the
same Windows XP. And my same application is running on these two computers,
on one of them the allocation is all on the physical memory, but on the other
PC it’s not.

I need the memory to be all on the physical memory because I passing this
memory to a frame grabber that need and check that that this memory is
continuous on the physical memory, so it fails on one of the computer.

So you see, I think this problem is in some kind of setting of the system
(Windows XP) and not in the code changing.

Can you figure out the setting I need to do in order to make the second
computer work as well?

-------
Thanks
Sharon
Nov 17 '05 #3

You can request the system for physical memory by calling
AllocateUserPhy sicalPages but you should NEVER assume contiguity of the
physical pages, windows does not collect physical memory, so it can never
guarantee contiguity of RAM pages returned by AllocateUserPhy sicalPages .

If it works on one PC and not on another can be caused by differences in HW
and SW (OS and user applications), differences in load order of applications
and services, differences in number and type of device drivers and their
load order, in one word if it works on one PC doesn't mean it will on
another, it only means that you were lucky (this time).
Willy.
"Sharon" <Sh*****@newsgr oups.nospam> wrote in message
news:E7******** *************** ***********@mic rosoft.com...
Hi Jeffrey,

Thank a lot for the inof.

The trouble is that we have two PC’s with the same exact hardware and
the
same Windows XP. And my same application is running on these two
computers,
on one of them the allocation is all on the physical memory, but on the
other
PC it’s not.

I need the memory to be all on the physical memory because I passing this
memory to a frame grabber that need and check that that this memory is
continuous on the physical memory, so it fails on one of the computer.

So you see, I think this problem is in some kind of setting of the system
(Windows XP) and not in the code changing.

Can you figure out the setting I need to do in order to make the second
computer work as well?

-------
Thanks
Sharon

Nov 17 '05 #4
Hi Sharon,

Thanks for your feedback.

Yes, I agree with "Willy Denoyette [MVP]". Normally, Windows uses paging to
implement the virtual memory. Due to the paging, the continuous Virtual
memory can not be guaranteed to be continuous in RAM.

If you really want this, I think you have to turn off paging for your
system.

Currently, this is not a development issue, I suggest you paste this issue
in certain Windows OS newsgroup, you will get more useful and professional
help there. Thanks for your understanding.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
2379
by: Liu, Qingzhu [CAR:2N84:EXCH] | last post by:
From memory management perspective, how to code in c to create a managed heap that can be extended and shrunk ? Thanks for help in advance. Qingzhu
9
7051
by: Olumide | last post by:
Thats the question. I know about virtual memory, and the MMU. I just wonder if array members guaranteed to be contiguous in physical memory (and if so, why). Thanks, Olumide
19
26726
by: Jerry | last post by:
I am wondering what is the maximum size of memory that malloc() could handle. Is there any limitation on that? Where am I supposed to get this kind of information? Thank you everybody.
12
2035
by: spibou | last post by:
Why is a pointer allowed to point to one position past the end of an array but not to one position before the beginning of an array ? Is there any reason why the former is more useful than the later ? Spiros Bousbouras
2
2457
by: doudehou | last post by:
Hi guys, I want to get the physical memory status, say, the total amount of physical memory, the free memory, and so on, from the javascript, is it a mission impossible? Thank you very much for your help ! ;-)
6
6340
by: Grant | last post by:
I need to write data to a physical address between 0xD0000 and 0xDFFFF I have download the windows DDK but have no experience with this and would like to get up and running very quickly can any one point me in the direction of an example that I could modify. I found a reference to an example program called GENPORT but can't seem to find any similar example in the latest DDK. I have also found an already written and complied driver called...
2
53611
by: OgaW | last post by:
Hi, What is the difference bet. Physical memory usage and Kernal memory usage? Physical memory: available vs system cache? kernal memory: paged vs nonpaged? Anyone can explain in details how to see what the graphs means from the windows task manager ?
3
3990
by: john | last post by:
I would like to view physical memory that is mapped to a pci board. I am using a tool called WinIO to try to create a virtual address to that physical memory. It works for both read and write of some addresses, like 0x9FFF0. However, the resource the board uses is address at 0xE8100000 which I cannot pick up with the tool. I have confirmed that address in windows device manager and in the BAR0 entry in the table that the PCI board...
0
8249
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8179
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8633
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8348
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8493
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7176
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5570
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
1797
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1493
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.