<?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: questions about procsize in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/questions-about-procsize/m-p/5078672#M440022</link>
    <description>End of post!&lt;BR /&gt;i read carefully the previous answers! sorry!!!!</description>
    <pubDate>Thu, 08 Nov 2007 07:17:56 GMT</pubDate>
    <dc:creator>EnmaAi</dc:creator>
    <dc:date>2007-11-08T07:17:56Z</dc:date>
    <item>
      <title>questions about procsize</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/questions-about-procsize/m-p/5078668#M440018</link>
      <description>Hi!&lt;BR /&gt;I'm using procsize to see how much memory a process(2258) is using, but I don't know how to interpret the results... &lt;BR /&gt;Where can I find more information about procsize, I cant' find anything....&lt;BR /&gt;&lt;BR /&gt;*using procsize&lt;BR /&gt;PID = 2258&lt;BR /&gt;UAREA = v   456&lt;BR /&gt;TEXT  = 10 &lt;BR /&gt;DATA  = 4085&lt;BR /&gt;STACK  = 528&lt;BR /&gt;SHMEM = 0&lt;BR /&gt;IO = 0&lt;BR /&gt;MMAP = 111238&lt;BR /&gt;swalloc  = 23023&lt;BR /&gt;Total = 116317&lt;BR /&gt;              ---- * ----&lt;BR /&gt;*using glance&lt;BR /&gt;pid    proc_name       mem_virt&lt;BR /&gt;--------------------------------&lt;BR /&gt;2258     java          412.1mb    &lt;BR /&gt;&lt;BR /&gt;Can anybody answer my questions please ^_^&lt;BR /&gt;&lt;BR /&gt;1)I read "the numbers in the output of  procsize are the number of 4K pages. So, mulitply by 4096 to get a byte count"&lt;BR /&gt;?????? an example please...&lt;BR /&gt;&lt;BR /&gt;2)Are the results of glance and procsize the same??? &lt;BR /&gt;&lt;BR /&gt;3)What are the meanings of:&lt;BR /&gt;UAREA   TEXT   DATA  STACK  SHMEM     IO   MMAP  swalloc   Total ????&lt;BR /&gt;&lt;BR /&gt;Thanks and regards</description>
      <pubDate>Wed, 07 Nov 2007 11:24:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/questions-about-procsize/m-p/5078668#M440018</guid>
      <dc:creator>EnmaAi</dc:creator>
      <dc:date>2007-11-07T11:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: questions about procsize</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/questions-about-procsize/m-p/5078669#M440019</link>
      <description>Well, I don't know what procsize is -- but I have a good idea from what you've posted (it is pretty obviously using data from pstat_getprocvm()).&lt;BR /&gt;&lt;BR /&gt;1) Well, actually it is in pages and a page size is determine from sysconf(_SC_PAGE_SIZE); Usually that's 4096 bytes, yes.&lt;BR /&gt;&lt;BR /&gt;So [for example] your Text usage is (10 * 4096) or 40960 bytes (or 40kb).&lt;BR /&gt;&lt;BR /&gt;2) Assuming it is reporting Virtual usage and not Physical [since Glance is definitely virtual] -- procsize Total is 116317 pages [from what I can tell, this doesn't include Swap... which is good]. That's 465268kb (116317*4) or 454.363Mb. No, they're not exactly the same... but Glance if I recall correctly adjusts shared objects to balance the virtual size across all the attached processes... so the 30Mb difference is likely there. Certainly close enough for most purposes, anyway.&lt;BR /&gt;&lt;BR /&gt;3) They're the types of the virtual objects reported. Uareas are Kernel User Areas used by threads. Text is the program text (executable from the binary), Data is Static and Dynamic Data [kind of obvious], Stack is the User main thread stack, Shmem is System V Shared Memory, IO is Memory Mapped I/O, MMAP is Memory Mapped objects (either Anonymous memory or Files). swalloc is, I assume Swap Allocated shorthand.&lt;BR /&gt;&lt;BR /&gt;Total is well, total... &lt;BR /&gt;&lt;BR /&gt;Honestly -- if you have to ask what Text, Data etc. are -- you should probably look over the Memory Management White Paper at:&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/1218/mem_mgt.html" target="_blank"&gt;http://docs.hp.com/en/1218/mem_mgt.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Otherwise, understanding what these tools are telling you is going to be difficult.</description>
      <pubDate>Wed, 07 Nov 2007 13:33:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/questions-about-procsize/m-p/5078669#M440019</guid>
      <dc:creator>Don Morris_1</dc:creator>
      <dc:date>2007-11-07T13:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: questions about procsize</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/questions-about-procsize/m-p/5078670#M440020</link>
      <description>Enma,&lt;BR /&gt;&lt;BR /&gt;Since procsize itÂ´s and unsupported HP-UX tool you will not find much information for it, your best bet is to open a case in the Response Center and letÂ´s them analize the output for it.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Jaime.</description>
      <pubDate>Wed, 07 Nov 2007 14:02:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/questions-about-procsize/m-p/5078670#M440020</guid>
      <dc:creator>Jaime Bolanos Rojas.</dc:creator>
      <dc:date>2007-11-07T14:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: questions about procsize</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/questions-about-procsize/m-p/5078671#M440021</link>
      <description>thanks for your help!&lt;BR /&gt;&lt;BR /&gt;I'm using procsize because I wanted to compare both results and they are different... I don't know why...&lt;BR /&gt;&lt;BR /&gt;with glance: 412.1Mb&lt;BR /&gt;with procsize:454 Mb&lt;BR /&gt;&lt;BR /&gt;42Mb is a great difference!!!&lt;BR /&gt;does anyone know why this is happening??&lt;BR /&gt;&lt;BR /&gt;thanks and regards,&lt;BR /&gt;^_^</description>
      <pubDate>Thu, 08 Nov 2007 07:13:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/questions-about-procsize/m-p/5078671#M440021</guid>
      <dc:creator>EnmaAi</dc:creator>
      <dc:date>2007-11-08T07:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: questions about procsize</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/questions-about-procsize/m-p/5078672#M440022</link>
      <description>End of post!&lt;BR /&gt;i read carefully the previous answers! sorry!!!!</description>
      <pubDate>Thu, 08 Nov 2007 07:17:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/questions-about-procsize/m-p/5078672#M440022</guid>
      <dc:creator>EnmaAi</dc:creator>
      <dc:date>2007-11-08T07:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: questions about procsize</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/questions-about-procsize/m-p/5078673#M440023</link>
      <description>no more questions</description>
      <pubDate>Thu, 08 Nov 2007 07:18:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/questions-about-procsize/m-p/5078673#M440023</guid>
      <dc:creator>EnmaAi</dc:creator>
      <dc:date>2007-11-08T07:18:27Z</dc:date>
    </item>
  </channel>
</rss>

