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

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

7 x64
 
 

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

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.
Memory Allocation problem-resource-monitor-ram.png


My System SpecsSystem Spec
.


13 Oct 2012   #4

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

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

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

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

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

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

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 for2: Memory Allocation problem
Thread Forum
Problem with Program Allocation - need help please General Discussion
Help: Allocation of memory from Drive D to C General Discussion
XP Mode VM Memory Allocation recommendation? Virtualization
allocation of bandwidth Network & Sharing
New RAM memory allocation. Usable Ram Less than installed. Help Hardware & Devices
RAM Allocation Performance & Maintenance
Vmware uninstalled, problem with ram allocation 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 09:40 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33