<?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: pmap - anonymous segment in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/pmap-anonymous-segment/m-p/5196086#M653463</link>
    <description>Hi ,&lt;BR /&gt;&lt;BR /&gt;i am trying to optimise memory utilisation of my application ( which is very huge in terms of LOC , millions of lines of code) .&lt;BR /&gt;&lt;BR /&gt;Anonymous segments are shown even if i have global variables . &lt;BR /&gt;in such cases how to distinguish &lt;BR /&gt;memory taken by &lt;BR /&gt; 1) dynamic loader &lt;BR /&gt; 2) application variable .&lt;BR /&gt;Ideally memory taken by dynamic loader should have been shared Data and not private Data .&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Tanmay</description>
    <pubDate>Sat, 29 Aug 2009 17:09:12 GMT</pubDate>
    <dc:creator>tanmay patil</dc:creator>
    <dc:date>2009-08-29T17:09:12Z</dc:date>
    <item>
      <title>pmap - anonymous segment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pmap-anonymous-segment/m-p/5196084#M653461</link>
      <description>&lt;!--!*#--&gt;Hi ,&lt;BR /&gt;&lt;BR /&gt;Have a created sample dynamic SO using sample program &lt;BR /&gt;&lt;BR /&gt;void manipulate()&lt;BR /&gt;{&lt;BR /&gt;    printf("Hello\n");&lt;BR /&gt;    return;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;If i load this SO , using dlopen and do pmap on this SO , i get following below which i did not expect , as i don't have any variables i did not expect any private Data taken at loading.&lt;BR /&gt;&lt;BR /&gt;When we did pmap after loading SO , we still got anonymous data of 108 KBS &lt;BR /&gt;  FILE VSZ&lt;BR /&gt;[anonymous] 4K PD&lt;BR /&gt;[anonymous] 16K PD&lt;BR /&gt;[anonymous] 48K PD&lt;BR /&gt;[anonymous] 16K PD&lt;BR /&gt;[anonymous] 8K PD&lt;BR /&gt;[anonymous] 8K PD&lt;BR /&gt;[anonymous] 8K PD&lt;BR /&gt;&lt;BR /&gt;What does this anonymous segments signify.</description>
      <pubDate>Fri, 28 Aug 2009 17:19:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pmap-anonymous-segment/m-p/5196084#M653461</guid>
      <dc:creator>tanmay patil</dc:creator>
      <dc:date>2009-08-28T17:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: pmap - anonymous segment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pmap-anonymous-segment/m-p/5196085#M653462</link>
      <description>&amp;gt;Have a created sample dynamic SO&lt;BR /&gt;&lt;BR /&gt;(These are called shared libs on HP-UX.)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I don't have any variables I did not expect any private Data taken at loading.&lt;BR /&gt;&lt;BR /&gt;Even if you have no data, you need a linkage table to call things and to reference that string.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;What does this anonymous segments signify?&lt;BR /&gt;&lt;BR /&gt;You have to track down the callers.&lt;BR /&gt;Typically shlibs may have two private mmaps, one for data and one for bss.&lt;BR /&gt;Thread stacks are also mmapped.&lt;BR /&gt;&lt;BR /&gt;Also, dld needs mmaps for its symbol table, possibly those 8 K ones.</description>
      <pubDate>Sat, 29 Aug 2009 08:09:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pmap-anonymous-segment/m-p/5196085#M653462</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-08-29T08:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: pmap - anonymous segment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pmap-anonymous-segment/m-p/5196086#M653463</link>
      <description>Hi ,&lt;BR /&gt;&lt;BR /&gt;i am trying to optimise memory utilisation of my application ( which is very huge in terms of LOC , millions of lines of code) .&lt;BR /&gt;&lt;BR /&gt;Anonymous segments are shown even if i have global variables . &lt;BR /&gt;in such cases how to distinguish &lt;BR /&gt;memory taken by &lt;BR /&gt; 1) dynamic loader &lt;BR /&gt; 2) application variable .&lt;BR /&gt;Ideally memory taken by dynamic loader should have been shared Data and not private Data .&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Tanmay</description>
      <pubDate>Sat, 29 Aug 2009 17:09:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pmap-anonymous-segment/m-p/5196086#M653463</guid>
      <dc:creator>tanmay patil</dc:creator>
      <dc:date>2009-08-29T17:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: pmap - anonymous segment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pmap-anonymous-segment/m-p/5196087#M653464</link>
      <description>&amp;gt;I am trying to optimise memory utilisation of my application &lt;BR /&gt;&lt;BR /&gt;Code is free, how many Mb of data do you have?  How many simultaneous users will you have?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Anonymous segments are shown even if I have global variables.&lt;BR /&gt;&lt;BR /&gt;Naturally.  All shlib static storage duration data is mmapped private.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;in such cases how to distinguish memory taken by&lt;BR /&gt;1) dynamic loader&lt;BR /&gt;2) application variable.&lt;BR /&gt;&lt;BR /&gt;If the size is based on the output of size(1), then it is user data, otherwise it is dld, thread stacks or application mmap(2) calls.  If it shows up in gdb's "info shared", then it is 2).&lt;BR /&gt;&lt;BR /&gt;Or as a gedanken experiment, increase the size of your data to N Mb and anything smaller is dld's.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Ideally memory taken by dynamic loader should have been shared Data and not private Data.&lt;BR /&gt;&lt;BR /&gt;Why would you think that?  This is process specific data and must be private.  Only text is mapped shared.</description>
      <pubDate>Sun, 30 Aug 2009 00:50:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pmap-anonymous-segment/m-p/5196087#M653464</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-08-30T00:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: pmap - anonymous segment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pmap-anonymous-segment/m-p/5196088#M653465</link>
      <description>Hi ,&lt;BR /&gt;&lt;BR /&gt;Have millons of lines of code in my application . it would not be possible to change the code .&lt;BR /&gt;Will have 1200 users connecting to my application.</description>
      <pubDate>Sun, 30 Aug 2009 16:50:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pmap-anonymous-segment/m-p/5196088#M653465</guid>
      <dc:creator>tanmay patil</dc:creator>
      <dc:date>2009-08-30T16:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: pmap - anonymous segment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pmap-anonymous-segment/m-p/5196089#M653466</link>
      <description>&amp;gt;Have millions of lines of code in my application.&lt;BR /&gt;&lt;BR /&gt;I'm saying that the cost of code is nearly "free", it is only data that matters.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Will have 1200 users connecting to my application.&lt;BR /&gt;&lt;BR /&gt;So every data item is multiplied by 1200.&lt;BR /&gt;Unless you change your application to use threads and not processes.  Or use shared memory.</description>
      <pubDate>Sun, 30 Aug 2009 17:41:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pmap-anonymous-segment/m-p/5196089#M653466</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-08-30T17:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: pmap - anonymous segment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pmap-anonymous-segment/m-p/5196090#M653467</link>
      <description>I have received inhouse tool from HP folks which actually shows regions of memory occupied by shared memory . What pmap shows is program memory + kernel memory .</description>
      <pubDate>Sun, 13 Sep 2009 06:04:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pmap-anonymous-segment/m-p/5196090#M653467</guid>
      <dc:creator>tanmay patil</dc:creator>
      <dc:date>2009-09-13T06:04:10Z</dc:date>
    </item>
  </channel>
</rss>

