Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Memory Allocation problem

12 Oct 2012   #1
diama13

Windows 7 Professional 64 bit
 
 
Memory Allocation problem

Hi all,

my pc has 8 GByte Ram but when i try to allocate 128 megabyte contiguous memory in a driver has a difficulty. It succeeds after 4 or 5 restarts? Why this? I have a lot of memory available.


My System SpecsSystem Spec
.
12 Oct 2012   #2
edwar

7 x64
 
 

You'll need to explain what you are doing and why a little better.
My System SpecsSystem Spec
12 Oct 2012   #3
Layback Bear

Windows 7 Pro. 64/SP-1
 
 

I'm like edwar and don't understand what you are trying to do. I don't understand the worry about 128 mb of ram.
If you want to see what windows is doing with your ram got to Resource Monitor and tick ram at the top of the page. Windows 7 will take care of how your ram is use with no problems.
-resource-monitor-ram.png


My System SpecsSystem Spec
.

13 Oct 2012   #4
diama13

Windows 7 Professional 64 bit
 
 

Ok . I will explain better. I have a driver for a pcie card which tries to allocate 128 MB of memory when widnows 7 start. I use the MmallocateContiguousMemorySpecifyCache() routine for this reason. I see that when i use the optional parameter BoundaryAddressMultiple of the routine which is something that i really need it does the allocation after 4 or 5 restarts of the pc. When i do not use this parameter it does the allocation from the first time. Why?I have 8 GB memory and i can not understand the reason for the multiple restarts.
My System SpecsSystem Spec
13 Oct 2012   #5
edwar

7 x64
 
 

If you have a PCIe card shouldn't there be drivers for that Add-On card that takes care of allocating whatever system resources it needs to work properly? Why are you trying to override what the drivers and or card software is trying to do?
My System SpecsSystem Spec
13 Oct 2012   #6
Layback Bear

Windows 7 Pro. 64/SP-1
 
 

I'm just curious so bear with me. What is the problem with letting Windows 7 allocate ram to what ever it wants to? I don't know why it takes so many boots. I'm trying to understand what problem you are trying to solve with this 128 mgs of ram. You say you really need to do this so I'm guessing you are having a problem. If we know the problem surely their/there will be somebody here that can help. Like I say I'm just curious. Edwar you type fast.
My System SpecsSystem Spec
13 Oct 2012   #7
diama13

Windows 7 Professional 64 bit
 
 

I must use that parameter(BoundaryAddress) because some transfers of data must be done and in other case the address translation will be wrong and the data will lost.
My System SpecsSystem Spec
13 Oct 2012   #8
edwar

7 x64
 
 

Quote   Quote: Originally Posted by diama13 View Post
I have built the driver so i need to use this routine. I must use that parameter(BoundaryAddress) because some transfers of data must be done and in other case the address translation will be wrong and the data will lost.
Sorry that makes no sense to me. If this card you have installed is a Name Brand card it should come with the proper drivers and software to make it work correctly. Why are you Building a Driver for it.

What is the Make and model of this card?

If the included drivers and software isn't functioning correctly contact the maker of the card for updated software.
My System SpecsSystem Spec
13 Oct 2012   #9
Layback Bear

Windows 7 Pro. 64/SP-1
 
 

diama13 thanks for answering my question. I must say it wasn't the answer I expected. I surly can't help you build a driver. Your the first person that I know that can build their/there own drivers. Could we go a little farther? What problems are you having that you have to build your own driver? We mostly do two things on this site, help people and learn ourself. To do these things we really need to know the problem you are trying to solve. What isn't working properly? Your movie watching, Windows functions, Internet displays, Youtube ect.?
My System SpecsSystem Spec
13 Oct 2012   #10
Alejandro85

Windows 7 Ultimate x64
 
 

Maybe it's due to you asking too much memory and the requirements. Even though you have 8GB, demanding 128MB to be contigous, available in physical memory and not placed without crossing any 128MB boundary seems too much for your system. If it succeeds "sometimes" it may be due the loading order (if something else memory hungry claims the memory before) or some other program loading and fragmenting the memory so that it can't be continuous.

BTW, I also think that the question is too technical for SF . Driver programming is one of the most complex things in computing so I would ask at a specialized forum instead. Try at StackOverflow, that forum is dedicated to programming and one of the best sources of info in the topic.
My System SpecsSystem Spec
Reply

 Memory Allocation problem




Thread Tools




Similar help and support threads
Thread Forum
memory allocation
Trying to find a utility or C++ procedure that will allow me to allocate a specific physical memory address. I seem to have a problem with a certain memory range on my mother board. I have 4 2GB memory modules and all the modules test OK when used two at a time. When I use all four I get memory...
Drivers
Problem with Program Allocation - need help please
Hello I have a problem on my Windows7 laptop when clicking on internet shortcut links... When I try to opening a link, Windows no longer knows what to open it with and tries defaulting to MS Word. I've tried selecting in the usual way and ticking the box to have either IE or Firefox to open...
General Discussion
Help: Allocation of memory from Drive D to C
Ok, so I have a laptop that has around 750GB of space on it but it is split into two parts: 250GB: Drive D 500GB: Drive C I'm running out of space on drive C and I would like to extend the space on drive C from drive D seeing as drive D is completely empty. I have no idea on what I'm...
General Discussion
XP Mode VM Memory Allocation recommendation?
I'm using Win7 Pro x64 running on an i7-2600K @ 3.5GHz with 16GB @ 1600MHz with an Intel X25-M 160GB SSD (or in other words a fast machine with a fast hard drive with heaps 'o memory. Having so much main memory (which is cheap these days so why not) I've got no paging file at all, which I...
Virtualization
New RAM memory allocation. Usable Ram Less than installed. Help
Hi everyone, As the title suggest I just upgraded my RAM memory. Specifically, I bought a Corsair XMS2 DHX TwinX 4GB package. This include double 2 GB corsair RAM. Just this afternoon I installed the Rams after purchase. I previously had 2 A-Data 1GB ram(totaling 2GB) but as I'm a gamer the...
Hardware & Devices
Vmware uninstalled, problem with ram allocation
hey i recently uninstalled vmware, but half my ram is still allocated to the virtual pc, which means my laptop now sucks, i only have 512mb ram anyway. Can someone let me know how to get my ram back? thanks in advance =)
Virtualization


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 17:43.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App