<?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 top: memory output confusing in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/top-memory-output-confusing/m-p/3137387#M154445</link>
    <description>Hello !&lt;BR /&gt;&lt;BR /&gt;I have spent almost a day trying to find a document or manual that describes the memory output of top command on HP-UX...but I didn't succeed:&lt;BR /&gt;&lt;BR /&gt;The top output:&lt;BR /&gt;==============&lt;BR /&gt;Memory: 2475676K (905868K) real, 4651812K (2893064K) virtual, 1579284K free  Page# 1/20&lt;BR /&gt;&lt;BR /&gt;dmesg output:&lt;BR /&gt;=============&lt;BR /&gt;Physical: 5767168 Kbytes, lockable: 4272304 Kbytes, available: 4914408 Kbytes&lt;BR /&gt;&lt;BR /&gt;....I thought real mem was the same as physical but in this case it seams to be the same as virtual memory and what is number in paranthes ? &lt;BR /&gt;</description>
    <pubDate>Fri, 05 Dec 2003 10:21:27 GMT</pubDate>
    <dc:creator>henrik bartels_1</dc:creator>
    <dc:date>2003-12-05T10:21:27Z</dc:date>
    <item>
      <title>top: memory output confusing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/top-memory-output-confusing/m-p/3137387#M154445</link>
      <description>Hello !&lt;BR /&gt;&lt;BR /&gt;I have spent almost a day trying to find a document or manual that describes the memory output of top command on HP-UX...but I didn't succeed:&lt;BR /&gt;&lt;BR /&gt;The top output:&lt;BR /&gt;==============&lt;BR /&gt;Memory: 2475676K (905868K) real, 4651812K (2893064K) virtual, 1579284K free  Page# 1/20&lt;BR /&gt;&lt;BR /&gt;dmesg output:&lt;BR /&gt;=============&lt;BR /&gt;Physical: 5767168 Kbytes, lockable: 4272304 Kbytes, available: 4914408 Kbytes&lt;BR /&gt;&lt;BR /&gt;....I thought real mem was the same as physical but in this case it seams to be the same as virtual memory and what is number in paranthes ? &lt;BR /&gt;</description>
      <pubDate>Fri, 05 Dec 2003 10:21:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/top-memory-output-confusing/m-p/3137387#M154445</guid>
      <dc:creator>henrik bartels_1</dc:creator>
      <dc:date>2003-12-05T10:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: top: memory output confusing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/top-memory-output-confusing/m-p/3137388#M154446</link>
      <description>From what I have seen is that top has a decieving report of memory.&lt;BR /&gt;&lt;BR /&gt;The best way is to look at the kernel or use glance or even swapinfo will show it.&lt;BR /&gt;&lt;BR /&gt;here is a good script that offers the actual memory on your system. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------cut here-----------------------&lt;BR /&gt;&lt;BR /&gt;# cat hpmem&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;#&lt;BR /&gt;# Taken from the HP/UniGraphics FAQ&lt;BR /&gt;# You must be ROOT to execute this since it uses adb to&lt;BR /&gt;# examine the running kernel&lt;BR /&gt;#&lt;BR /&gt;GetKernelSymbol()&lt;BR /&gt;{&lt;BR /&gt;echo "$1/D" | \&lt;BR /&gt;adb -k $hpux /dev/kmem | \&lt;BR /&gt;tr "\012" " " | \&lt;BR /&gt;read junk junk2 kval&lt;BR /&gt;}&lt;BR /&gt;hpux=/hp-ux&lt;BR /&gt;rev=$(uname -r | cut -d. -f2)&lt;BR /&gt;if ((rev &amp;gt; 9)); then hpux=/stand/vmunix ;fi&lt;BR /&gt;/bin/uname -a&lt;BR /&gt;GetKernelSymbol "processor_count"&lt;BR /&gt;print CPU Count: $kval&lt;BR /&gt;GetKernelSymbol "itick_per_tick"&lt;BR /&gt;let speed=kval/10000&lt;BR /&gt;print CPU Speed: $speed MHz&lt;BR /&gt;if ((rev &amp;gt; 10)); then&lt;BR /&gt;print CPU HW Support: `getconf HW_CPU_SUPP_BITS`-bit&lt;BR /&gt;print Kernel Support: `getconf KERNEL_BITS`-bit&lt;BR /&gt;GetKernelSymbol "memory_installed_in_machine"&lt;BR /&gt;else&lt;BR /&gt;GetKernelSymbol "physmem"&lt;BR /&gt;fi&lt;BR /&gt;let mb=kval*4/1024 # convert pages to MB&lt;BR /&gt;print RAM Size: $mb MB&lt;BR /&gt;GetKernelSymbol "bufpages"&lt;BR /&gt;let mb=kval*4/1024 # convert pages to MB&lt;BR /&gt;print bufpages: $mb MB&lt;BR /&gt;GetKernelSymbol "maxuprc"&lt;BR /&gt;print maxuprc: $kval&lt;BR /&gt;GetKernelSymbol "maxvgs"&lt;BR /&gt;print maxvgs: $kval&lt;BR /&gt;GetKernelSymbol "maxfiles"&lt;BR /&gt;print maxfiles: $kval&lt;BR /&gt;GetKernelSymbol "max_thread_proc"&lt;BR /&gt;print max_thread_proc: $kval&lt;BR /&gt;GetKernelSymbol "nfile"&lt;BR /&gt;print nfile: $kval&lt;BR /&gt;GetKernelSymbol "nflocks"&lt;BR /&gt;print nflock: $kval&lt;BR /&gt;GetKernelSymbol "nproc"&lt;BR /&gt;print nproc: $kval&lt;BR /&gt;GetKernelSymbol "ninode"&lt;BR /&gt;print ninode: $kval&lt;BR /&gt;GetKernelSymbol "vfd_cw"&lt;BR /&gt;print shmmax: $kval&lt;BR /&gt;GetKernelSymbol "shmmni"&lt;BR /&gt;print shmmni: $kval&lt;BR /&gt;GetKernelSymbol "dbc_max_pct"&lt;BR /&gt;print dbc_max_pct: $kval&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Dec 2003 10:39:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/top-memory-output-confusing/m-p/3137388#M154446</guid>
      <dc:creator>Todd McDaniel_1</dc:creator>
      <dc:date>2003-12-05T10:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: top: memory output confusing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/top-memory-output-confusing/m-p/3137389#M154447</link>
      <description>Actually the memory information from top and dmesg are totally different. dmesg is showing the physical memory information that was picked up from the log files (boot time), where as top is showing the process-memory information.&lt;BR /&gt;&lt;BR /&gt;The values in brackets are memory in "active". Read these threads too:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=44849" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=44849&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=207806" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=207806&lt;/A&gt;</description>
      <pubDate>Fri, 05 Dec 2003 10:40:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/top-memory-output-confusing/m-p/3137389#M154447</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2003-12-05T10:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: top: memory output confusing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/top-memory-output-confusing/m-p/3137390#M154448</link>
      <description>There are different calcultion methods for different utilities.  You can use the script in the prior post, you can use other utilities.&lt;BR /&gt;&lt;BR /&gt;I personally like swapinfo -tam it gives a good memory picture but might further confuse you because the results may not correlate with top.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 05 Dec 2003 10:41:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/top-memory-output-confusing/m-p/3137390#M154448</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-12-05T10:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: top: memory output confusing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/top-memory-output-confusing/m-p/3137391#M154449</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;see the man page&lt;BR /&gt;&lt;BR /&gt; HP-UX Reference Volume 1 of 5&lt;BR /&gt; &lt;BR /&gt; Section 1: Commands  &lt;BR /&gt; T  &lt;BR /&gt; timex(1)  &lt;BR /&gt; touch(1)   &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;top(1) Description&lt;BR /&gt;Examples&lt;BR /&gt;Author&lt;BR /&gt;    &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;NAME&lt;BR /&gt;top - display and update information about the top processes on the system &lt;BR /&gt;SYNOPSIS &lt;BR /&gt;&lt;BR /&gt;top [-s time] [-d count] [-q] [-u] [-h] [-n number]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;--------------------------------------------------------------------------------&lt;BR /&gt; DESCRIPTION &lt;BR /&gt;&lt;BR /&gt;top displays the top processes on the system and periodically updates the information. Raw CPU percentage is used to rank the processes.&lt;BR /&gt;Options &lt;BR /&gt;&lt;BR /&gt;top recognizes the following command-line options: -s time   Set the delay between screen updates to time seconds. The default delay between updates is 5 seconds. &lt;BR /&gt;-d count   Show only count displays, then exit. A display is considered to be one update of the screen. This option is used to select the number of displays to be shown before the program exits. &lt;BR /&gt;-q    This option runs the top program at the same priority as if it is executed via a nice -20 command so that it will execute faster (see nice(1) ). This can be very useful in discovering any system problem when the system is very sluggish. This option is accessibly only to users who have appropriate privileges. &lt;BR /&gt;-u    User ID (uid) numbers are displayed instead of usernames. This improves execution speed by eliminating the additional time required to map uid numbers to user names. &lt;BR /&gt;-h    Hides the individual CPU state information for systems having multiple processors. Only the average CPU status will be displayed. &lt;BR /&gt;-n number   Show only number processes per screen. Note that this option is ignored if number is greater than the maximum number of processes that can be displayed per screen. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Screen-Control Commands &lt;BR /&gt;&lt;BR /&gt;When displaying multiple-screen data, top recognizes the following keyboard screen-control commands: j    Display next screen if the current screen is not the last screen. &lt;BR /&gt;k    Display previous screen if the current screen is not the first screen. &lt;BR /&gt;t    Display the first (top) screen. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Program Termination &lt;BR /&gt;&lt;BR /&gt;To exit the program and resume normal user activities, type q at any time.&lt;BR /&gt;&lt;BR /&gt;Display Description &lt;BR /&gt;&lt;BR /&gt;Three general classes of information are displayed by top: System Data:  &lt;BR /&gt;   The first few lines at the top of the display show general information about the state of the system, including: &lt;BR /&gt;System name and current time. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Load averages in the last one, five, and fifteen minutes. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Number of existing processes and the number of processes in each state (sleeping, waiting, running, starting, zombie, and stopped). &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Percentage of time spent in each of the processor states (user, nice, system, idle, interrupt and swapper) per processor on the system. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Average value for each of the processor states (only on multi-processor systems). &lt;BR /&gt; &lt;BR /&gt;Memory Data    Includes virtual and real memory in use (with the amount of memory considered "active" in parentheses) and the amount of free memory. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;*************************************&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Top is a poor estimate get Glance to see it properly&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;          Steve Steel&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Dec 2003 10:41:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/top-memory-output-confusing/m-p/3137391#M154449</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2003-12-05T10:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: top: memory output confusing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/top-memory-output-confusing/m-p/3137392#M154450</link>
      <description>Forgot, also vmstat will show active memory use...&lt;BR /&gt;&lt;BR /&gt;vmstat 5 4 will give you an interval to look at to show realtime memory.</description>
      <pubDate>Fri, 05 Dec 2003 10:47:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/top-memory-output-confusing/m-p/3137392#M154450</guid>
      <dc:creator>Todd McDaniel_1</dc:creator>
      <dc:date>2003-12-05T10:47:18Z</dc:date>
    </item>
  </channel>
</rss>

