473,387 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 1558
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**************@TK2MSFTNGP12.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
by: Krishna Sagiraju | last post by:
hai, can we convert virtual address to physical address using c/c++ ? thanx Krishna
9
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
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...
0
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
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...
6
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...
3
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...
2
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...
4
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
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...

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.