Total memory calculation

Search over internet and get one calculation on memory request:
Total Memory =
Dataserver Executable Size (in bytes) +
Static Overhead of 1 Mb +
User Connections x 40,960 bytes +
Open Databases x 644 bytes +
Locks x 32 bytes +
Devices x 45,056 bytes
Procedure Cache +
Data Cache
don't understand this in detail.
Dataserver Executable Size (in bytes) +   ----how to get this ???
Static Overhead of 1 Mb +                   ---how to calc this???
User Connections x 40,960 bytes +     ---can get this from server param: number of user connections
Open Databases x 644 bytes +           ---can get this from server param: number of worker processes
Locks x 32 bytes +                            -----can get this from server param: number of locks???
Devices x 45,056 bytes +                   ----number of devices???
Procedure Cache +                            ---20% of data cache???
Data Cache                                       --- decided by app???

Hi Kent,
> Dataserver Executable Size (in bytes) +   ----how to get this ???
> Static Overhead of 1 Mb +                   ---how to calc this???
Why do you need the exact size of the dataserver executable. This size will change which every new version of the binaries that you would use.
The best way to check the size of the memory requirements for ASE is to set up the 'max memory' variable. This setting will set the upper limit for the memory allocation in ASE.
The easiest way to check what is the current memory usage by running
sp_configure 'total logical memory'
More details are here:
How much memory to configure
All the other parameters are also set by sp_configure.
When you add some memory to some functionality, the remaining memory from (max memory - total logical memory) will decrease.
> Locks x 32 bytes +                            -----can get this from server param: number of locks???
correct
>Devices x 45,056 bytes +                   ----number of devices???
correct
> Procedure Cache +                            ---20% of data cache???
incorrect
The procedure cache is set up by 2k page size
sp_configure 'procedure cache size'
> Data Cache                                       --- decided by app???
This is the sum of all your data cache:
sp_cacheconfig will give you a summary
HTH,
Adam

