<?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: &amp;quot;Not enough space&amp;quot;  Error in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-not-enough-space-quot-error/m-p/4383775#M681504</link>
    <description>This is MAP_SHARED. You cannot mmap() the same file twice. What are you trying to accomplish?&lt;BR /&gt;</description>
    <pubDate>Fri, 20 Mar 2009 04:53:18 GMT</pubDate>
    <dc:creator>Venkatesh BL</dc:creator>
    <dc:date>2009-03-20T04:53:18Z</dc:date>
    <item>
      <title>"Not enough space"  Error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-not-enough-space-quot-error/m-p/4383768#M681497</link>
      <description>Hi Experts:&lt;BR /&gt;&lt;BR /&gt;I am getting error "Not enough space" while mmap'ing a few binary files of very small sizes.&lt;BR /&gt;&lt;BR /&gt;Following are the details of the machine I am getting the "Not enough space" error:&lt;BR /&gt;&lt;BR /&gt;$uname -a&lt;BR /&gt;HP-UX ocpdev1 B.11.11 U 9000/800 ocpdev1 unlimited-user license&lt;BR /&gt;&lt;BR /&gt;Following are some of the kernel parameters (output from kmtune):&lt;BR /&gt;Parameter: maxdsiz&lt;BR /&gt;Current: 1073741824&lt;BR /&gt;Planned: 1073741824&lt;BR /&gt;&lt;BR /&gt;Parameter: maxdsiz_64bit&lt;BR /&gt;Current: 8589934592&lt;BR /&gt;Planned: 8589934592&lt;BR /&gt;&lt;BR /&gt;Parameter: maxfiles&lt;BR /&gt;Current: 260&lt;BR /&gt;Planned: 260&lt;BR /&gt;&lt;BR /&gt;Parameter: maxfiles_lim&lt;BR /&gt;Current: 1024&lt;BR /&gt;Planned: 1024&lt;BR /&gt;&lt;BR /&gt;Parameter: maxssiz&lt;BR /&gt;Current: 134217728&lt;BR /&gt;Planned: 134217728&lt;BR /&gt;&lt;BR /&gt;Parameter: maxssiz_64bit&lt;BR /&gt;Current: 268435456&lt;BR /&gt;Planned: 268435456&lt;BR /&gt;&lt;BR /&gt;Parameter: maxtsiz&lt;BR /&gt;Current: 134217728&lt;BR /&gt;Planned: 134217728&lt;BR /&gt;&lt;BR /&gt;Parameter: maxtsiz_64bit&lt;BR /&gt;Current: 0x40000000&lt;BR /&gt;Planned: 0X40000000&lt;BR /&gt;&lt;BR /&gt;Output of ulimit:&lt;BR /&gt;--------------------&lt;BR /&gt;$ulimit -a&lt;BR /&gt;time(seconds)        unlimited&lt;BR /&gt;file(blocks)         unlimited&lt;BR /&gt;data(kbytes)         1048576&lt;BR /&gt;stack(kbytes)        131072&lt;BR /&gt;memory(kbytes)       unlimited&lt;BR /&gt;coredump(blocks)     4194303&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I am using the following compilation/linking flags:&lt;BR /&gt;aCC -g -Wl,+n,-a,archive -D_HPUX_SOURCE +DA2.0W&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Following is some information when I try to run the program using gdb.&lt;BR /&gt;$ gdb compile_ocp_contact&lt;BR /&gt;Detected 64-bit executable.&lt;BR /&gt;Invoking /opt/langtools/bin/gdb64.&lt;BR /&gt;HP gdb 5.1.1 for PA-RISC 2.0 (wide), HP-UX 11.00&lt;BR /&gt;and target hppa2.0w-hp-hpux11.00.&lt;BR /&gt;Copyright 1986 - 2001 Free Software Foundation, Inc.&lt;BR /&gt;Hewlett-Packard Wildebeest 5.1.1 (based on GDB) is covered by the&lt;BR /&gt;GNU General Public License. Type "show copying" to see the conditions to&lt;BR /&gt;change it and/or distribute copies. Type "show warranty" for warranty/support.&lt;BR /&gt;..&lt;BR /&gt;(gdb) set heap-check on&lt;BR /&gt;(gdb) set heap-check leaks on&lt;BR /&gt;&lt;BR /&gt;(gdb) info heap&lt;BR /&gt;Heap analysis is not enabled now.&lt;BR /&gt;(gdb) info leaks&lt;BR /&gt;Leak detection is not enabled now.&lt;BR /&gt;(gdb) info corruption&lt;BR /&gt;Heap analysis is not enabled now.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;(gdb) run&lt;BR /&gt;Starting program: compile_ocp_contact ./ ocp_contact.rpt&lt;BR /&gt;warning: Your program seems to override the C library functions.&lt;BR /&gt;warning: This behavior is not supported yet for this platform !&lt;BR /&gt;0~03/19/2009 16:38:44~compile_ocp.cc:182~Bin file of size 80584 bytes to be mapped: ocp_city.offset.bin&lt;BR /&gt;1~03/19/2009 16:38:44~compile_ocp.cc:182~Bin file of size 2032 bytes to be mapped: ocp_country.offset.bin&lt;BR /&gt;2~03/19/2009 16:38:44~compile_ocp.cc:182~Bin file of size 5192 bytes to be mapped: ocp_province.offset.bin&lt;BR /&gt;3~03/19/2009 16:38:44~compile_ocp.cc:182~Bin file of size 80584 bytes to be mapped: ocp_city.offset.bin&lt;BR /&gt;4~03/19/2009 16:38:44~compile_ocp.cc:189~Error mmapping the file ocp_city.offset.bin&lt;BR /&gt;5~03/19/2009 16:38:44~compile_ocp.cc:190~Reason: Not enough space&lt;BR /&gt;6~03/19/2009 16:38:44~compile_contact.cc:705~get_bin_offset_tbl error: Not enough space&lt;BR /&gt;&lt;BR /&gt;Program exited with code 01.&lt;BR /&gt;(gdb) info heap&lt;BR /&gt;Internal error : Unable to update __rtc_bounds_or_heap!&lt;BR /&gt;(gdb) info corruption&lt;BR /&gt;Internal error : Unable to update __rtc_bounds_or_heap!&lt;BR /&gt;(gdb)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Can anybody please explain what could be the problem here?  Note that the memory in the machine is around 32Gigs.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!&lt;BR /&gt;&lt;BR /&gt;-Shiv &lt;BR /&gt;</description>
      <pubDate>Thu, 19 Mar 2009 19:54:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-not-enough-space-quot-error/m-p/4383768#M681497</guid>
      <dc:creator>ShivS</dc:creator>
      <dc:date>2009-03-19T19:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: "Not enough space"  Error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-not-enough-space-quot-error/m-p/4383769#M681498</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;ENOMEM errors for mmap() point to insufficient data space (the 'maxdsiz' kernel fence).  Since your process is a 64-bit one, 'maxdsiz_64bit' may be too low.&lt;BR /&gt;&lt;BR /&gt;It would be useful, too to examine the swap utilization at the time the process is started as insufficient swap space may also contribute to this error.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 19 Mar 2009 20:06:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-not-enough-space-quot-error/m-p/4383769#M681498</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-03-19T20:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: "Not enough space"  Error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-not-enough-space-quot-error/m-p/4383770#M681499</link>
      <description>Hi JRF,&lt;BR /&gt;&lt;BR /&gt;Currently, &lt;BR /&gt;Parameter: maxdsiz_64bit&lt;BR /&gt;Current: 8589934592&lt;BR /&gt;Planned: 8589934592&lt;BR /&gt;&lt;BR /&gt;Here's swapinfo:&lt;BR /&gt;$ swapinfo -tam&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        8192       0    8192    0%       0       -    1  /dev/vg00/lvol11&lt;BR /&gt;dev        8192       0    8192    0%       0       -    1  /dev/vg01/lvol12&lt;BR /&gt;dev       16384       0   16384    0%       0       -    2  /dev/vg01/lvol17&lt;BR /&gt;reserve       -   20692  -20692&lt;BR /&gt;memory    28019    5477   22542   20%&lt;BR /&gt;total     60787   26169   34618   43%       -       0    -&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Note that the program is really very simple and is exiting after mmap()ing 2-3 files.&lt;BR /&gt;&lt;BR /&gt;Any help appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Shiv</description>
      <pubDate>Thu, 19 Mar 2009 20:11:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-not-enough-space-quot-error/m-p/4383770#M681499</guid>
      <dc:creator>ShivS</dc:creator>
      <dc:date>2009-03-19T20:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: "Not enough space"  Error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-not-enough-space-quot-error/m-p/4383771#M681500</link>
      <description>&amp;gt;Note that the program is really very simple and is exiting after mmap()ing 2-3 files.&lt;BR /&gt;&lt;BR /&gt;It would be helpful for you to provide the mmap options.  You should be specifying NULL for addr and MAP_VARIABLE.</description>
      <pubDate>Fri, 20 Mar 2009 01:08:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-not-enough-space-quot-error/m-p/4383771#M681500</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-03-20T01:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: "Not enough space"  Error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-not-enough-space-quot-error/m-p/4383772#M681501</link>
      <description>Hi Dennis,&lt;BR /&gt;&lt;BR /&gt;This is the command:&lt;BR /&gt;mmap((caddr_t)0, bin_file_sz, PROT_READ, MAP_SHARED, fd, 0);&lt;BR /&gt;&lt;BR /&gt;I found the problem. However, I still dont know why the problem is happening. &lt;BR /&gt;&lt;BR /&gt;As per my code requirement, I am suppose to mmap the same binary file twice. Since the address (first parameter) is 0, this should ideally work. However, twice mmaping of the same file was causing the problem. When the second mmaping of the same file, everything worked fine. &lt;BR /&gt;&lt;BR /&gt;Any ideas why this could happen. Why is it not possible to mmap the same file twice?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;Shiv.&lt;BR /&gt;</description>
      <pubDate>Fri, 20 Mar 2009 03:35:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-not-enough-space-quot-error/m-p/4383772#M681501</guid>
      <dc:creator>ShivS</dc:creator>
      <dc:date>2009-03-20T03:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: "Not enough space"  Error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-not-enough-space-quot-error/m-p/4383773#M681502</link>
      <description>&amp;gt;&amp;gt; When the second mmaping of the same file, everything worked fine. &lt;BR /&gt;&lt;BR /&gt;Sorry, please read the above line as:&lt;BR /&gt;&lt;BR /&gt;When the second mmaping of the same file was removed, everything worked fine</description>
      <pubDate>Fri, 20 Mar 2009 03:36:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-not-enough-space-quot-error/m-p/4383773#M681502</guid>
      <dc:creator>ShivS</dc:creator>
      <dc:date>2009-03-20T03:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: "Not enough space"  Error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-not-enough-space-quot-error/m-p/4383774#M681503</link>
      <description>&amp;gt;Why is it not possible to mmap the same file twice?&lt;BR /&gt;&lt;BR /&gt;You can't.  They may have fixed this on 11.31.&lt;BR /&gt;Have you tried ORin in MAP_VARIABLE?&lt;BR /&gt;</description>
      <pubDate>Fri, 20 Mar 2009 04:43:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-not-enough-space-quot-error/m-p/4383774#M681503</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-03-20T04:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: "Not enough space"  Error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-not-enough-space-quot-error/m-p/4383775#M681504</link>
      <description>This is MAP_SHARED. You cannot mmap() the same file twice. What are you trying to accomplish?&lt;BR /&gt;</description>
      <pubDate>Fri, 20 Mar 2009 04:53:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-not-enough-space-quot-error/m-p/4383775#M681504</guid>
      <dc:creator>Venkatesh BL</dc:creator>
      <dc:date>2009-03-20T04:53:18Z</dc:date>
    </item>
  </channel>
</rss>

