<?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: Why so many threads? in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/why-so-many-threads/m-p/3969450#M95296</link>
    <description>&amp;gt;I guess the fact that it can't find any compilation unit is because the program was not compiled with an HP compiler? Or maybe some compiler switch disabled footprint in the object file?&lt;BR /&gt;&lt;BR /&gt;The executable has probably been stripped.  Since you do have libCsup, it was compiled with aC++.</description>
    <pubDate>Tue, 27 Mar 2007 21:53:38 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2007-03-27T21:53:38Z</dc:date>
    <item>
      <title>Why so many threads?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/why-so-many-threads/m-p/3969442#M95288</link>
      <description>Hi,&lt;BR /&gt;we are using a 3rd-party executable. After upgrading to its latest version, we notice it allocates now a lot of memory, just since the beginning.&lt;BR /&gt;By using tusc and glance we can see it is creating on startup as many threads as processors there are, each with a 8 Mb mmap() region. The previous version created only one.&lt;BR /&gt;According to its developers, they are not creating the threads expressly nor compiling the program with the +Oparallel switch but the matter is: setting the environment variable MP_NUMBER_OF_THREADS=1 does the trick and only one thread is created.&lt;BR /&gt;Questions:&lt;BR /&gt;1) How can this be? Is there another compiler option that can lead to the creation of parallel threads?&lt;BR /&gt;2) Given an executable, is there a way to know the options it was compiled with?&lt;BR /&gt;Thanks.&lt;BR /&gt;Regards.&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Mar 2007 15:23:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/why-so-many-threads/m-p/3969442#M95288</guid>
      <dc:creator>Jose M. del Rio</dc:creator>
      <dc:date>2007-03-26T15:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Why so many threads?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/why-so-many-threads/m-p/3969443#M95289</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;You don't say what the third party executable is.&lt;BR /&gt;&lt;BR /&gt;You updated the program and its performance characteristics changed.&lt;BR /&gt;&lt;BR /&gt;You did not patch your HP-UX system or make changes to it.&lt;BR /&gt;&lt;BR /&gt;The developers are not accurate, they changed something. &lt;BR /&gt;&lt;BR /&gt;Most of the time when something like this occurs its a result of the last thing you did, which was to update the executable.&lt;BR /&gt;&lt;BR /&gt;It is possible you did so without following system prepartion guidelines, but you should have been notified of that, certainly when you contacted the application vendor.&lt;BR /&gt;&lt;BR /&gt;If you mentioned the name of the third party product, you might find someone who has experienced this issue can provide assistance. Right now you've given us very little to go by.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 26 Mar 2007 15:45:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/why-so-many-threads/m-p/3969443#M95289</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-03-26T15:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Why so many threads?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/why-so-many-threads/m-p/3969444#M95290</link>
      <description>ON HPUX 11.0 and later the OS supported kernel threads.  A programmer creates multiple threads to do parallel operations on different processors.  Evidently the programmer put a capability to limit the number of threads which limits the programs capability to utilize a multiprocessor box.  Threads are a valid way of modeling applications so a multithreaded application is not a problem. In fact some of the HP-UX OS applications like the midaemon and vxfsd and other processes have multiple threads.  IF you want to see this if you have glance you can goto the process report and add the column "PROC_THREAD_COUNT" to the report and see what processes on HP-UX utilize multiple threads.</description>
      <pubDate>Mon, 26 Mar 2007 21:37:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/why-so-many-threads/m-p/3969444#M95290</guid>
      <dc:creator>Emil Velez</dc:creator>
      <dc:date>2007-03-26T21:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Why so many threads?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/why-so-many-threads/m-p/3969445#M95291</link>
      <description>&amp;gt;1) How can this be? Is there another compiler option that can lead to the creation of parallel threads?&lt;BR /&gt;&lt;BR /&gt;+Oopenmp will also create threads.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;2) Given an executable, is there a way to know the options it was compiled with?&lt;BR /&gt;&lt;BR /&gt;If you have a recent linker patch, use /usr/ccs/bin/footprints.&lt;BR /&gt;&lt;BR /&gt;You can also use chatr(1) on the executable and look for libcps.&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Mar 2007 00:51:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/why-so-many-threads/m-p/3969445#M95291</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-03-27T00:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Why so many threads?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/why-so-many-threads/m-p/3969446#M95292</link>
      <description>&lt;!--!*#--&gt;Steven: the executable is 'gsrvr.shared'. It is included in ESRI's ArCSDE software.&lt;BR /&gt;&lt;BR /&gt;Emil: in this case, the problem with having multiple threads is: a gsrvr is a dedicated server process, servicing a unique client connection. Our server has 16 CPUs so every gsrvr creates on startup +15 additional threads. Each thread has, among other regions, a 8 Mb MMAP region. That makes 15*8 Mb = 120 Mb per gsrvr. It is not uncommon for us to have 400 concurrent connections =&amp;gt; 400 * 120 Mb = 48 Gb. Our swap space gets exhausted.&lt;BR /&gt;&lt;BR /&gt;Dennis:&lt;BR /&gt;- chatr shows it was linked with libcps.2. Does this mean either +Oparallel or +Oopenmp were used?&lt;BR /&gt;- none of our servers have the footprints command. Do you know which product we should install?&lt;BR /&gt;&lt;BR /&gt;Thanks to all of you.</description>
      <pubDate>Tue, 27 Mar 2007 07:04:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/why-so-many-threads/m-p/3969446#M95292</guid>
      <dc:creator>Jose M. del Rio</dc:creator>
      <dc:date>2007-03-27T07:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Why so many threads?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/why-so-many-threads/m-p/3969447#M95293</link>
      <description>Hi Jose:&lt;BR /&gt;&lt;BR /&gt;For 11.23 PHSS_34860 would bring you the 'footprint' binary.  It's contained in the lastest linker patch as Dennis noted.&lt;BR /&gt;&lt;BR /&gt;For 11.11 use patch PHSS_35381.&lt;BR /&gt;&lt;BR /&gt;If you are running 11.31 you should already have it.  The online manpages for 11.31 offer insight into its output.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 27 Mar 2007 07:12:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/why-so-many-threads/m-p/3969447#M95293</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-03-27T07:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Why so many threads?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/why-so-many-threads/m-p/3969448#M95294</link>
      <description>&amp;gt;- chatr shows it was linked with libcps.2. Does this mean either +Oparallel or +Oopenmp were used?&lt;BR /&gt;&lt;BR /&gt;Yes.</description>
      <pubDate>Tue, 27 Mar 2007 08:02:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/why-so-many-threads/m-p/3969448#M95294</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-03-27T08:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Why so many threads?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/why-so-many-threads/m-p/3969449#M95295</link>
      <description>&lt;!--!*#--&gt;Thanks James &amp;amp; Dennis.&lt;BR /&gt;It's incredible how useful this forum can be :-)&lt;BR /&gt;Here is footprint's output.&lt;BR /&gt;According to the man page, I guess the fact that it can't find any compilation unit is because the program was not compiled with an HP compiler? Or maybe some compiler switch disabled footprint in the object file?&lt;BR /&gt;It seems elfdump can't find compilation units either.&lt;BR /&gt;&lt;BR /&gt;ensnada6:/arcsde/sdeexe91/bin#/usr/ccs/bin/footprints -v gsrvr.shared&lt;BR /&gt;Scanning gsrvr.shared ...&lt;BR /&gt;  Shared library: /usr/lib/pa20_64/libCsup.2 (system library - not scanned)&lt;BR /&gt;  Shared library: /usr/lib/pa20_64/libstream.2 (system library - not scanned)&lt;BR /&gt;  Shared library: /usr/lib/pa20_64/libcl.2 (system library - not scanned)&lt;BR /&gt;  Shared library: /usr/lib/pa20_64/libnsl.1 (system library - not scanned)&lt;BR /&gt;  Shared library: /usr/lib/pa20_64/libdl.1 (system library - not scanned)&lt;BR /&gt;  Shared library: /usr/lib/pa20_64/libm.2 (system library - not scanned)&lt;BR /&gt;  Shared library: /usr/lib/pa20_64/librt.2 (system library - not scanned)&lt;BR /&gt;  Shared library: /usr/lib/pa20_64/libF90.1 (system library - not scanned)&lt;BR /&gt;  Shared library: /usr/lib/pa20_64/libcps.2 (system library - not scanned)&lt;BR /&gt;  Shared library: /usr/lib/pa20_64/libpthread.1 (system library - not scanned)&lt;BR /&gt;  Shared library: /usr/lib/pa20_64/libnss_dns.1 (system library - not scanned)&lt;BR /&gt;  Shared library: /usr/lib/pa20_64/libstd.2 (system library - not scanned)&lt;BR /&gt;  Shared library: /usr/lib/pa20_64/libc.2 (system library - not scanned)&lt;BR /&gt;&lt;BR /&gt;Compiler footprint summary&lt;BR /&gt;&lt;BR /&gt;Number of compilation units:  0&lt;BR /&gt;&lt;BR /&gt;Earliest compiler timestamp:  N/A&lt;BR /&gt;Latest compiler timestamp:    N/A&lt;BR /&gt;Linker timestamp:             N/A&lt;BR /&gt;&lt;BR /&gt;Total size:  520.9K (text)  19.3K (data)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ensnada6:/arcsde/sdeexe91/bin#elfdump -dc gsrvr.shared&lt;BR /&gt;&lt;BR /&gt;gsrvr.shared:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Compilation Unit Dictionary from gsrvr.shared:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;          Language                                           Name           &lt;BR /&gt;          Product_id ; Version_id&lt;BR /&gt;          Compile time; Source time&lt;BR /&gt;&lt;BR /&gt;          [not present]&lt;BR /&gt;&lt;BR /&gt;Regards.</description>
      <pubDate>Tue, 27 Mar 2007 11:01:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/why-so-many-threads/m-p/3969449#M95295</guid>
      <dc:creator>Jose M. del Rio</dc:creator>
      <dc:date>2007-03-27T11:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: Why so many threads?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/why-so-many-threads/m-p/3969450#M95296</link>
      <description>&amp;gt;I guess the fact that it can't find any compilation unit is because the program was not compiled with an HP compiler? Or maybe some compiler switch disabled footprint in the object file?&lt;BR /&gt;&lt;BR /&gt;The executable has probably been stripped.  Since you do have libCsup, it was compiled with aC++.</description>
      <pubDate>Tue, 27 Mar 2007 21:53:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/why-so-many-threads/m-p/3969450#M95296</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-03-27T21:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Why so many threads?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/why-so-many-threads/m-p/3969451#M95297</link>
      <description>&amp;gt;The executable has probably been stripped.&lt;BR /&gt;&lt;BR /&gt;Hmm, my strip won't work on ELF files.  While I've filed a bug report on that, I wasn't aware it was fixed yet.</description>
      <pubDate>Tue, 27 Mar 2007 21:56:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/why-so-many-threads/m-p/3969451#M95297</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-03-27T21:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why so many threads?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/why-so-many-threads/m-p/3969452#M95298</link>
      <description>Thanks for your answer but I can't understand what 'strip' means in this context.&lt;BR /&gt;Regards.</description>
      <pubDate>Wed, 28 Mar 2007 02:57:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/why-so-many-threads/m-p/3969452#M95298</guid>
      <dc:creator>Jose M. del Rio</dc:creator>
      <dc:date>2007-03-28T02:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Why so many threads?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/why-so-many-threads/m-p/3969453#M95299</link>
      <description>&amp;gt;but I can't understand what 'strip' means in this context.&lt;BR /&gt;&lt;BR /&gt;Good question.  For PA32, you can use strip(1) on an executable.  This will remove the compunit/notes sections that footprints/odump/elfdump use.&lt;BR /&gt;&lt;BR /&gt;If you use file(1) on gsrvr.shared, does it say it is stripped?</description>
      <pubDate>Wed, 28 Mar 2007 03:13:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/why-so-many-threads/m-p/3969453#M95299</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-03-28T03:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Why so many threads?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/why-so-many-threads/m-p/3969454#M95300</link>
      <description>&lt;!--!*#--&gt;Thanks for your clarification.&lt;BR /&gt;Here is the output from file:&lt;BR /&gt;ensnada6:/arcsde/sdeexe91/bin#file gsrvr.shared&lt;BR /&gt;gsrvr.shared:   ELF-64 executable object file - PA-RISC 2.0 (LP64)&lt;BR /&gt;ensnada6:/arcsde/sdeexe91/bin#</description>
      <pubDate>Wed, 28 Mar 2007 03:35:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/why-so-many-threads/m-p/3969454#M95300</guid>
      <dc:creator>Jose M. del Rio</dc:creator>
      <dc:date>2007-03-28T03:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Why so many threads?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/why-so-many-threads/m-p/3969455#M95301</link>
      <description>&amp;gt;gsrvr.shared:   ELF-64 executable object file - PA-RISC 2.0 (LP64)&lt;BR /&gt;&lt;BR /&gt;This isn't stripped so perhaps you were right about not being compiled with a HP compiler.&lt;BR /&gt;&lt;BR /&gt;Unless they know about an ELF tool that can do selective stripping of sections?&lt;BR /&gt;&lt;BR /&gt;It seem strange that it is using libCsup and libstd but that may be for the benefit of any shlibs they dynamically load?</description>
      <pubDate>Wed, 28 Mar 2007 04:09:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/why-so-many-threads/m-p/3969455#M95301</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-03-28T04:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Why so many threads?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/why-so-many-threads/m-p/3969456#M95302</link>
      <description>Don't worry.&lt;BR /&gt;It's up to them to clarify why they are including CPSlib.&lt;BR /&gt;Thank you very much for your help.&lt;BR /&gt;I've learnt a lot.&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Mar 2007 04:21:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/why-so-many-threads/m-p/3969456#M95302</guid>
      <dc:creator>Jose M. del Rio</dc:creator>
      <dc:date>2007-03-28T04:21:40Z</dc:date>
    </item>
  </channel>
</rss>