Similar Messages

  • Calculating total memory in oracle RAC environment

    I have to calculate total memry in RAC environment.
    For shared and buffer pool I execute show sga.
    For UGA and PGA I execute statement that have two different values.
    This is my two different methot for calculating total memory in oracle RAC environment.
    Why I have very different value in this 2 statements on pga values?
    first stat
    with vs as
    select 'PGA: ' pid
    ,iid
    ,session_pga_memory + session_uga_memory bytes
    from (select inst_id iid
    ,(select ss.value
    from gv$sesstat ss
    where ss.sid = s.sid
    and ss.inst_id = s.inst_id
    and ss.statistic# = 20) session_pga_memory
    ,(select ss.value
    from gv$sesstat ss
    where ss.sid = s.sid
    and ss.inst_id = s.inst_id
    and ss.statistic# = 15) session_uga_memory
    from gv$session s)
    union all
    select 'SGA: ' || name pid
    ,s.inst_id iid
    ,value bytes
    from gv$sga s
    select distinct iid, pid, sum(bytes) over (partition by iid, pid) bytes from vs
    IID PID BYTES
    1 PGA: 196764792 <=====
    1 SGA: Database Buffers 318767104
    1 SGA: Fixed Size 733688
    1 SGA: Redo Buffers 811008
    1 SGA: Variable Size 335544320
    2 PGA: 77159560 <=====
    2 SGA: Database Buffers 318767104
    2 SGA: Fixed Size 733688
    2 SGA: Redo Buffers 811008
    2 SGA: Variable Size 335544320
    second stat
    with vs as
    select 'PGA: ' pid
    ,p.inst_id iid
    ,p.pga_alloc_mem bytes
    from gv$session s
    ,gv$sesstat pcur
    ,gv$process p
    where pcur.statistic# in ( 20 -- = session pga memory
    ,15 -- = session uga memory
    and s.paddr = p.addr
    and pcur.sid = s.sid
    and pcur.INST_ID = s.INST_ID
    and pcur.INST_ID = p.INST_ID
    union all
    select 'SGA: ' || name pid
    ,s.inst_id iid
    ,value bytes
    from gv$sga s
    select distinct iid, pid, sum(bytes) over (partition by iid, pid) bytes from vs
    IID PID BYTES
    1 PGA: 342558636 <=====
    1 SGA: Database Buffers 318767104
    1 SGA: Fixed Size 733688
    1 SGA: Redo Buffers 811008
    1 SGA: Variable Size 335544320
    2 PGA: 186091416 <=====
    2 SGA: Database Buffers 318767104
    2 SGA: Fixed Size 733688
    2 SGA: Redo Buffers 811008
    2 SGA: Variable Size 335544320

    I'm sorry but it is not clear to me.
    - From v$session (1th stmt) I have
    nearly 196MB of PGA mem on instance 1
    and
    nearly 77MB of PGA mem on instance 2
    - From v$process (2th stmt) I have
    nearly 342MB of PGA mem on instance 1
    and
    nearly 186MB of PGA mem on instance 2
    then...
    342+186 - 196+77 = nearly 255MB of memory allocated by oracle processes but free?
    if I want calculate the total thing of the amount of the allocated memory from Oracle...It is more correct 2th statement that query v$process...it is true?

  • Java Memory Calculation

    Dear all,
    I have class
    Student{
    private int id;
    And my program, init array 10000000 student object.
    size = 10000000;
    Student[] sts = new Student[size];
    for(int i = 0; i< size; i++){
    sts[i] = new Student();
    Learning from
    http://www.javamex.com/tutorials/memory/object_memory_usage.shtml
    and
    http://www.javamex.com/tutorials/memory/array_memory_usage.shtml
    I calculation the memory usage for my programe is
    - 8: house keeping
    - 4 leng
    - size * 4 (object reference)
    - Each Student object size take (8 byte house keeping + 4 byte for id) = 12, padding 4 => 16 byte
    So the total memory is 8 + 4 + 4*size + 16*size = 20*size + 12 ~ 190M
    But the momory usage for my program is 277MB. That is the large difference.
    Could you give me some advice?
    Thank a lot for support.

    Helo..
    Using Windows Task manager is not the proper way to measure a Java programs Memory usage.
    Reason:When you run a java program ,it also requires the underlying JRE to run ,so the memory used for a java process in this case would be the memory for the Java programs Objects and also for the entire JRE.
    The Best way to measure your application's performance is use either of the two free tools:
    1.JConsole-its comes along with JDK. JDK_HOME/bin/jconsole
    2.Any Profiler Programs:A profiler for Java is a program which allows you to trace a running java program and see the memory and CPU consumption for the Java application.Netbeans comes with its own profiler.you can chk this out.
    The other option is to measure free memory before and after execution of the program using System Util Class.
    Hope this clarifies your qn.
    Thanks.

  • Total Memory vs GPU Memory

    Scout splits up memory usage between Total Memory and GPU memory, but iPhones/iPod Touches/iPads all have a Unified Memory Architecture which mean that both the CPU and GPU share system memory, which means there is no dedicated GPU memory on these devices.
    So with this in mind, how do we interpret Total Memory vs GPU Memory when profiling on an iOS device? For instance, if I want to determine the total memory used by my game, do I have to manually add together Total Memory + GPU Memory?

    Thank you for clarifying Michael. Can I suggest that the 'Total Memory' label be changed in future Scout releases, since this is not accurate. I feel it should be called something like 'System Memory' and a new property called 'Total Memory' should be created which displays System Memory + GPU Memory.
    In Scout's current form, if I want to know if I'm getting close to maxing out available memory on a device with Unified Memory Architecture (all iOS devices), I have to bust out a calculator and add the 2 memory values together, which is not ideal

  • HP Officejet Pro X576dw MFP (CN598A) Total memory question

    Hello,
    We bought a HP Officejet Pro X576dw MFP (CN598A), and we noticed something weird on the printer's web settings page.
    The specification on the hp website states that this printer comes with:
    - Memory, standard 768 MB (Not expandable)
    - Memory, maximum 768 MB
    But on the printer's web settings page, it shows the following:
    - Total Memory (KB) 415685
    - Available Memory (KB) 415199
    That's only like 405 MB of the memory installed.
    Does it mean that the OS of printer is taking about 363MB of memory or did we get a printer with a wrong memoery card installed?
    Can anyone with the same printer check the total memory information?
    Thanks.

    Good day,
    To get your issue more exposure, I would suggest posting it in the commercial forums since your product is a commercial product. You can do this at Commercial Forums.
    Enjoy your day!
    R a i n b o w 7000I work on behalf of HP
    Click the “Kudos Thumbs Up" at the bottom of this post to say
    “Thanks” for helping!
    Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!

  • VM Server's Total Memory in VM Manager

    Hey all:
    Here's the particulars, VM Server (2.2.1) cluster with 3 Dell R710's, each VM Server has 72GB physical Memory installed and 8 cpu's. VM Manager is running as VM Guest. In the VM Manager Front End, VM Server 1 in VM Pool1 is showing total Memory as being 49GB. I would have expected it to be 72GB minus the 548M(default VMServer install). So for kicks and giggles, I checked VM Server 2, same thing. I then changed VM Server 2 in VM Pool1 to allocate 2048M(in /etc/grub.conf) of physical memory to dom-0 and rebooted. Then checked VM Manager and it still shows the same. I checked to make sure the hypervisor is running in 64 bit mode and it is.
    Question is, why doesnt VM Manager show VM Server 1 having 71.5GB of available memory, and, VM Server 2 having 70G of available memory? Is there a memory limitation?
    TIA,
    Pete's
    Edited by: user627554 on Jun 2, 2011 8:17 PM

    xm info with hostname info scrubbed, see below.
    TIA,
    Pete's
    release : 2.6.18-128.2.1.4.25.el5xen
    version : #1 SMP Tue Mar 23 12:43:27 EDT 2010
    machine : i686
    nr_cpus : 8
    nr_nodes : 1
    cores_per_socket : 4
    threads_per_core : 2
    cpu_mhz : 2660
    hw_caps : bfebfbff:28100800:00000000:00000340:009ce3bd:00000000:00000001:00000000
    virt_caps :
    total_memory : 49142
    free_memory : 5035
    node_to_cpu : node0:0-7
    node_to_memory : node0:5035
    xen_major : 3
    xen_minor : 4
    xen_extra : .0
    xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p
    xen_scheduler : credit
    xen_pagesize : 4096
    platform_params : virt_start=0xfcc00000
    xen_changeset : unavailable
    cc_compiler : gcc version 4.1.2 20080704 (Red Hat 4.1.2-44)
    cc_compile_by : mockbuild
    cc_compile_domain : (none)
    cc_compile_date : Wed Mar 24 16:00:43 EDT 2010
    xend_config_format : 4

  • Working out the total memory consumed by a process

    Hi,
    I am writing a general snapshot utility that provides session statistics. The code is as follows:
    set pagesize 9999
    set linesize 140
    set heading off
    select SUBSTR(name,1,8) || ' sessions as on '||TO_CHAR(CURRENT_DATE, 'MON DD YYYY HH:MI AM') from v$database;
    set heading on
    column spid heading "OS PID" format a6
    column process format a13 heading "Client ProcID"
    column username  format a10
    column sid       format 999
    column serial#   format 99999
    column STATUS    format a3 HEADING 'ACT'
    column last      format 9,999.99
    column TotGets   format 999,999,999,999 HEADING 'Logical I/O'
    column phyRds    format 999,999 HEADING 'Physical I/O'
    column total_memory format 999,999 HEADING 'MEM/KB'
    SELECT
              substr(a.username,1,8) "lOGIN"
            , substr(a.sid,1,5) || '/'||substr(a.serial#,1,5) AS "SID/serial#"
            , TO_CHAR(a.logon_time, 'DD/MM HH:MI') "LOGGED IN SINCE"
            , substr(a.machine,1,10) HOST
            , substr(p.username,1,8)||'/'||substr(p.spid,1,5) "OS PID"
            , substr(a.osuser,1,8)||'/'||substr(a.process,1,5) "Client PID"
            , substr(a.program,1,15) PROGRAM
            --,ROUND((CURRENT_DATE-a.logon_time)*24) AS "Logged/Hours"
                    select round(sum(ss.value)/1024) from v$sesstat ss, v$statname sn
                    where ss.sid = a.sid and
                            sn.statistic# = ss.statistic# and
                            sn.name in ('session pga memory','session uga memory')
              ) AS total_memory
            , (b.block_gets + b.consistent_gets) TotGets
            , b.physical_reads phyRds
            , decode(a.status, 'ACTIVE', 'Y','INACTIVE', 'N') STATUS
            , CASE WHEN a.sid in (select sid from v$mystat where rownum = 1) THEN '<-- YOU' ELSE ' ' END "INFO"
    FROM
             v$process p
            ,v$session a
            ,v$sess_io b
    WHERE
    a.paddr = p.addr
    AND p.background IS NULL
    --AND  a.sid NOT IN (select sid from v$mystat where rownum = 1)
    AND a.sid = b.sid
    AND a.username is not null
    --AND (a.last_call_et < 3600 or a.status = 'ACTIVE')
    --AND CURRENT_DATE - logon_time > 0
    --AND a.sid NOT IN ( select sid from v$mystat where rownum=1)  -- exclude me
    --AND (b.block_gets + b.consistent_gets) > 0
    ORDER BY a.username;
    exitIn above I am trying to display a row per process so I have to cut the width of the columns. However, for the total memory consumed I assumed that it is the sum of values from v$sessstat as follows:
                    select round(sum(ss.value)/1024) from v$sesstat ss, v$statname sn
                    where ss.sid = a.sid and
                            sn.statistic# = ss.statistic# and
                            sn.name in ('session pga memory','session uga memory')
              ) AS total_memoryI have looked around and I think many refer to the sum of 'session pga memory' + ''session uga memory' as something workable.
    I therefore appreciate any comments on that and also anything that I can improve in this piece of code.
    Regards,
    Mich

    I don't know why this thread appears with the Aug 19 2001. This issue was posted Sept 9 2004.

  • Memory gates checking failed because the free memory is less than 5% of total memory

    ·         Business
    Goal: Achieve a stable environment
    ·         Repro
    Steps: n/a
    ·         Expected
    Results: I expect the MSCRM Async services to use a relatively static amount of RAM
    ·         Actual
    Results: Over the weekend, the memory hit critical mass and CRM failed
    ·         Environment:
     Windows Server 2008, SQL Server 2008, CRM 2013 On Premise - both on the same box, Email Router is installed on the same box. We have not yet applied either of the two new UR for 2013.
    I'm currently experiencing a memory leak in our production environment. I will fill out the details shortly.
    Here's the error:
    Log Name:      Application
    Source:        System.ServiceModel 4.0.0.0
    Date:          4/20/2014 11:39:14 PM
    Event ID:      3
    Task Category: WebHost
    Level:         Error
    Keywords:      Classic
    User:          NETWORK SERVICE
    Computer:      server.domain.com
    Description:
    WebHost failed to process a request.
    Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/58366981
    Exception: System.ServiceModel.ServiceActivationException: The service '/VisualWorkplace/XRMServices/2011/Organization.svc' cannot be activated due to an exception during compilation. 
    The exception message is:Memory gates checking failed because the free memory (1240145920 bytes) is less than
    5% of total memory.  As a result, the service will not be available for incoming requests.  To resolve this, either reduce the load on the machine or adjust the value of minFreeMemoryPercentageToActivateService on the serviceHostingEnvironment config
    element.. ---> System.InsufficientMemoryException: Memory gates checking failed because the free memory (1240145920 bytes) is less than 5% of total memory.  As a result, the service will not be available for incoming requests.  To resolve
    this, either reduce the load on the machine or adjust the value of minFreeMemoryPercentageToActivateService on the serviceHostingEnvironment config element.
       at System.ServiceModel.Activation.ServiceMemoryGates.Check(Int32 minFreeMemoryPercentage, Boolean throwOnLowMemory, UInt64& availableMemoryBytes)
       at System.ServiceModel.ServiceHostingEnvironment.HostingManager.CheckMemoryCloseIdleServices(EventTraceActivity eventTraceActivity)
       at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity)
    We just recently increased the available memory from 8GB to 24GB to help ensure that there is enough memory. This error never happened on CRM v4. According to the resource monitor, SQL is only reserving 20.7GB of RAM and there is 694MB of RAM in Standby.
    The main Async service is using 660MB and the maintenance Async service is using 265MB.
    To resolve the issue temporarily, I restarted both Async services this morning. Shortly after everything came back, they were holding fairly steady around 350MB and 200MB. It's been six hours since then.
    The last time I spoke with Microsoft about a similar problem, they suggested increasing the amount of RAM.

    It became more and more of a problem. It was impacting the users in a more subtle way at first. You couldn't configure the CRM for Outlook client. After a while, they couldn't use CRM in Outlook at all and users reporting not being able to complete phone
    call activities. I opened a ticket with MS and they suggested the same as Wilson Lou did. The organization error had nothing to do with the creep on the async services usage of RAM. It was indeed caused by SQL stealing all of the memory. Limiting the max usage
    to 24GB RAM has resolved that error. 
    My Async processes are still using a LOT of RAM, but now that I have more than enough RAM, it doesn't seem to be a problem anymore. They are currently using about 700MB RAM each.
    Also, I have upgraded to SP1, UR2.
    Eric Hula - CRM Administrator

  • Is there  a way to access total memory used by java instance?

    is there a way to access total memory used by java instance?
    i'm familiar with
    runtime.getTotalMemory() and runtime.getFreeMemory();
    and i understrnad that it is a measure of the amount of memory available for the heap used to allocate objects and the amount of memory not being used by the object heap --
    but is there a way to (from java get the value that you get when you go to the windows taskmanager and look at javavm.exe
    stephen

    i'm using java 1.4 if that helps

  • Why is 8gb only showing total memory of less than 6.5?

    why is 8gb only showing total memory of less than 6.5?

    Because the difference is due to the operating system taking up most of the diference and the other is how GB is advertised and actually used.
    http://en.wikipedia.org/wiki/Gigabyte

  • Change total memory settings

    Hi,
    I would like to know if there is any possibility to change the settings for the total memory,so it can go up to the 1Gb limit. Now it takes 136Mb from 384Mb, but, in case I increase the amount of memory on the pc,how can I change the database settings for total memory?
    Thank you!

    what is the best memory configuration for XE on Linux,? i have XE running on Linux SuSE, with a 1024 mb SWAP space, PIII (933 mhz),? (dumb questions i know)

  • What are the Processor, Operating system, hard drive device, Total Memory, Network card, System Graphics of the Silver ipad air

    what are the Processor, Operating system, hard drive device, Total Memory, Network card, System Graphics of the Silver ipad air?

    "Memory" in this case means RAM, the working space for the processor in the iPad. It is different from storage space, the latter being what is referred to by the "32GB", "64GB" etc. specification.
    Regards.
    Message was edited by: varjak paw

  • How to find out total memory used by each database ?

    I have two databases in one unix server.
    1) I need to know total memory used by each database.
    2) secondly, I want to know the detail used in each database.
    thanks

    For a database using dedicated shared servers, we can say total memory = 1 * SGA + sum (PGA) for all dedicated server processes (this excludes the size of the Oracle binary)
    For SGA, see
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14231/create.htm#sthref401
    or
    ipcs -mob | grep <oracle account> gives the SGA sizes for the 2 databases.
    for PGA,
    see PGA_USED_MEM column http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_2022.htm#sthref3837
    it's difficult to rely on Unix top/ps command because some Unix will add the shared memory to each dedicated server connection, some not.

  • I need to be able to give them a total price calculation when they submit the form. even if im not using credit card as my only payment option.

    i have an online menu - many of my customers pay by check, cash and credit card as well - is there not an option to show those options...  and items vary in price, i need to be able to give them a total price calculation when they submit the form.

    a) No, b)Yes. Firstly, the only payment gateway currently supported from FormsCentral is PayPal. If your customers complete the FormsCentral Form and order 6 of item 1 at one dollar each and 3 of item 2 at two dollars each, when they press 'Continue to Checkout' button, they are transferred to the PayPal Gateway - which will show the Total to Pay. That's no help for your folks wanting to pay by check. Think you may need another solution. Acrobat won't link directly to a Payment Gateway either, without you doing a bit of JavaScript etc.

  • Why total memory is so small?

    i use eclipse and when i run it I set the memory to 512M
    eclipse.exe -vmargs -Xmx512M
    But in my program, when i use Runtime.getRuntime().totalMemory()
    to get the total memory, i only get 2031616, i assumed the unit of this number is byte.
    Why the total memory is so small? I am confused.

    -Xmx sets the maximum available stack memory - Java uses only what it needs, up that maximim.

Maybe you are looking for