By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,921 Members | 1,466 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,921 IT Pros & Developers. It's quick & easy.

Reducing reserved memory

P: n/a
Hi all,
how can I reduce reserved memory for my process? Because according to
ProcessExporer (and GC.GetTotalMemory() and taskmanager) I use about
5-6MB and reserved memory is nearly 70MB. I don't need such amount of
memory, after start I nearly don't need to allocate more memory.

--
Best regards,

Jakub Cermak
ICQ 159971304
http://cermi.wz.cz
Sep 12 '06 #1
Share this Question
Share on Google+
6 Replies


P: n/a

"Jakub Cermak" <ja******@centrum.czwrote in message
news:OQ**************@TK2MSFTNGP04.phx.gbl...
| Hi all,
| how can I reduce reserved memory for my process? Because according to
| ProcessExporer (and GC.GetTotalMemory() and taskmanager) I use about
| 5-6MB and reserved memory is nearly 70MB. I don't need such amount of
| memory, after start I nearly don't need to allocate more memory.
|
| --
| Best regards,
|
| Jakub Cermak
| ICQ 159971304
| http://cermi.wz.cz

What do you mean with "reserved memory", there is no such thing in
ProcessExplorer? Please, when talking about memory usage, tell us what tools
and what counters you are referring to, also note that using 'perfom'
counters are the preferred way to express memory usage, not every-one is
using "ProcessExplorer" for this. Now, if you mean Virtual Memory, you won't
be able to reduce this, the reason is that the GC allocated heap already
takes 64MB to start with.
Question is: why do would you ever need to reduce this?

Willy.

Sep 12 '06 #2

P: n/a
I mean # Total reserved Bytes from
http://msdn2.microsoft.com/en-us/library/x2tyfybc.aspx
And why? Because I don't need that memory for this process, it's useless
and can be used by other applications on server

Willy Denoyette [MVP] napsal(a):
>
What do you mean with "reserved memory", there is no such thing in
ProcessExplorer? Please, when talking about memory usage, tell us what tools
and what counters you are referring to, also note that using 'perfom'
counters are the preferred way to express memory usage, not every-one is
using "ProcessExplorer" for this. Now, if you mean Virtual Memory, you won't
be able to reduce this, the reason is that the GC allocated heap already
takes 64MB to start with.
Question is: why do would you ever need to reduce this?

Willy.

--
Best regards,

Jakub Cermak
ICQ 159971304
http://cermi.wz.cz
Sep 12 '06 #3

P: n/a
"Jakub Cermak" <ja******@centrum.czwrote in message
news:uk**************@TK2MSFTNGP05.phx.gbl...
>I mean # Total reserved Bytes from
http://msdn2.microsoft.com/en-us/library/x2tyfybc.aspx
And why? Because I don't need that memory for this process, it's useless
and can be used by other applications on server
The lookaside translation buffer gives every process it's own 4GB address
space (half in userspace, half for core Windows). Only some of that space
translates to physical memory. So you should only worry about "committed"
pages.
Sep 12 '06 #4

P: n/a

"Jakub Cermak" <ja******@centrum.czwrote in message
news:uk**************@TK2MSFTNGP05.phx.gbl...
|I mean # Total reserved Bytes from
| http://msdn2.microsoft.com/en-us/library/x2tyfybc.aspx
|
|
| And why? Because I don't need that memory for this process, it's useless
| and can be used by other applications on server
|

Well, it's "reserved virtual memory", that means it doesn't take real RAM
memory nor swap space, it's reserved by the GC from the process Virtual
Address Space and will be used (comitted) when the GC needs more memory real
for the allocated objects.
Willy.
Sep 12 '06 #5

P: n/a
Willy Denoyette [MVP] napsal(a):
"Jakub Cermak" <ja******@centrum.czwrote in message
news:uk**************@TK2MSFTNGP05.phx.gbl...
|I mean # Total reserved Bytes from
| http://msdn2.microsoft.com/en-us/library/x2tyfybc.aspx
|
|
| And why? Because I don't need that memory for this process, it's useless
| and can be used by other applications on server
|

Well, it's "reserved virtual memory", that means it doesn't take real RAM
memory nor swap space, it's reserved by the GC from the process Virtual
Address Space and will be used (comitted) when the GC needs more memory real
for the allocated objects.
Willy.

It takes - according to task manager (commited bytes+reserved bytes+few
MBs = total amount of memory in taskmanager)

--
Best regards,

Jakub Cermak
ICQ 159971304
http://cermi.wz.cz
Sep 15 '06 #6

P: n/a

"Jakub Cermak" <ja******@centrum.czwrote in message
news:um**************@TK2MSFTNGP05.phx.gbl...
| Willy Denoyette [MVP] napsal(a):
| "Jakub Cermak" <ja******@centrum.czwrote in message
| news:uk**************@TK2MSFTNGP05.phx.gbl...
| |I mean # Total reserved Bytes from
| | http://msdn2.microsoft.com/en-us/library/x2tyfybc.aspx
| |
| |
| | And why? Because I don't need that memory for this process, it's
useless
| | and can be used by other applications on server
| |
| >
| Well, it's "reserved virtual memory", that means it doesn't take real
RAM
| memory nor swap space, it's reserved by the GC from the process Virtual
| Address Space and will be used (comitted) when the GC needs more memory
real
| for the allocated objects.
| >
| >
| Willy.
| >
| >
|
| It takes - according to task manager (commited bytes+reserved bytes+few
| MBs = total amount of memory in taskmanager)
|
What the are you talking about? Taskman only shows you the Process "Mem
Usage" and "VM Size. There is no such thing like committed bytes reserved
bytes. Anyway, reserved bytes aren't committed so don take read memory.
If you really like to investigate RAM and VM usage use the perfmon.exe and
read about all possible memory counters and how they relate to the type of
memory in Windows OS.

Willy.


Sep 15 '06 #7

This discussion thread is closed

Replies have been disabled for this discussion.