<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how to determine the memory is sufficient or not for a new database in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-the-memory-is-sufficient-or-not-for-a-new/m-p/4190934#M323656</link>
    <description>when i check glance, the current memory utilisation is 99% or 100% but when i check swapinfo -tam, it gives me the memory utilisation is 35 % as per below: why the values different? why one should i refer? hope to hear from you. thanks a lot&lt;BR /&gt;             Mb      Mb      Mb   PCT  START/      Mb&lt;BR /&gt;TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME&lt;BR /&gt;dev        8192     163    8029    2%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;dev        6144     160    5984    3%       0       -    1  /dev/vg00/lvswap&lt;BR /&gt;reserve       -   13612  -13612&lt;BR /&gt;memory    15183    5338    9845   35%&lt;BR /&gt;total     29519   19273   10246   65%       -       0    -&lt;BR /&gt;</description>
    <pubDate>Mon, 05 May 2008 02:21:32 GMT</pubDate>
    <dc:creator>apple</dc:creator>
    <dc:date>2008-05-05T02:21:32Z</dc:date>
    <item>
      <title>how to determine the memory is sufficient or not for a new database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-the-memory-is-sufficient-or-not-for-a-new/m-p/4190928#M323650</link>
      <description>dear HPUX gurus,&lt;BR /&gt;currently we have 16 GB of memory and 14GB swap space. there are 8 oracle databases running on this server. currently it looks ok, but we have new requirement for another sybase with 8GB memory requirement to put into this server. how can we access whether with this new database our database performance will not be degraded? attached is the current top output and swapinfo -tam output. do we need to buy more memory? hope to hear from you. than ks alot&lt;BR /&gt;</description>
      <pubDate>Fri, 02 May 2008 12:45:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-the-memory-is-sufficient-or-not-for-a-new/m-p/4190928#M323650</guid>
      <dc:creator>apple</dc:creator>
      <dc:date>2008-05-02T12:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to determine the memory is sufficient or not for a new database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-the-memory-is-sufficient-or-not-for-a-new/m-p/4190929#M323651</link>
      <description>With only 14GB of swap space you will not be able to use all 16GB of physical RAM.  In order to use ALL your RAM ( - reserve space ) you MUST have at a minimum equivelance.  Once you hit 16GB new processes will fail with cannot fork or malloc error.&lt;BR /&gt;&lt;BR /&gt;Back to your question:&lt;BR /&gt;Add up the SGA requirements for each database.  If it comes close or exceeds the 14GB of usable space then either reduce the application mem requirements or buy more RAM.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 02 May 2008 12:51:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-the-memory-is-sufficient-or-not-for-a-new/m-p/4190929#M323651</guid>
      <dc:creator>Tim Nelson</dc:creator>
      <dc:date>2008-05-02T12:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to determine the memory is sufficient or not for a new database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-the-memory-is-sufficient-or-not-for-a-new/m-p/4190930#M323652</link>
      <description>dear hpux gurus,&lt;BR /&gt;With only 14GB of swap space you will not be able to use all 16GB of physical RAM. In order to use ALL your RAM ( - reserve space ) you MUST have at a minimum equivelance. Once you hit 16GB new processes will fail with cannot fork or malloc error.&lt;BR /&gt;1. almond08&amp;gt; reserve memory is 12GB, is the reserve memory static? how can we know who reserve it? &lt;BR /&gt;2. almond&amp;gt; minimum equivalence of swap space and physical RAM. meaning the swap space is double of physical ram. in this case the swap space should be 32GB (doube of physical ram)? &lt;BR /&gt;&lt;BR /&gt;Add up the SGA requirements for each database. If it comes close or exceeds the 14GB of usable space then either reduce the application mem requirements or buy more RAM.&lt;BR /&gt;almond&amp;gt; the total SGA requirements should not more than our current physical size which is 15GB or 14GB. is the current reserve is used by our oracle database?  &lt;BR /&gt;&lt;BR /&gt;hope to hear from you. thanks a lot&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 02 May 2008 13:07:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-the-memory-is-sufficient-or-not-for-a-new/m-p/4190930#M323652</guid>
      <dc:creator>apple</dc:creator>
      <dc:date>2008-05-02T13:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to determine the memory is sufficient or not for a new database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-the-memory-is-sufficient-or-not-for-a-new/m-p/4190931#M323653</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Based on your swapinfo I think you have a problem. You are already using 63% of available memory.&lt;BR /&gt;&lt;BR /&gt;You do not want to be consistently paging and you will be if you don't add memory.&lt;BR /&gt;&lt;BR /&gt;The other alternative is to reduce the SGA of the other instances.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 02 May 2008 13:18:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-the-memory-is-sufficient-or-not-for-a-new/m-p/4190931#M323653</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2008-05-02T13:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to determine the memory is sufficient or not for a new database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-the-memory-is-sufficient-or-not-for-a-new/m-p/4190932#M323654</link>
      <description>dear hpux gurus,&lt;BR /&gt;what does it 63% tells? would be truly grateful you could let me know what is the problem.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You do not want to be consistently paging and you will be if you don't add memory.&lt;BR /&gt;how do you know its gonna  be consistently paging? &lt;BR /&gt;&lt;BR /&gt;The other alternative is to reduce the SGA of the other instances. &lt;BR /&gt;how can we as system admin measure the SGA of the other instances. it's configured by our database admin. if system admin can measure, may be we can advice our database admin? is it based on the buzyness of the database like update? select etc&lt;BR /&gt;&lt;BR /&gt;hope to hear from you. thanks a lot&lt;BR /&gt;</description>
      <pubDate>Fri, 02 May 2008 13:25:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-the-memory-is-sufficient-or-not-for-a-new/m-p/4190932#M323654</guid>
      <dc:creator>apple</dc:creator>
      <dc:date>2008-05-02T13:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to determine the memory is sufficient or not for a new database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-the-memory-is-sufficient-or-not-for-a-new/m-p/4190933#M323655</link>
      <description>Checking application shared memory usage can be done with ipcs -ma&lt;BR /&gt;&lt;BR /&gt;The 63% used is a little misleading as it includes the psuedo swap allocation.  psuedo swap is a little trick tht HPUX uses to allow you to run process even though you do not have enough physical swapspace.  Kinda like a swap device in memory.  psuedo swap will continue to be reduced as you use up more and more physical memory.  Once you hit 16GB psuedo swap will be zero and any new processes will require another process to be deactivated to disk ( swapped out ).&lt;BR /&gt;&lt;BR /&gt;Once your %used on the dev items is more than zero, at some time you have started deactivating processes ( use glance or vmstat or sar to monitory deactivation rates )&lt;BR /&gt;&lt;BR /&gt;Glance is a better tool to monitor real memory usage.&lt;BR /&gt;&lt;BR /&gt;My initial estimate of current memory usage is about 5GB out of 16GB ( really 14GB because that is all the device swap you have )&lt;BR /&gt;&lt;BR /&gt;If you were to add an application that at a minimum requires 8GB of RAM (not counting misc other process requirements ) you would be at about 13 or 14GB.  Without increasing your device swap space, that is it.  Processes will start to fail.&lt;BR /&gt;&lt;BR /&gt;If you increased your device swap to 18GB ( a little fluff so the system does not fail when you reach 16GB ) Then you would have about 2GB free.  2GB of free RAM is a good buffer. but... because you do not know the % of error you should test or ask that the application requirements be reduced for initial testing then review the usage and tweek the apps up until everyone is happy.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 02 May 2008 14:56:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-the-memory-is-sufficient-or-not-for-a-new/m-p/4190933#M323655</guid>
      <dc:creator>Tim Nelson</dc:creator>
      <dc:date>2008-05-02T14:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to determine the memory is sufficient or not for a new database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-the-memory-is-sufficient-or-not-for-a-new/m-p/4190934#M323656</link>
      <description>when i check glance, the current memory utilisation is 99% or 100% but when i check swapinfo -tam, it gives me the memory utilisation is 35 % as per below: why the values different? why one should i refer? hope to hear from you. thanks a lot&lt;BR /&gt;             Mb      Mb      Mb   PCT  START/      Mb&lt;BR /&gt;TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME&lt;BR /&gt;dev        8192     163    8029    2%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;dev        6144     160    5984    3%       0       -    1  /dev/vg00/lvswap&lt;BR /&gt;reserve       -   13612  -13612&lt;BR /&gt;memory    15183    5338    9845   35%&lt;BR /&gt;total     29519   19273   10246   65%       -       0    -&lt;BR /&gt;</description>
      <pubDate>Mon, 05 May 2008 02:21:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-the-memory-is-sufficient-or-not-for-a-new/m-p/4190934#M323656</guid>
      <dc:creator>apple</dc:creator>
      <dc:date>2008-05-05T02:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to determine the memory is sufficient or not for a new database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-the-memory-is-sufficient-or-not-for-a-new/m-p/4190935#M323657</link>
      <description>have just get info from dba, added up all the instances sga requirements are 8GB. currently we have 15GB physical memory. 15GB minus 8GB= we have left 7GB. new database req is 8GB. but how much operating system is taking from our phyiscal memory for operating system operations. can we assume the left 7GB can be solely use by the new database? if we increase the device swap space is it ok? sorry if my question is not smart. hope to hear from you. thanks alot</description>
      <pubDate>Mon, 05 May 2008 02:32:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-the-memory-is-sufficient-or-not-for-a-new/m-p/4190935#M323657</guid>
      <dc:creator>apple</dc:creator>
      <dc:date>2008-05-05T02:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to determine the memory is sufficient or not for a new database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-the-memory-is-sufficient-or-not-for-a-new/m-p/4190936#M323658</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;&amp;gt; but how much operating system is taking from our phyiscal memory for operating system operations. can we assume the left 7GB can be solely use by the new database? if we increase the device swap space is it ok?&lt;BR /&gt;&lt;BR /&gt;In general, the amount of memory required by the operating system is usually minimal. &lt;BR /&gt;&lt;BR /&gt;For instance, if you consider Oracle, there is a fix amount of memory that is "reserved" for the SGA at the startup of the database instance itself. (if you have Oracle 10g, you need to look at the SGA_TARGET value). After that, depending of the configuration, whether you are running dedicate server mode or MTS, the memory is allocated accordingly. In dedicated server mode, you usually size for the maximum amount connections possible. The more connections, you have the more memory it will require. In your case, it is most probably that you are running Dedicated server mode.&lt;BR /&gt;&lt;BR /&gt;Now that you are bringing in the Sybase database, you need to look into how memory allocation is done. If it is similar to Oracle, you need to do the sizing as i mention above...&lt;BR /&gt;&lt;BR /&gt;Also, you might monitor you database performance and see if you have not done an overkill at the Oracle level... in which case, you will haev to release a few GB of memory..&lt;BR /&gt;&lt;BR /&gt;Just a few thoughts.&lt;BR /&gt;&lt;BR /&gt;hope this helps!&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Mon, 05 May 2008 03:53:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-the-memory-is-sufficient-or-not-for-a-new/m-p/4190936#M323658</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2008-05-05T03:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to determine the memory is sufficient or not for a new database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-the-memory-is-sufficient-or-not-for-a-new/m-p/4190937#M323659</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;&amp;gt; but how much operating system is taking from our phyiscal memory for operating system operations. can we assume the left 7GB can be solely use by the new database? if we increase the device swap space is it ok?&lt;BR /&gt;&lt;BR /&gt;In general, the amount of memory required by the operating system is minimal. &lt;BR /&gt;&lt;BR /&gt;For instance, if you consider Oracle, there is a fix amount of memory that is "reserved" for the SGA at the startup of the database instance itself. (if you have Oracle 10g, you need to look at the SGA_TARGET value). After that, depending of the configuration, whether you are running dedicate server mode or MTS, the memory is allocated accordingly. In dedicated server mode, you usually size for the maximum amount connections possible. The more connections, you have the more memory it will require. In your case, it is most probably that you are running Dedicated server mode.&lt;BR /&gt;&lt;BR /&gt;Now that you are bringing in the Sybase database, you need to look into how memory allocation is done. If it is similar to Oracle, you need to do the sizing as i mention above...&lt;BR /&gt;&lt;BR /&gt;Also, you might monitor you database performance and see if you have not done an overkill at the Oracle level... in which case, you will haev to release a few GB of memory..&lt;BR /&gt;&lt;BR /&gt;Just a few thoughts.&lt;BR /&gt;&lt;BR /&gt;hope this helps!&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Mon, 05 May 2008 03:53:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-the-memory-is-sufficient-or-not-for-a-new/m-p/4190937#M323659</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2008-05-05T03:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to determine the memory is sufficient or not for a new database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-the-memory-is-sufficient-or-not-for-a-new/m-p/4190938#M323660</link>
      <description>&lt;BR /&gt;Dear Almond&lt;BR /&gt;&lt;BR /&gt;When considering the performance of any system it is important to determine a&lt;BR /&gt;baseline of what is acceptable. How does the system perform when there is no&lt;BR /&gt;load from applications or users? What are the systems resources in terms of&lt;BR /&gt;memory , both physical and virtual?  How many processors does the system have&lt;BR /&gt;and what is the speed and RISC level?  What is the layout of the data ? What&lt;BR /&gt;are the key kernel parameters set to and how are those resources being&lt;BR /&gt;utilized? What are the utilities to measure these ?&lt;BR /&gt;&lt;BR /&gt;Memory Resources &lt;BR /&gt;&lt;BR /&gt;HP-UX utilizes both physical memory , RAM  and virtual memory, referred to as&lt;BR /&gt;swap. There are three resources that can be used to determine the amount&lt;BR /&gt;of RAM: syslog.log,dmesg, and adb (absolute de-bugger) .The information dmesg&lt;BR /&gt;reports comes from /var/adm/syslog/syslog.log ,while using dmesg is&lt;BR /&gt;convienient, if the system has logged too many errors recently, the memory&lt;BR /&gt;information may not be available.&lt;BR /&gt;&lt;BR /&gt;Insufficient memory resources are a major cause of performance problems and&lt;BR /&gt;should be the first area to check .&lt;BR /&gt;&lt;BR /&gt;The memory information from dmesg is at the bottom of the output .&lt;BR /&gt;&lt;BR /&gt;example:&lt;BR /&gt; Memory Information :&lt;BR /&gt;physical page size =4096 bytes, logical page size= 4096 bytes&lt;BR /&gt;Physical: 524288 Kbytes, locakble: 380880 Kbytes , available: 439312&lt;BR /&gt;&lt;BR /&gt;Using adb reads the memory from a more reliable source, the kernel.&lt;BR /&gt;&lt;BR /&gt;To determine the physical memory (RAM) using adb:&lt;BR /&gt;&lt;BR /&gt;for HP-UX 10.X&lt;BR /&gt; example:&lt;BR /&gt;&lt;BR /&gt; echo  physmem/D | adb -k /stand/vmunix /dev/kmem &lt;BR /&gt;physmem:&lt;BR /&gt;physmem:  24576&lt;BR /&gt;&lt;BR /&gt;for HP-UX 11.X systems running on 32 bit architecture:&lt;BR /&gt; example:&lt;BR /&gt;&lt;BR /&gt; echo phys_mem_pages/D | adb /stand/vmunix /dev/kmem &lt;BR /&gt;phys_mem_pages:&lt;BR /&gt;phys_mem_pages: 24576&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;for HP-UX 11.X systems running on 64 bit architecture:&lt;BR /&gt; example:&lt;BR /&gt;&lt;BR /&gt; echo phys_mem_pages/D | adb64 -k /stand/vmunix /dev/mem&lt;BR /&gt;phys_mem_pages:&lt;BR /&gt;phys_mem_pages: 262144&lt;BR /&gt;&lt;BR /&gt;The results of these commands are in 4 Kb memory pages, to determine the size&lt;BR /&gt;in bytes multiply by 4096 .&lt;BR /&gt;&lt;BR /&gt;To fully utilize all of the RAM on a system there must be a sufficient amount&lt;BR /&gt;of virtual memory to accomodate all processes . The HP recommendation is at&lt;BR /&gt;that virtual memory be at least eaqual to physical memory plus application&lt;BR /&gt;size.  This is outlined in the System Adminstration Tasks Manual .&lt;BR /&gt;&lt;BR /&gt;To determine virtual memory configuration run the following command :&lt;BR /&gt;#swapinfo –tam &lt;BR /&gt;       Mb       Mb      Mb      PCT    START/     Mb&lt;BR /&gt;TYPE  AVAIL    USED      FREE   USED    LIMIT    RESERVE     PRI    NAME&lt;BR /&gt;dev           1024         0             1024      0      1   /dev/vg00/lvol1&lt;BR /&gt;reserve        184       -184&lt;BR /&gt;memory 372     96         276    26&lt;BR /&gt;total 1396    280       1116     20&lt;BR /&gt;&lt;BR /&gt;The key areas to monitor are reserve , memory and total .  For a process&lt;BR /&gt;to spawn it needs a sufficient amount of virtual memory to be placed in&lt;BR /&gt;reserve. There should be a sufficient amount of free device swap to open any&lt;BR /&gt;processes that may be spawned during the course of operations. By subtracting&lt;BR /&gt;thereserve from the device total you can determine this value.&lt;BR /&gt;If  there is an insufficient  amount available ( typically from device swap)&lt;BR /&gt;you will receive an error : cannot fork : not enough virtual memory.  If&lt;BR /&gt;this error is received , you will need to allocate more device swap. This&lt;BR /&gt;should be configured on a disk with no other swap partitions, and ideally of&lt;BR /&gt;the same size and priority of existing swap logical volumes to enable&lt;BR /&gt;interleaving.&lt;BR /&gt;&lt;BR /&gt;Refer to the Application Note KBAN00000218&lt;BR /&gt;Configuring Device Swap for details on the procedure.&lt;BR /&gt;&lt;BR /&gt;The memory line is enabled with the kernel parameter swapmem_on set to 1 . This&lt;BR /&gt;allows a percentage of RAM to be allocated for pseudo-swap. This is the default&lt;BR /&gt;and should be used unless the amount of lockable memory exceeds 25% of RAM.&lt;BR /&gt;&lt;BR /&gt;You can determine the amount of lockable memory by running the command:&lt;BR /&gt;example:&lt;BR /&gt;echo total_lockable_mem/D | adb -k /stand/vmunix  /dev/mem &lt;BR /&gt;&lt;BR /&gt;total_lockable_mem:&lt;BR /&gt;total_lockable_mem: 185280&lt;BR /&gt;&lt;BR /&gt;This will return the amount in Kbytes of lockable memory in use.&lt;BR /&gt;&lt;BR /&gt;If pseudo-swap is disabled by setting swapmem_on to 0 , there will typically be&lt;BR /&gt;a need to increase the amount of device swap in the system to accommodate&lt;BR /&gt;paging and reserve area.&lt;BR /&gt;&lt;BR /&gt;If the total under PCT USED is 90 or greater it is recommended to increase the&lt;BR /&gt;amount of device swap.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;After physical and virtual memory is determined , we need to determine how much&lt;BR /&gt;buffer cache has been configured and how much is being used. By default the&lt;BR /&gt;system will use dynamic buffer cache . The kernel will show buf pages and nbuf&lt;BR /&gt;set to 0 in SAM. The parameters that govern the size of the dynamic buffer&lt;BR /&gt;cache are dbc_min_pct and dbc_max_pct , these define the minimum&lt;BR /&gt;and maximum percentage of RAM allocated.  The default values are 5% mimimum and&lt;BR /&gt;50% maximum .&lt;BR /&gt;&lt;BR /&gt;On systems with small amounts of RAM these values may be useful for&lt;BR /&gt;dedicated applications. Since the introduction of HP-UX 11.0 the amount of RAM&lt;BR /&gt;a system can have has increased from 3.75Gb to our newest systems with up to&lt;BR /&gt;256Gb.  Keeping the default values for systems with a large amount of RAM can&lt;BR /&gt;have a negative impact on performance, due to the time the lower level routines&lt;BR /&gt;that check on free memory in the cache take.&lt;BR /&gt;&lt;BR /&gt; To monitor the use of the buffer cache run the following command :&lt;BR /&gt;&lt;BR /&gt;sar –b 5 30 &lt;BR /&gt;&lt;BR /&gt;You will see output similar to :&lt;BR /&gt;&lt;BR /&gt;bread/s lread/s %rcache bwrit/s lwrit/s %wcache pread/s pwrit/s&lt;BR /&gt;  0      95      100       1       2      54       0       0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Ideally we want to see a %wcache of 95 or greater. If the system consistenly&lt;BR /&gt;shows %wcache less than 75 it would be advisable to lower the value of&lt;BR /&gt;dbc_max_pct. In 32 bit architecture, the buffer cache resides in quadrant 3,&lt;BR /&gt;limiting the maximum size to 1 Gb. Typically values less than 300Mb are&lt;BR /&gt;preferable.&lt;BR /&gt;&lt;BR /&gt;Memory for applications&lt;BR /&gt;&lt;BR /&gt;For applications to have a sufficient amount of space for text, data and stack&lt;BR /&gt;in memory the kernel has to be tuned. The total size for text, data and stack&lt;BR /&gt;for 32 bit systems using EXEC_MAGIC is in quadrant 1 and 2, and is 2Gb less the&lt;BR /&gt;size of the Uarea . These are represented by the kernel parameters maxtsize,&lt;BR /&gt;maxdsiz and maxssiz . Under SHMEM_MAGIC the total size is limited to 1Gb in&lt;BR /&gt;quadrant 1.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If these parameters are undersized the system will error.  Insufficient maxdsiz&lt;BR /&gt;will return “out of memory “ and insufficient maxsiz will&lt;BR /&gt;return “stack growth failure”.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The last configurable area of memory to check is shared memory . Any&lt;BR /&gt;application running within the 32 bit domain will have a limit of 1.75Gb total&lt;BR /&gt;for shared memory for EXEC_MAGIC and 2.75Gb using SHMEM_MAGIC. Individual&lt;BR /&gt;processes cannot cross quadrant boundaries , so the largest shmmax can be for&lt;BR /&gt;32 bit is 1Gb.&lt;BR /&gt;&lt;BR /&gt;It is important to determine if the application is running 32 bit or 64 bit&lt;BR /&gt;when troubleshooting 64 bit systems.&lt;BR /&gt;&lt;BR /&gt;This can be done with the file command :&lt;BR /&gt;&lt;BR /&gt;example :&lt;BR /&gt;&lt;BR /&gt;file /stand/vmunix&lt;BR /&gt;/stand/vmunix:  ELF-64 executable object file - PA-RISC 2.0 (LP64)&lt;BR /&gt;&lt;BR /&gt;PA-RISC versions under 2.0 are 32 bit&lt;BR /&gt;&lt;BR /&gt; For an overview on shared memory for 32 bit systems refer to the Application&lt;BR /&gt;Note RCMEMKBAN00000027 Understanding Shared Memory on PA RISC Systems  .&lt;BR /&gt;&lt;BR /&gt; The kernel parameter shmmax determines the size of the shared memory&lt;BR /&gt;region. SAM  will not allow this to be configured greater than 1 quadrant , or&lt;BR /&gt;1Gb even on 64 bit systems. If a larger shmmax value is needed for 64 bit&lt;BR /&gt;systems it has to be done using a manual kernel build.&lt;BR /&gt;&lt;BR /&gt;In a 64 bit system 32 bit applications will only address the 32 bit shared&lt;BR /&gt;memory region,64 bit applications will only address the 64 bit regions.&lt;BR /&gt;&lt;BR /&gt;Example of a creating a kernel with shmmax at 2Gb:&lt;BR /&gt;&lt;BR /&gt; cd /stand/build&lt;BR /&gt; /usr/lbin/sysadm/system_prep -v -s  system&lt;BR /&gt; kmtune -s shmmax= 2147483648  -S /stand/build/system&lt;BR /&gt; /usr/sbin/mk_kernel -s ./system&lt;BR /&gt; mv /stand/system /stand/system.prev&lt;BR /&gt; mv /stand/build/system /stand/system&lt;BR /&gt; kmupdate&lt;BR /&gt; shutdown -ry 0&lt;BR /&gt;&lt;BR /&gt;To determine shared memory allocation, use ipcs this utility is used to&lt;BR /&gt;report status of interprocess communication facilities. Run the following&lt;BR /&gt;command:&lt;BR /&gt;&lt;BR /&gt;ipcs –mob&lt;BR /&gt;&lt;BR /&gt;You will see an output similar to this :&lt;BR /&gt;&lt;BR /&gt;ipcs -mob&lt;BR /&gt;IPC status from /dev/kmem as of Tue Apr 17 09:29:33 2001&lt;BR /&gt;T      ID     KEY        MODE        OWNER     GROUP NATTCH  SEGSZ&lt;BR /&gt;Shared Memory:&lt;BR /&gt;m       0 0x411c0359 --rw-rw-rw-      root      root      0    348&lt;BR /&gt;m       1 0x4e0c0002 --rw-rw-rw-      root      root      1  61760&lt;BR /&gt;m       2 0x412006c9 --rw-rw-rw-      root      root      1   8192&lt;BR /&gt;m       3 0x301c3445 --rw-rw-rw-      root      root      3 1048576&lt;BR /&gt;m    4004 0x0c6629c9 --rw-r-----      root      root      2 7235252&lt;BR /&gt;m       5 0x06347849 --rw-rw-rw-      root      root      1  77384&lt;BR /&gt;m     206 0x4918190d --rw-r--rw-      root      root      0  22908&lt;BR /&gt;m    6607 0x431c52bc --rw-rw-rw-    daemon    daemon      1 5767168&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The two fields of the most interest are NATTCH and SEGSZ.&lt;BR /&gt;&lt;BR /&gt;NATTCH -The number of processes attached to the associated  shared&lt;BR /&gt;memory segment. Look for those that are 0, they indicate processes who have not&lt;BR /&gt;released their shared memory segment.&lt;BR /&gt;&lt;BR /&gt;If there are multiple segments showing with an NATTACH of zero , especially if&lt;BR /&gt;they are owned by a database, this can be an indication that the segments are&lt;BR /&gt;not being efficiently released . This is due to the program not calling&lt;BR /&gt;detachreg  .  These segments can be removed using ipcrm -m shmid.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Note : Even though there is no process attached to the segment , the data&lt;BR /&gt;structure is still intact. The shared memory segment and data structure&lt;BR /&gt;associated with it are destroyed by executing this command.&lt;BR /&gt;&lt;BR /&gt;SEGSZ The size of the associated shared memory segment in bytes. The&lt;BR /&gt;total of SEGSZ for a 32 bit system using EXEC_MAGIC cannot exeed 1879048192&lt;BR /&gt;bytes or 1.75Gb, or 2952790016 bytes or 2.75Gb for SHMEM_MAGIC.&lt;BR /&gt;</description>
      <pubDate>Mon, 05 May 2008 04:45:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-the-memory-is-sufficient-or-not-for-a-new/m-p/4190938#M323660</guid>
      <dc:creator>Sajjad Sahir</dc:creator>
      <dc:date>2008-05-05T04:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to determine the memory is sufficient or not for a new database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-the-memory-is-sufficient-or-not-for-a-new/m-p/4190939#M323661</link>
      <description>u can use ipcs tool&lt;BR /&gt;&lt;BR /&gt;see out put of ipcs&lt;BR /&gt;&lt;BR /&gt;data1# ipcs -mob&lt;BR /&gt;IPC status from /dev/kmem as of Mon May  5 08:46:10 2008&lt;BR /&gt;T         ID     KEY        MODE        OWNER     GROUP NATTCH      SEGSZ&lt;BR /&gt;Shared Memory:&lt;BR /&gt;m          0 0x411c1148 --rw-rw-rw-      root      root      0        348&lt;BR /&gt;m          1 0x4e0c0002 --rw-rw-rw-      root      root      2      61760&lt;BR /&gt;m          2 0x41201d2f --rw-rw-rw-      root      root      1       8192&lt;BR /&gt;m          3 0x00a5c581 --rw-------     sfmdb     users      2    1695744</description>
      <pubDate>Mon, 05 May 2008 04:47:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-the-memory-is-sufficient-or-not-for-a-new/m-p/4190939#M323661</guid>
      <dc:creator>Sajjad Sahir</dc:creator>
      <dc:date>2008-05-05T04:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: how to determine the memory is sufficient or not for a new database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-the-memory-is-sufficient-or-not-for-a-new/m-p/4190940#M323662</link>
      <description>Almond,&lt;BR /&gt;&lt;BR /&gt;  You can get the kmeminfo tools from HP Response center, it will give you the break down of each memory utilization.&lt;BR /&gt;&lt;BR /&gt;WK</description>
      <pubDate>Mon, 05 May 2008 06:02:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-the-memory-is-sufficient-or-not-for-a-new/m-p/4190940#M323662</guid>
      <dc:creator>whiteknight</dc:creator>
      <dc:date>2008-05-05T06:02:36Z</dc:date>
    </item>
  </channel>
</rss>

