Re: ASP.NET and cache - just want to be sure



Sorry - I meant that Task Manager was showing me the *total* used memory -
not just for those processes using .NET.

So, I figured 800Mb was OK. What I could not / still cant understand is why
it's simply not using that 200Mb spare, and instead dumping my 200 bytes out
of cache with "Underused"...

....as though it can;t get to that last 200Mb (even though it's not been
reserved for SQLServer 2000 or such).

Thanks,
Simon.


"Karl Seguin [MVP]" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME
net> wrote in message news:%23VB31qZ1GHA.4108@xxxxxxxxxxxxxxxxxxxxxxx
80% of your total memory is a lot. By default, asp.net tries to limits
itself to 60% of the total available memory. I doubt that you'd want it to
go anymore than 80%...the O/S still needs to run, and the last thing you
want is any high amount of paging to the hdd.

You can specify a priority for your cache, but .NET generally knows better
how to manage memory than you do.

You can load up perfmon and look at some performance monitors, cache hits,
memory size.

You can get a memory profile and try to use up less than 800megs
(http://www.red-gate.com/products/ants_profiler/index.htm)

You can play with your machine.config's processModel section and increase
the maximum memory limit

Karl

--
http://www.openmymind.net/
http://www.codebetter.com/


"SCG" <simon@xxxxxxxxxxxxxxxxxx> wrote in message
news:ei$eYeZ1GHA.4796@xxxxxxxxxxxxxxxxxxxxxxx
Hi,

[sorry if this sounds familiar but just want ot be sure]

I have had a site running for 6 months now. This morning I started
observing
the following behaviour pretty much out of the blue:

I load a blob of XML into the ASP.NET cache with a timeout of 15 mins,
and a
callback set up to log the unload of the data.

Immediately (the same second), my callback gets driven with a reason code
of
"Underused", which implies that ASP.NET is feeling memory-challenged.

But, Task Manager suggests that only 800Mb is being used out of 1Gb, and
nothing else (SQl Server etc.) seems to have reserved the extra 200Mb
memory.

Why is ASP.NET immediately throwing out my newly cached 200 bytes of
data?

Is there any other setting I could be tweaking / monitoring to help tell
me
why?

Thanks for any help.






.



Relevant Pages

  • Re: Cached memory never gets released
    ... Stock linux 2.4.26 kernel. ... Due to flash bug 3M of memory gets lost due to font memory getting lost ... The output of "free" cache number steadily grows. ... longer to exhaust all of system memory with the cache. ...
    (Linux-Kernel)
  • Re: Problem: Creating a raw binary string
    ... > While its true that a 64-bit cpu will move twice the data per instruction it ... > Memory bus width plays an important role here and unless it too is widened / ... You are forgetting the two levels of cache in the processor. ... The memory chips are addressed in Row col fashion. ...
    (alt.comp.lang.borland-delphi)
  • Re: Is Greenspun enough?
    ... Most OSes memory map executables directly from the file system so code doesn't pollute the file cache or swap space. ...
    (comp.lang.lisp)
  • Re: Superstitious learning in Computer Architecture
    ... Without a LOT of logic or some other better approach, re-executing the instructions requires re-decoding and it ties up the cache memory bus transferring more data as instructions than the instructions are working on. ... The concept of cache is fundamentally flawed in that it STILL restricts access to one word per clock cycle, when a single modern ALU can easily use 5 plus whatever is eaten up with instruction accesses. ... The size of an optimizing compiler is proportional to the SQUARE of the size of the language times the SQUARE of the complexity of the machine - because all interactions must be considered. ...
    (comp.arch.arithmetic)
  • Re: FPGA-based hardware accelerator for PC
    ... I know that in most cases the CPU ... that it contsins no cache, as BRAMs are too precious resources to be wasted ... The BRAMs are what define the opportunity, ... many threads with full associativity of memory lines using hashed MMU ...
    (comp.arch.fpga)