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


.



Relevant Pages

  • Re: Physical and Virtual Memory
    ... By the way relying on information is memory is in my opinion a very unsafe ... does .Net push any of it to virtual memory? ... I would like to use that as my working limitation for data ... > way to measure my memory consumption. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: [PATCH] A new entry for /proc
    ... A fine grain memory control ... work on optimising memory consumption. ... We intend to test this new patch and see how it works with more applications. ...
    (Linux-Kernel)
  • Re: IIS 6 Site Hang after IdleTimeout Shutdown
    ... We have some fears on memory consumption if we were to allow no idle timeout. ... If you mean having recycle by a Memory limit, these sites show no sign of a memory leak and are recycled twice daily automatically, just in case we don't catch this restart issue. ... Each connection raised the Ram usage on the WorkerProcess about 20K, and Incremented "Current Anonymous Users" perf counter under Web Service by 1. ...
    (microsoft.public.inetserver.iis)
  • Re: maximum .net process can use
    ... reduce memory consumption. ... I would say that your only option is to live with process recycling. ... > You did change your code to reduce the memory consumption, ... > such that there is less fragmentation of the LOH. ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: Memory Consumption
    ... You are correct in your assumption as to the memory consumption. ... loaded the CLR and the FCL dlls for the System, ... ran that app, the memory footprint would be enormous. ...
    (microsoft.public.dotnet.framework.windowsforms)

Loading