Reducing reserved memory

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jakub Cermak

    Reducing reserved memory

    Hi all,
    how can I reduce reserved memory for my process? Because according to
    ProcessExporer (and GC.GetTotalMemo ry() 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

  • Willy Denoyette [MVP]

    #2
    Re: Reducing reserved memory


    "Jakub Cermak" <ja.cermi@centr um.czwrote in message
    news:OQXkPEq1GH A.1256@TK2MSFTN GP04.phx.gbl...
    | Hi all,
    | how can I reduce reserved memory for my process? Because according to
    | ProcessExporer (and GC.GetTotalMemo ry() 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 "ProcessExplore r" 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.



    Comment

    • Jakub Cermak

      #3
      Re: Reducing reserved memory

      I mean # Total reserved Bytes from



      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 "ProcessExplore r" 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

      Comment

      • Ben Voigt

        #4
        Re: Reducing reserved memory

        "Jakub Cermak" <ja.cermi@centr um.czwrote in message
        news:uk5ummq1GH A.5048@TK2MSFTN GP05.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.


        Comment

        • Willy Denoyette [MVP]

          #5
          Re: Reducing reserved memory


          "Jakub Cermak" <ja.cermi@centr um.czwrote in message
          news:uk5ummq1GH A.5048@TK2MSFTN GP05.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.


          Comment

          • Jakub Cermak

            #6
            Re: Reducing reserved memory

            Willy Denoyette [MVP] napsal(a):
            "Jakub Cermak" <ja.cermi@centr um.czwrote in message
            news:uk5ummq1GH A.5048@TK2MSFTN GP05.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

            Comment

            • Willy Denoyette [MVP]

              #7
              Re: Reducing reserved memory


              "Jakub Cermak" <ja.cermi@centr um.czwrote in message
              news:umdzaYQ2GH A.1300@TK2MSFTN GP05.phx.gbl...
              | Willy Denoyette [MVP] napsal(a):
              | "Jakub Cermak" <ja.cermi@centr um.czwrote in message
              | news:uk5ummq1GH A.5048@TK2MSFTN GP05.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.






              Comment

              Working...