<?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: Swapinfo and Paging on HPUX 11.11 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/swapinfo-and-paging-on-hpux-11-11/m-p/3268300#M178192</link>
    <description>Hi Bill,&lt;BR /&gt;        &lt;BR /&gt;        The Question More specifically is when swapinfo is showing 490MB free why it is using Device swap space.&lt;BR /&gt;&lt;BR /&gt;       From Don's suggestions I figured out the dbsnmp oracle process definately has a memory leak problem.&lt;BR /&gt;       &lt;BR /&gt;       So can this be related to any kernel paramter(s) wherein the process can be allocated a maximum of XMB of memory and if it utilises more than that allocated memory then it will start paging????&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Girish</description>
    <pubDate>Thu, 06 May 2004 10:13:23 GMT</pubDate>
    <dc:creator>Girish Agarwal_1</dc:creator>
    <dc:date>2004-05-06T10:13:23Z</dc:date>
    <item>
      <title>Swapinfo and Paging on HPUX 11.11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapinfo-and-paging-on-hpux-11-11/m-p/3268291#M178183</link>
      <description>Hi All,&lt;BR /&gt;       I am not sure whether I am interpreting correctly or is it definately a problem.&lt;BR /&gt;        When I give swapinfo -mat on my machine, here is the output &lt;BR /&gt;Device Name MB      Used   Free    %Used&lt;BR /&gt;dev        2048      68    1980    3%       &lt;BR /&gt;reserve       -    1081   -1081&lt;BR /&gt;memory      729     319     410   44%&lt;BR /&gt;total      2777    1468    1309   53%   &lt;BR /&gt;&lt;BR /&gt;         My first Question is Why it is using dev memory when the physical memory is still only 44% used.&lt;BR /&gt;         My second Question is Why the memory  is 729MB instead of 1GB or atleast as per dmesg output &lt;BR /&gt;Physical: 1048576 Kbytes, lockable: 746048 Kbytes, available: 864560 Kbytes&lt;BR /&gt;         &lt;BR /&gt;          it should be 864MB.&lt;BR /&gt;         &lt;BR /&gt;          I am attaching the lotsfree paramtere , dbc_max_pct parameter and dbc_min_pct parameter values which were suggested in some earlier forums:-&lt;BR /&gt;&lt;BR /&gt;  kmtune -q dbc_max_pct &lt;BR /&gt;  Parameter Current Dyn Planned Module Version&lt;BR /&gt;===============================================================================&lt;BR /&gt;dbc_max_pct    15  -  15&lt;BR /&gt;&lt;BR /&gt;  kmtune -q dbc_min_pct&lt;BR /&gt;Parameter Current Dyn Planned Module Version&lt;BR /&gt;==============================================================================&lt;BR /&gt;dbc_min_pct    5  -  5&lt;BR /&gt;&lt;BR /&gt;kmtune -q lotsfree &lt;BR /&gt;Parameter Current Dyn Planned Module Version&lt;BR /&gt;===============================================================================&lt;BR /&gt;lotsfree   -  -    0&lt;BR /&gt;          &lt;BR /&gt;</description>
      <pubDate>Wed, 05 May 2004 10:08:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapinfo-and-paging-on-hpux-11-11/m-p/3268291#M178183</guid>
      <dc:creator>Girish Agarwal_1</dc:creator>
      <dc:date>2004-05-05T10:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Swapinfo and Paging on HPUX 11.11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapinfo-and-paging-on-hpux-11-11/m-p/3268292#M178184</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try this link from itrc,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000066374044" target="_blank"&gt;http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000066374044&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The itrc doc id is KBAN00000661.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Wed, 05 May 2004 10:11:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapinfo-and-paging-on-hpux-11-11/m-p/3268292#M178184</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2004-05-05T10:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Swapinfo and Paging on HPUX 11.11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapinfo-and-paging-on-hpux-11-11/m-p/3268293#M178185</link>
      <description>Hi Sanjay,&lt;BR /&gt;          Clearly the article shows that I have pseudo swap enabled. &lt;BR /&gt;          It says that the Totak KB column should be 75% of physical memory which in my case should be 1048576 * 75% = 786432 . but is shows 729MB .&lt;BR /&gt;          Also, it effectively says that dev usage will be greater then 0% if and only if the memory column says that all the memory has been used.&lt;BR /&gt;          Then my Question again is why this is not the case in my machine. Are there any misconfigured kernel parameters.&lt;BR /&gt;          Kindly suggest&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Girish</description>
      <pubDate>Wed, 05 May 2004 10:40:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapinfo-and-paging-on-hpux-11-11/m-p/3268293#M178185</guid>
      <dc:creator>Girish Agarwal_1</dc:creator>
      <dc:date>2004-05-05T10:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Swapinfo and Paging on HPUX 11.11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapinfo-and-paging-on-hpux-11-11/m-p/3268294#M178186</link>
      <description>pseudo-swap is not 75% of raw physical memory -- it is 75% of available physical memory after the kernel starts up. So you lose a little bit from kernel usage and the buffer&lt;BR /&gt;cache pages.&lt;BR /&gt;&lt;BR /&gt;Regarding why you've actually paged, the amount of memory being used as pseudo-swap doesn't directly correllate to the RAM in use -- so what's your actual physical usage? (You have 1.5Gb or so in reservations... if those pages are actually touched, you can easily trigger paging). &lt;BR /&gt;&lt;BR /&gt;Alternately, this may be the calm after the storm (running a high network load a few minutes back?) where there _was_ memory pressure which has died down and those pages just haven't been brought back in.&lt;BR /&gt;&lt;BR /&gt;In summary -- there isn't enough data with just swapinfo's output to know why you've paged. I'd look at Glance to see where the physical memory is in use.</description>
      <pubDate>Wed, 05 May 2004 11:09:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapinfo-and-paging-on-hpux-11-11/m-p/3268294#M178186</guid>
      <dc:creator>Don Morris_1</dc:creator>
      <dc:date>2004-05-05T11:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Swapinfo and Paging on HPUX 11.11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapinfo-and-paging-on-hpux-11-11/m-p/3268295#M178187</link>
      <description>Hi&lt;BR /&gt;You have 1gb in your machine, but only 729Mb can used for the user`s process ...its ok the machine was separate your memory.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 05 May 2004 11:22:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapinfo-and-paging-on-hpux-11-11/m-p/3268295#M178187</guid>
      <dc:creator>Emilio Brusa</dc:creator>
      <dc:date>2004-05-05T11:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: Swapinfo and Paging on HPUX 11.11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapinfo-and-paging-on-hpux-11-11/m-p/3268296#M178188</link>
      <description>Hi Don,&lt;BR /&gt;       In your reference to 75% of available memory after kernel . Is there any formula or calculation for caclulating available physical memory.&lt;BR /&gt;       As I have attached the dmesg output it shows that available memory is 864560 KB.&lt;BR /&gt;       75 % of that is approx 650MB.&lt;BR /&gt;      &lt;BR /&gt;   Also,&lt;BR /&gt;       Can you suggest some way as to how I can see whether paging is happening and at what scale. I see in vmstat 2 5 output that "free" column is ~ 4200 and "avm" column is 294789, which leads me to believe that this machine is paging.&lt;BR /&gt;                        &lt;BR /&gt;       Also can you guide me from where can I download glance if it is downloadble.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Girish &lt;BR /&gt;</description>
      <pubDate>Wed, 05 May 2004 12:31:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapinfo-and-paging-on-hpux-11-11/m-p/3268296#M178188</guid>
      <dc:creator>Girish Agarwal_1</dc:creator>
      <dc:date>2004-05-05T12:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Swapinfo and Paging on HPUX 11.11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapinfo-and-paging-on-hpux-11-11/m-p/3268297#M178189</link>
      <description>The 75% is of available memory after the kernel has finished most of the allocations (and set aside space for the buffer cache). To come up with a formula, I'd really have to sit down and go through all the tunables and how they affect boot-time allocations (since a lot of them directly influence the sizing of kernel data structures), number of processors, amount of memory (plus bad memory fragmentation, etc). &lt;BR /&gt;&lt;BR /&gt;In other words -- I don't think it's worth it for an exact formula, sorry. The "available" memory at the dmesg output comes a bit later.&lt;BR /&gt;&lt;BR /&gt;The long and the short of it -- 75% of physical memory will be *close* but not exact.&lt;BR /&gt;&lt;BR /&gt;We know that you're paging -- disk is actually used, after all. I'm more curious as to what caused the paging, since that's what you want to address (i.e. have you got a memory leak, do you just need more memory for the workloads the box runs, etc.) Glance comes as part of the Enterprise Operating Environment... I was under the impression that there's a trial version in other OE's -- hopefully someone can correct me if I'm wrong on this.&lt;BR /&gt;&lt;BR /&gt;You can buy it as part of PRM if you don't need the whole Enterprise OE (that seems to be the way to get it from my quick search on software.hp.com -- I don't claim to be speaking for HP or an expert on Glance delivery models here.)&lt;BR /&gt;&lt;BR /&gt;One quick alternative to Glance would be to just run &lt;BR /&gt;&lt;BR /&gt;UNIX95= ps -eo 'vsz sz pid args' |more&lt;BR /&gt;&lt;BR /&gt;and look for processes with large SZ fields (physical usage). [Or use pstat_getprocvm() to pull all the data yourself and analyze it..]&lt;BR /&gt;</description>
      <pubDate>Wed, 05 May 2004 15:01:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapinfo-and-paging-on-hpux-11-11/m-p/3268297#M178189</guid>
      <dc:creator>Don Morris_1</dc:creator>
      <dc:date>2004-05-05T15:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Swapinfo and Paging on HPUX 11.11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapinfo-and-paging-on-hpux-11-11/m-p/3268298#M178190</link>
      <description>The minor difference between swapinfo and 75% of RAM is due to the actual way it is calculated internally. Memory allocation in HP-UX (like most Unix versions) is very complicated. Memory usage is as simple as kernel plus programs. There is a shared buffer cache that is dynmaic (changes all the time), shared memory which is requested by one program but shared by others, there are I/O buffers, and the list goes on. &lt;BR /&gt; &lt;BR /&gt;Usually when questions are asked about memory usage, the problem is due to a program(s) that are failin with out-of-memory messages, or performance seems sluggish. vmstat has the answer: ignore all the columns except po (page out). Single digits (0-9) are fine and can be ignored. Double digits are OK for short periods of time by high double digits (50-99) indicate memory shortage. 3 digits and higher indicate a massive impact on performance caused by very small RAM. Most database systems need 4Gb as a minimum, 8-16Gb for heavy usage.</description>
      <pubDate>Wed, 05 May 2004 20:20:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapinfo-and-paging-on-hpux-11-11/m-p/3268298#M178190</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-05-05T20:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Swapinfo and Paging on HPUX 11.11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapinfo-and-paging-on-hpux-11-11/m-p/3268299#M178191</link>
      <description>Make sure that you have more disk swap space than RAM, and enough swap chunks in the kernel to cover the swap space, otherwise RAM will not be fully used other than for psuedo swap.</description>
      <pubDate>Thu, 06 May 2004 08:36:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapinfo-and-paging-on-hpux-11-11/m-p/3268299#M178191</guid>
      <dc:creator>Ted Buis</dc:creator>
      <dc:date>2004-05-06T08:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Swapinfo and Paging on HPUX 11.11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapinfo-and-paging-on-hpux-11-11/m-p/3268300#M178192</link>
      <description>Hi Bill,&lt;BR /&gt;        &lt;BR /&gt;        The Question More specifically is when swapinfo is showing 490MB free why it is using Device swap space.&lt;BR /&gt;&lt;BR /&gt;       From Don's suggestions I figured out the dbsnmp oracle process definately has a memory leak problem.&lt;BR /&gt;       &lt;BR /&gt;       So can this be related to any kernel paramter(s) wherein the process can be allocated a maximum of XMB of memory and if it utilises more than that allocated memory then it will start paging????&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Girish</description>
      <pubDate>Thu, 06 May 2004 10:13:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapinfo-and-paging-on-hpux-11-11/m-p/3268300#M178192</guid>
      <dc:creator>Girish Agarwal_1</dc:creator>
      <dc:date>2004-05-06T10:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Swapinfo and Paging on HPUX 11.11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapinfo-and-paging-on-hpux-11-11/m-p/3268301#M178193</link>
      <description>Memory are programming errors. Memory is requested but never released when no longer needed. However, this condition (a process slowly growing in size) may be perfectly normal. Kernel parameters like maxdsiz do not 'enable' memory leaks, they simply limit the maximum amount of growth of a program. Most programs with memory leaks will usually crash when they hit the limit. The swap space usage you are seeing is very likely due to memory mapped files which always use some swap by design.</description>
      <pubDate>Thu, 06 May 2004 17:55:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapinfo-and-paging-on-hpux-11-11/m-p/3268301#M178193</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-05-06T17:55:14Z</dc:date>
    </item>
  </channel>
</rss>

