<?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: pthread_create fails with errno 11 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/pthread-create-fails-with-errno-11/m-p/2965007#M119183</link>
    <description>You are looking at memory.&lt;BR /&gt;&lt;BR /&gt;Look at process space.&lt;BR /&gt;&lt;BR /&gt;nprocs &lt;BR /&gt;&lt;BR /&gt;max_thread_proc 512 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Bump those two up.&lt;BR /&gt;&lt;BR /&gt;Check shared memory segments. shmmax and such. If those are not big enough and have enough message segments and queues, you could have the problem you are having.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Fri, 02 May 2003 23:18:20 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2003-05-02T23:18:20Z</dc:date>
    <item>
      <title>pthread_create fails with errno 11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pthread-create-fails-with-errno-11/m-p/2965006#M119182</link>
      <description>My application calls pthread_create() and the call returns errno 11 (resource temporarily unavailable)&lt;BR /&gt;Here is output of swapinfo:&lt;BR /&gt;             Mb      Mb      Mb   PCT  START/      Mb&lt;BR /&gt;TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME&lt;BR /&gt;dev        1024      12    1012    1%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;dev        1000      12     988    1%       0       -    1  /dev/vg01/lvswap2&lt;BR /&gt;dev        1000      12     988    1%       0       -    1  /dev/vg01/lvswap3&lt;BR /&gt;reserve       -    1209   -1209&lt;BR /&gt;memory     2205    1306     899   59%&lt;BR /&gt;total      5229    2551    2678   49%       -       0  &lt;BR /&gt;&lt;BR /&gt;Here is the output of mem_test.  The code I pulled from HP website (it calls pstat_dynamic, pstat_getproc to get output):&lt;BR /&gt;&lt;BR /&gt;'mem_test' after my application restart:&lt;BR /&gt;&lt;BR /&gt;page size is 4096 bytes&lt;BR /&gt;physical memory size is 786432 pages, -1073741824 bytes&lt;BR /&gt;total virtual memory allocated is 132293 pages, 541872128 bytes&lt;BR /&gt;active virtual memory is 110740 pages, 453591040 bytes&lt;BR /&gt;total real memory is 140071 pages, 573730816 bytes&lt;BR /&gt;active real memory is 113028 pages, 462962688 bytes&lt;BR /&gt;free memory is 216026 pages, 884842496 bytes&lt;BR /&gt;malloc arena memory is 28100 bytes&lt;BR /&gt;free malloc ordinary buffer memory is 11680 bytes&lt;BR /&gt;free malloc small block memory is 0 bytes&lt;BR /&gt;nlist: No such file or directory&lt;BR /&gt;&lt;BR /&gt;This process: 8365&lt;BR /&gt;This process is using 404254720 bytes of RAM.&lt;BR /&gt;This process is using 507277312 bytes of VM.&lt;BR /&gt;This process is using 391376896 bytes of data.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;'mem_test' output during memory errors:&lt;BR /&gt;&lt;BR /&gt;page size is 4096 bytes&lt;BR /&gt;physical memory size is 786432 pages, -1073741824 bytes&lt;BR /&gt;total virtual memory allocated is 289366 pages, 1185243136 bytes&lt;BR /&gt;active virtual memory is 15624 pages, 63995904 bytes&lt;BR /&gt;total real memory is 283146 pages, 1159766016 bytes&lt;BR /&gt;active real memory is 15372 pages, 62963712 bytes&lt;BR /&gt;free memory is 4734 pages, 19390464 bytes&lt;BR /&gt;malloc arena memory is 28100 bytes&lt;BR /&gt;free malloc ordinary buffer memory is 11680 bytes&lt;BR /&gt;free malloc small block memory is 0 bytes&lt;BR /&gt;nlist: No such file or directory&lt;BR /&gt;&lt;BR /&gt;This process: 8365&lt;BR /&gt;This process is using 897740800 bytes of RAM.&lt;BR /&gt;This process is using 1011187712 bytes of VM.&lt;BR /&gt;This process is using 884207616 bytes of data.&lt;BR /&gt;&lt;BR /&gt;Here are some kernel parameters:&lt;BR /&gt;STRMSGSZ 65535                               &lt;BR /&gt;dbc_max_pct 30                               &lt;BR /&gt;eqmemsize 2000                               &lt;BR /&gt;max_thread_proc 512                          &lt;BR /&gt;maxdsiz  1174405120                          &lt;BR /&gt;maxfiles 2048                                &lt;BR /&gt;maxfiles_lim 2048                            &lt;BR /&gt;maxssiz  0X04FB3000                          &lt;BR /&gt;maxssiz_64bit 0X04FB3000                     &lt;BR /&gt;maxswapchunks 3200                           &lt;BR /&gt;maxuprc  2048                                &lt;BR /&gt;maxusers 1000                                &lt;BR /&gt;maxvgs  50                                   &lt;BR /&gt;msgmax  65535                     &lt;BR /&gt;msgmnb  65535                     &lt;BR /&gt;msgmni  9600                      &lt;BR /&gt;msgseg  32767                     &lt;BR /&gt;msgssz  32                        &lt;BR /&gt;msgtql  1800                      &lt;BR /&gt;nfile  153600                     &lt;BR /&gt;nflocks  6400&lt;BR /&gt;&lt;BR /&gt;Also my application is in SHARED_MAGIC format.  The total threads created is under the max_thread_proc.&lt;BR /&gt;&lt;BR /&gt;I still have plenty of swap space, why the system returns with no more memory.  Please help.  thanks&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 02 May 2003 22:05:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pthread-create-fails-with-errno-11/m-p/2965006#M119182</guid>
      <dc:creator>Thu Nguyen_2</dc:creator>
      <dc:date>2003-05-02T22:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: pthread_create fails with errno 11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pthread-create-fails-with-errno-11/m-p/2965007#M119183</link>
      <description>You are looking at memory.&lt;BR /&gt;&lt;BR /&gt;Look at process space.&lt;BR /&gt;&lt;BR /&gt;nprocs &lt;BR /&gt;&lt;BR /&gt;max_thread_proc 512 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Bump those two up.&lt;BR /&gt;&lt;BR /&gt;Check shared memory segments. shmmax and such. If those are not big enough and have enough message segments and queues, you could have the problem you are having.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 02 May 2003 23:18:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pthread-create-fails-with-errno-11/m-p/2965007#M119183</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-05-02T23:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: pthread_create fails with errno 11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pthread-create-fails-with-errno-11/m-p/2965008#M119184</link>
      <description>I wish I would have some insight, but can only share a similar situation.&lt;BR /&gt;&lt;BR /&gt;We have a farm of servers(20x4 cell dome partitions) performing the same functionality.  Periodically one server exhibits a slowdown condition seen from a few hours after startup to 43 hours after startup.  We've observed similar VM related metrics.  Page faults increase considerably, (normally in the 1000's, increase to millions). The Active VM shows a reduced size(normally 16gb to 5gb). Assume this then drives the page faults up.  We have been struggling on getting the right data collection mechanisms in place to capture the events leading up to this condition.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Jul 2003 16:27:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pthread-create-fails-with-errno-11/m-p/2965008#M119184</guid>
      <dc:creator>Murray Yutzy</dc:creator>
      <dc:date>2003-07-10T16:27:22Z</dc:date>
    </item>
  </channel>
</rss>

