<?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: Shared Memory error in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-error/m-p/4341456#M666170</link>
    <description>&amp;gt;a process that loads from a database Xref files to the shared memory, I have the following error: Illegal Shared Memory Size -2140822496.&lt;BR /&gt;&lt;BR /&gt;This application is broken.  It should not be treating shmmax as a signed int, it should be unsigned in or unsigned long long.&lt;BR /&gt;&lt;BR /&gt;(gdb) p /x -2140822496 -&amp;gt; 0x8065a420&lt;BR /&gt;(gdb) p (unsigned int)-2140822496 -&amp;gt; 2154144800&lt;BR /&gt;(Unfortunately I can't see how that number comes from your shmmax 0x3ffe00000?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Is there any tunable kernel parameter related to this?&lt;BR /&gt;&lt;BR /&gt;You might have to reduce shmmax if you can't get your application fixed.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;The shared memory can not contain a file bigger than 2Gb?&lt;BR /&gt;&lt;BR /&gt;Note a 32 bit application can't really get a segment above 1 Gb.</description>
    <pubDate>Tue, 20 Jan 2009 22:43:40 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2009-01-20T22:43:40Z</dc:date>
    <item>
      <title>Shared Memory error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-error/m-p/4341455#M666169</link>
      <description>&lt;!--!*#--&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I urgently need your help to solve this : running on an HP-UX server 11.11 a process that loads from a database Xref files to the shared memory, I have the following error  : Illegal Shared Memory Size -2140822496.&lt;BR /&gt;From the log of the process, I notice that the files loading stops at a file that might be above 2Gb.&lt;BR /&gt;What can be the reason of this ? The shared memory can not contain a file bigger than 2Gb ? Is there any tunable kernel parameter related to this ? My RAM is 16Gb and below, my Kernel params.&lt;BR /&gt;&lt;BR /&gt;root@rating2:/root#kmtune &lt;BR /&gt;Parameter             Current Dyn Planned                    Module     Version&lt;BR /&gt;===============================================================================&lt;BR /&gt;NSTRBLKSCHED                -  -  2                          &lt;BR /&gt;NSTREVENT                  50  -  50                         &lt;BR /&gt;NSTRPUSH                   16  -  16                         &lt;BR /&gt;NSTRSCHED                   0  -  0                          &lt;BR /&gt;STRCTLSZ                 1024  -  1024                       &lt;BR /&gt;STRMSGSZ                65535  -  65535                      &lt;BR /&gt;acctresume                  4  -  4                          &lt;BR /&gt;acctsuspend                 2  -  2                          &lt;BR /&gt;aio_listio_max            256  -  256                        &lt;BR /&gt;aio_max_ops              2048  -  2048                       &lt;BR /&gt;aio_physmem_pct            10  -  10                         &lt;BR /&gt;aio_prio_delta_max         20  -  20                         &lt;BR /&gt;allocate_fs_swapmap         0  -  0                          &lt;BR /&gt;alwaysdump                  1  -  1                          &lt;BR /&gt;bcvmap_size_factor          2  -  2                          &lt;BR /&gt;bootspinlocks               -  -  256                        &lt;BR /&gt;bufcache_hash_locks       128  -  128                        &lt;BR /&gt;bufpages                    0  -  (NBUF*2)                   &lt;BR /&gt;chanq_hash_locks          256  -  256                        &lt;BR /&gt;core_addshmem_read          0  Y  0                          &lt;BR /&gt;core_addshmem_write         0  Y  0                          &lt;BR /&gt;create_fastlinks            0  -  0                          &lt;BR /&gt;dbc_max_pct                 5  -  5                          &lt;BR /&gt;dbc_min_pct                 2  -  2                          &lt;BR /&gt;default_disk_ir             0  -  0                          &lt;BR /&gt;desfree                     -  -  0                          &lt;BR /&gt;disksort_seconds            0  -  0                          &lt;BR /&gt;dmp_max_msecs           10000  -  10000                      &lt;BR /&gt;dmp_pathsw_bshift          10  -  10                         &lt;BR /&gt;dmp_rootdev_is_vol          0  -  0                          &lt;BR /&gt;dmp_swapdev_is_vol          0  -  0                          &lt;BR /&gt;dnlc_hash_locks           512  -  512                        &lt;BR /&gt;dontdump                    0  -  0                          &lt;BR /&gt;dskless_node                -  -  0                          &lt;BR /&gt;dst                         1  -  1                          &lt;BR /&gt;effective_maxpid            -  -  ((NPROC&amp;lt;=30000)?30000:(NPROC*5/4)) &lt;BR /&gt;eisa_io_estimate            -  -  0x300                      &lt;BR /&gt;enable_idds                 0  -  0                          &lt;BR /&gt;eqmemsize                  15  -  15                         &lt;BR /&gt;executable_stack            1  -  1                          &lt;BR /&gt;fcp_large_config            0  -  0                          &lt;BR /&gt;file_pad                    -  -  10                         &lt;BR /&gt;fs_async                    0  -  0                          &lt;BR /&gt;ftable_hash_locks          64  -  64                         &lt;BR /&gt;hdlpreg_hash_locks        128  -  128                        &lt;BR /&gt;hfs_max_ra_blocks          20  -  20                         &lt;BR /&gt;hfs_max_revra_blocks        8  -  8                          &lt;BR /&gt;hfs_ra_per_disk           256  -  256                        &lt;BR /&gt;hfs_revra_per_disk         64  -  64                         &lt;BR /&gt;hp_hfs_mtra_enabled         1  -  1                          &lt;BR /&gt;hpux_aes_override           -  -  0                          &lt;BR /&gt;initmodmax                 50  -  50                         &lt;BR /&gt;io_ports_hash_locks        64  -  64                         &lt;BR /&gt;iomemsize                   -  -  40000                      &lt;BR /&gt;ksi_alloc_max           81920  -  (NPROC*8)                  &lt;BR /&gt;ksi_send_max               32  -  32                         &lt;BR /&gt;lotsfree                    -  -  0                          &lt;BR /&gt;max_async_ports            50  -  50                         &lt;BR /&gt;max_fcp_reqs              512  -  512                        &lt;BR /&gt;max_mem_window              0  -  0                          &lt;BR /&gt;max_thread_proc          2048  -  2048                       &lt;BR /&gt;maxdsiz            3221225472  -  3221225472                 &lt;BR /&gt;maxdsiz_64bit    274877906944  -  274877906944               &lt;BR /&gt;maxfiles                 2048  -  2048                       &lt;BR /&gt;maxfiles_lim             2048  Y  2048                       &lt;BR /&gt;maxqueuetime                -  -  0                          &lt;BR /&gt;maxssiz             134217728  -  134217728                  &lt;BR /&gt;maxssiz_64bit      1073741824  -  1073741824                 &lt;BR /&gt;maxswapchunks           16384  -  16384                      &lt;BR /&gt;maxtsiz            0x3ff00000  Y  0X3FF00000                 &lt;BR /&gt;maxtsiz_64bit      0xffff0000  Y  0XFFFF0000                 &lt;BR /&gt;maxuprc                  9216  Y  ((NPROC*9)/10)             &lt;BR /&gt;maxusers                 1024  -  1024                       &lt;BR /&gt;maxvgs                     80  -  80                         &lt;BR /&gt;mesg                        1  -  1                          &lt;BR /&gt;minfree                     -  -  0                          &lt;BR /&gt;modstrmax                 500  -  500                        &lt;BR /&gt;msgmap                  10242  -  (2+MSGTQL)                 &lt;BR /&gt;msgmax                  32768  Y  32768                      &lt;BR /&gt;msgmnb                  65536  Y  65536                      &lt;BR /&gt;msgmni                  10240  -  (NPROC)                    &lt;BR /&gt;msgseg                  32767  -  32767                      &lt;BR /&gt;msgssz                    128  -  128                        &lt;BR /&gt;msgtql                  10240  -  (NPROC)                    &lt;BR /&gt;nbuf                        0  -  0                          &lt;BR /&gt;ncallout                17952  -  (16+NKTHREAD)              &lt;BR /&gt;ncdnode                   150  -  150                        &lt;BR /&gt;nclist                  16484  -  (100+16*MAXUSERS)          &lt;BR /&gt;ncsize                  96064  -  (NINODE+VX_NCSIZE)+(8*DNLC_HASH_LOCKS) &lt;BR /&gt;ndilbuffers                30  -  30                         &lt;BR /&gt;netisr_priority             -  -  -1                         &lt;BR /&gt;netmemmax                   -  -  0                          &lt;BR /&gt;nfile                  155648  -  (15*NPROC+2048)            &lt;BR /&gt;nflocks                 10240  -  (NPROC)                    &lt;BR /&gt;nhtbl_scale                 0  -  0                          &lt;BR /&gt;ninode                  83968  -  (8*NPROC+2048)             &lt;BR /&gt;nkthread                17936  -  (((NPROC*7)/4)+16)         &lt;BR /&gt;nni                         -  -  2                          &lt;BR /&gt;no_lvm_disks                0  -  0                          &lt;BR /&gt;nproc                   10240  -  (2048+8*MAXUSERS)          &lt;BR /&gt;npty                      200  -  200                        &lt;BR /&gt;nstrpty                   200  -  200                        &lt;BR /&gt;nstrtel                    60  -  60                         &lt;BR /&gt;nswapdev                   10  -  10                         &lt;BR /&gt;nswapfs                    10  -  10                         &lt;BR /&gt;nsysmap                 20480  -  ((NPROC)&amp;gt;800?2*(NPROC):800) &lt;BR /&gt;nsysmap64               20480  -  ((NPROC)&amp;gt;800?2*(NPROC):800) &lt;BR /&gt;o_sync_is_o_dsync           0  -  0                          &lt;BR /&gt;page_text_to_local          -  -  0                          &lt;BR /&gt;pfdat_hash_locks          128  -  128                        &lt;BR /&gt;public_shlibs               1  -  1                          &lt;BR /&gt;region_hash_locks         128  -  128                        &lt;BR /&gt;remote_nfs_swap             0  -  0                          &lt;BR /&gt;rtsched_numpri             32  -  32                         &lt;BR /&gt;scroll_lines              100  -  100                        &lt;BR /&gt;scsi_max_qdepth             8  Y  8                          &lt;BR /&gt;scsi_maxphys          1048576  -  1048576                    &lt;BR /&gt;select_enh                  0  Y  0                          &lt;BR /&gt;sema                        1  -  1                          &lt;BR /&gt;semaem                  16384  -  16384                      &lt;BR /&gt;semmap                  10242  -  (SEMMNI+2)                 &lt;BR /&gt;semmni                  10240  -  (NPROC)                    &lt;BR /&gt;semmns                  20480  -  (SEMMNI*2)                 &lt;BR /&gt;semmnu                  10236  -  (NPROC-4)                  &lt;BR /&gt;semmsl                   2048  Y  2048                       &lt;BR /&gt;semume                    512  -  512                        &lt;BR /&gt;semvmx                  32767  -  32767                      &lt;BR /&gt;sendfile_max                0  -  0                          &lt;BR /&gt;shmem                       1  -  1                          &lt;BR /&gt;shmmax            0x3ffe00000  Y  0X3FFE00000                &lt;BR /&gt;shmmni                   1024  -  1024                       &lt;BR /&gt;shmseg                    768  Y  768                        &lt;BR /&gt;st_ats_enabled              0  -  0                          &lt;BR /&gt;st_fail_overruns            0  -  0                          &lt;BR /&gt;st_large_recs               0  -  0                          &lt;BR /&gt;st_san_safe                 0  -  0                          &lt;BR /&gt;streampipes                 0  -  0                          &lt;BR /&gt;swapmem_on                  1  -  1                          &lt;BR /&gt;swchunk                  2560  -  2560                       &lt;BR /&gt;sysv_hash_locks           128  -  128                        &lt;BR /&gt;tcphashsz                   0  -  0                          &lt;BR /&gt;timeslice                  10  -  (100/10)                   &lt;BR /&gt;timezone                  420  -  420                        &lt;BR /&gt;unlockable_mem              0  -  0                          &lt;BR /&gt;vas_hash_locks            128  -  128                        &lt;BR /&gt;vnode_cd_hash_locks       128  -  128                        &lt;BR /&gt;vnode_hash_locks          128  -  128                        &lt;BR /&gt;vol_checkpt_default     10240  -  10240                      &lt;BR /&gt;vol_dcm_replay_size    262144  -  (256*1024)                 &lt;BR /&gt;vol_default_iodelay        50  -  50                         &lt;BR /&gt;vol_fmr_logsz               4  -  4                          &lt;BR /&gt;vol_max_bchain             32  -  32                         &lt;BR /&gt;vol_max_nconfigs           20  -  20                         &lt;BR /&gt;vol_max_nlogs              20  -  20                         &lt;BR /&gt;vol_max_nmpool_sz     4194304  -  (4*1024*1024)              &lt;BR /&gt;vol_max_prm_dgs          1024  -  1024                       &lt;BR /&gt;vol_max_rdback_sz     4194304  -  (4*1024*1024)              &lt;BR /&gt;vol_max_vol           8388608  -  (8*1024*1024)              &lt;BR /&gt;vol_maxio                 256  -  256                        &lt;BR /&gt;vol_maxioctl            32768  -  32768                      &lt;BR /&gt;vol_maxkiocount          2048  -  2048                       &lt;BR /&gt;vol_maxparallelio         256  -  256                        &lt;BR /&gt;vol_maxspecialio          256  -  256                        &lt;BR /&gt;vol_maxstablebufsize      256  -  256                        &lt;BR /&gt;vol_min_lowmem_sz      524288  -  (512*1024)                 &lt;BR /&gt;vol_mvr_maxround          256  -  256                        &lt;BR /&gt;vol_nm_hb_timeout          10  -  (10)                       &lt;BR /&gt;vol_subdisk_num          4096  -  4096                       &lt;BR /&gt;vol_vvr_transport           1  -  (1)                        &lt;BR /&gt;vol_vvr_use_nat             0  -  (0)                        &lt;BR /&gt;volcvm_cluster_size        16  -  16                         &lt;BR /&gt;volcvm_smartsync            1  -  1                          &lt;BR /&gt;voldrl_max_drtregs       2048  -  2048                       &lt;BR /&gt;voldrl_min_regionsz       512  -  512                        &lt;BR /&gt;voliomem_chunk_size     65536  -  (64*1024)                  &lt;BR /&gt;voliomem_maxpool_sz   4194304  -  (4*1024*1024)              &lt;BR /&gt;voliot_errbuf_dflt      16384  -  16384                      &lt;BR /&gt;voliot_iobuf_default     8192  -  8192                       &lt;BR /&gt;voliot_iobuf_limit     131072  -  131072                     &lt;BR /&gt;voliot_iobuf_max        65536  -  65536                      &lt;BR /&gt;voliot_max_open            32  -  32                         &lt;BR /&gt;volraid_rsrtransmax         1  -  1                          &lt;BR /&gt;vps_ceiling                64  -  64                         &lt;BR /&gt;vps_chatr_ceiling     1048576  -  1048576                    &lt;BR /&gt;vps_pagesize                4  -  4                          &lt;BR /&gt;vx_fancyra_enable           0  -  0                          &lt;BR /&gt;vx_maxlink              32767  -  32767                      &lt;BR /&gt;vx_ncsize                8000  -  8000                       &lt;BR /&gt;vx_ninode                   0  -  0                          &lt;BR /&gt;vxfs_max_ra_kbytes       1024  -  1024                       &lt;BR /&gt;vxfs_ra_per_disk         1024  -  1024                       &lt;BR /&gt;vxtask_max_monitors        32  -  32                         &lt;BR /&gt;x25_setup_pvc_timer         -  -  0                          &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks to all !</description>
      <pubDate>Tue, 20 Jan 2009 22:06:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-error/m-p/4341455#M666169</guid>
      <dc:creator>Larrhy-Martin</dc:creator>
      <dc:date>2009-01-20T22:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Memory error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-error/m-p/4341456#M666170</link>
      <description>&amp;gt;a process that loads from a database Xref files to the shared memory, I have the following error: Illegal Shared Memory Size -2140822496.&lt;BR /&gt;&lt;BR /&gt;This application is broken.  It should not be treating shmmax as a signed int, it should be unsigned in or unsigned long long.&lt;BR /&gt;&lt;BR /&gt;(gdb) p /x -2140822496 -&amp;gt; 0x8065a420&lt;BR /&gt;(gdb) p (unsigned int)-2140822496 -&amp;gt; 2154144800&lt;BR /&gt;(Unfortunately I can't see how that number comes from your shmmax 0x3ffe00000?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Is there any tunable kernel parameter related to this?&lt;BR /&gt;&lt;BR /&gt;You might have to reduce shmmax if you can't get your application fixed.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;The shared memory can not contain a file bigger than 2Gb?&lt;BR /&gt;&lt;BR /&gt;Note a 32 bit application can't really get a segment above 1 Gb.</description>
      <pubDate>Tue, 20 Jan 2009 22:43:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-error/m-p/4341456#M666170</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-01-20T22:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Memory error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-error/m-p/4341457#M666171</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;set shmmax as big as you can, up to 16 GB and that should resolve the problem.&lt;BR /&gt;&lt;BR /&gt;Some of the parameters on this system appear to be default.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 20 Jan 2009 23:43:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-error/m-p/4341457#M666171</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-01-20T23:43:20Z</dc:date>
    </item>
  </channel>
</rss>

