473,795 Members | 2,929 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Physical and Virtual Memory

Hello once again,

When working with objects, does .Net push any of it to virtual memory? I
know that the OS does it, I guess what I am asking is how do I claim a
portion of memory from the OS and work within that limitation?

If I were to claim 400 MB of RAM, using what, I don't know, possibly a byte
array, I would like to use that as my working limitation for data
operations. I realize that I would loose use of objects if I were to go
that route, but it seems to be the only way to limit how much memory the
application consumes while running. I also realize that .Net was geared
towards object base development, however, I cannot seem to find a reliable
way to measure my memory consumption.

There are times when I would have objects loaded in memory, and because I
would like to cache that data for possible later use, I don't release it.
When a flagged is raised that memory is nearing its limit, I would loop
through stale items and release them, and keep cutting down until I am back
in a safe margin.

Thanks in advance
Nov 21 '05 #1
1 1591
AMDRIT,

AFAIK has not any current windows OS system like Unix or mainframes the
possiblitiy to limit the used memory for a task.

This option is a nice option for multiuser purpose on classic computers,
however a little bit far back in yesterday. The majority of the students in
the world have now all their own laptop.

By the way relying on information is memory is in my opinion a very unsafe
way of dataprocessing.

Just my thought,

Cor

"AMDRIT" <am****@hotmail .com> schreef in bericht
news:OQ******** ******@TK2MSFTN GP12.phx.gbl...
Hello once again,

When working with objects, does .Net push any of it to virtual memory? I
know that the OS does it, I guess what I am asking is how do I claim a
portion of memory from the OS and work within that limitation?

If I were to claim 400 MB of RAM, using what, I don't know, possibly a
byte array, I would like to use that as my working limitation for data
operations. I realize that I would loose use of objects if I were to go
that route, but it seems to be the only way to limit how much memory the
application consumes while running. I also realize that .Net was geared
towards object base development, however, I cannot seem to find a reliable
way to measure my memory consumption.

There are times when I would have objects loaded in memory, and because I
would like to cache that data for possible later use, I don't release it.
When a flagged is raised that memory is nearing its limit, I would loop
through stale items and release them, and keep cutting down until I am
back in a safe margin.

Thanks in advance

Nov 21 '05 #2

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

Similar topics

3
9585
by: Krishna Sagiraju | last post by:
hai, can we convert virtual address to physical address using c/c++ ? thanx Krishna
9
7065
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
9
3628
by: sushant | last post by:
hello, my question is related with the address of a variable in C. suppose if i am printing the address of a variable, so that address will be virtual address or physical address. and why it'll be so? is that has something to do with 16 bit environment and 32 bit environment? thanks in advance
0
1223
by: Dmitri Shvetsov | last post by:
Hi, Can somebody show the code to get the amount of the physical memory? I found several calls but it doesn't show the physical memory, virtual, under process,... Thanks. Dmitri
4
5729
by: Sharon | last post by:
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.
6
6346
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...
3
3996
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...
2
1326
by: dattaforit | last post by:
Hello All, I have a Window service developed using Visual Studio .Net 2003. I am using VC++ .Net for the service development. The physical and virtual memory consumption is very high. How should i minimize this memory consumption. Please give me some clue to achieve this. Thanks
4
2883
by: Paul F | last post by:
Im confused about the difference(s) between virtual directories and physical directories in IIS. Any ideas? *** Sent via Developersdex http://www.developersdex.com ***
0
9673
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
10448
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10217
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...
0
9046
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...
1
7544
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6784
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
4114
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2922
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.