<?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 Postgres Configuration in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/postgres-configuration/m-p/3348583#M869976</link>
    <description>Hey Buddies,&lt;BR /&gt;&lt;BR /&gt;I have a N4000 with 8GB RAM, HP-UX 11.00 64bits and Postgres 7.4 installed. This database is working fine because SHARED_BUFFER parameter is set to 127.500 (8k) on postgresql.conf file. That correspond exactly 1 GB of shared memory. But that value is not enough for my database, due that we have 8GB of memory. So when I try to change this value (increase SHARED_BUFFER), the DB do not start. Do someone know what kernel parameters that I have to change to solve this matter. See the Postgreslog and the /stand/system files below.&lt;BR /&gt;Note that it is set to 129.000 (just a little more then 127.500) and it is not working. &lt;BR /&gt;&lt;BR /&gt;Best Regards for all, Leandro Lucena.&lt;BR /&gt;&lt;BR /&gt;===============================================&lt;BR /&gt;&lt;BR /&gt;* Tunable parameters&lt;BR /&gt;&lt;BR /&gt;STRMSGSZ        65535&lt;BR /&gt;bufpages        0&lt;BR /&gt;create_fastlinks 1&lt;BR /&gt;dbc_max_pct     8&lt;BR /&gt;max_mem_window  2&lt;BR /&gt;max_thread_proc 256&lt;BR /&gt;maxdsiz         2147483648&lt;BR /&gt;maxdsiz_64bit   4294967296&lt;BR /&gt;maxfiles        2048&lt;BR /&gt;maxfiles_lim    2048&lt;BR /&gt;maxswapchunks   8192&lt;BR /&gt;maxtsiz         0X40000000&lt;BR /&gt;maxuprc         ((NPROC*8)/10)&lt;BR /&gt;maxusers        400&lt;BR /&gt;maxvgs          80&lt;BR /&gt;msgmap          (MSGTQL+2)&lt;BR /&gt;msgmax          32768&lt;BR /&gt;msgmnb          65535&lt;BR /&gt;msgmni          (NPROC)&lt;BR /&gt;msgseg          32767&lt;BR /&gt;msgssz          128&lt;BR /&gt;msgtql          (NPROC)&lt;BR /&gt;ncallout        2064&lt;BR /&gt;nfile           (15*NPROC+2048)&lt;BR /&gt;nflocks         (NPROC)&lt;BR /&gt;ninode          (8*NPROC+2048)&lt;BR /&gt;nkthread        2048&lt;BR /&gt;nproc           (((10*MAXUSERS)/3)+128)&lt;BR /&gt;npty            300&lt;BR /&gt;nstrpty         60&lt;BR /&gt;nstrtel         (MAXUSERS)&lt;BR /&gt;nswapdev        25&lt;BR /&gt;semmni          (NPROC*2)&lt;BR /&gt;semmns          (SEMMNI*2)&lt;BR /&gt;semmnu          (NPROC-4)&lt;BR /&gt;semume          100&lt;BR /&gt;semvmx          32768&lt;BR /&gt;shmmax          34359738368&lt;BR /&gt;shmmni          1024&lt;BR /&gt;shmseg          1000&lt;BR /&gt;swapmem_on      0&lt;BR /&gt;timeslice       10&lt;BR /&gt;&lt;BR /&gt;==============================================&lt;BR /&gt;&lt;BR /&gt;FATAL:  could not create shared memory segment: Not enough space&lt;BR /&gt;DETAIL:  Failed system call was shmget(key=5432001, size=1085841408, 03600).&lt;BR /&gt;HINT:  This error usually means that PostgreSQL's request for a shared memory se&lt;BR /&gt;gment exceeded available memory or swap space. To reduce the request size (curre&lt;BR /&gt;ntly 1085841408 bytes), reduce PostgreSQL's shared_buffers parameter (currently&lt;BR /&gt;129000) and/or its max_connections parameter (currently 100).&lt;BR /&gt;        The PostgreSQL documentation contains more information about shared memo&lt;BR /&gt;ry configuration.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 03 Aug 2004 15:36:19 GMT</pubDate>
    <dc:creator>Leandro Lucena.</dc:creator>
    <dc:date>2004-08-03T15:36:19Z</dc:date>
    <item>
      <title>Postgres Configuration</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/postgres-configuration/m-p/3348583#M869976</link>
      <description>Hey Buddies,&lt;BR /&gt;&lt;BR /&gt;I have a N4000 with 8GB RAM, HP-UX 11.00 64bits and Postgres 7.4 installed. This database is working fine because SHARED_BUFFER parameter is set to 127.500 (8k) on postgresql.conf file. That correspond exactly 1 GB of shared memory. But that value is not enough for my database, due that we have 8GB of memory. So when I try to change this value (increase SHARED_BUFFER), the DB do not start. Do someone know what kernel parameters that I have to change to solve this matter. See the Postgreslog and the /stand/system files below.&lt;BR /&gt;Note that it is set to 129.000 (just a little more then 127.500) and it is not working. &lt;BR /&gt;&lt;BR /&gt;Best Regards for all, Leandro Lucena.&lt;BR /&gt;&lt;BR /&gt;===============================================&lt;BR /&gt;&lt;BR /&gt;* Tunable parameters&lt;BR /&gt;&lt;BR /&gt;STRMSGSZ        65535&lt;BR /&gt;bufpages        0&lt;BR /&gt;create_fastlinks 1&lt;BR /&gt;dbc_max_pct     8&lt;BR /&gt;max_mem_window  2&lt;BR /&gt;max_thread_proc 256&lt;BR /&gt;maxdsiz         2147483648&lt;BR /&gt;maxdsiz_64bit   4294967296&lt;BR /&gt;maxfiles        2048&lt;BR /&gt;maxfiles_lim    2048&lt;BR /&gt;maxswapchunks   8192&lt;BR /&gt;maxtsiz         0X40000000&lt;BR /&gt;maxuprc         ((NPROC*8)/10)&lt;BR /&gt;maxusers        400&lt;BR /&gt;maxvgs          80&lt;BR /&gt;msgmap          (MSGTQL+2)&lt;BR /&gt;msgmax          32768&lt;BR /&gt;msgmnb          65535&lt;BR /&gt;msgmni          (NPROC)&lt;BR /&gt;msgseg          32767&lt;BR /&gt;msgssz          128&lt;BR /&gt;msgtql          (NPROC)&lt;BR /&gt;ncallout        2064&lt;BR /&gt;nfile           (15*NPROC+2048)&lt;BR /&gt;nflocks         (NPROC)&lt;BR /&gt;ninode          (8*NPROC+2048)&lt;BR /&gt;nkthread        2048&lt;BR /&gt;nproc           (((10*MAXUSERS)/3)+128)&lt;BR /&gt;npty            300&lt;BR /&gt;nstrpty         60&lt;BR /&gt;nstrtel         (MAXUSERS)&lt;BR /&gt;nswapdev        25&lt;BR /&gt;semmni          (NPROC*2)&lt;BR /&gt;semmns          (SEMMNI*2)&lt;BR /&gt;semmnu          (NPROC-4)&lt;BR /&gt;semume          100&lt;BR /&gt;semvmx          32768&lt;BR /&gt;shmmax          34359738368&lt;BR /&gt;shmmni          1024&lt;BR /&gt;shmseg          1000&lt;BR /&gt;swapmem_on      0&lt;BR /&gt;timeslice       10&lt;BR /&gt;&lt;BR /&gt;==============================================&lt;BR /&gt;&lt;BR /&gt;FATAL:  could not create shared memory segment: Not enough space&lt;BR /&gt;DETAIL:  Failed system call was shmget(key=5432001, size=1085841408, 03600).&lt;BR /&gt;HINT:  This error usually means that PostgreSQL's request for a shared memory se&lt;BR /&gt;gment exceeded available memory or swap space. To reduce the request size (curre&lt;BR /&gt;ntly 1085841408 bytes), reduce PostgreSQL's shared_buffers parameter (currently&lt;BR /&gt;129000) and/or its max_connections parameter (currently 100).&lt;BR /&gt;        The PostgreSQL documentation contains more information about shared memo&lt;BR /&gt;ry configuration.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Aug 2004 15:36:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/postgres-configuration/m-p/3348583#M869976</guid>
      <dc:creator>Leandro Lucena.</dc:creator>
      <dc:date>2004-08-03T15:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Postgres Configuration</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/postgres-configuration/m-p/3348584#M869977</link>
      <description>It is possible that you have only a small amount of swap space and pseudoswap is not enabled. Swapinfo -t will display the swap space. I suspect that the real problem is that although the OS is 64-bit the application is 32-bit code and you are hitting a 1GB quadrant barrier. If the code is 32-bit, you will need to enable SHMEM_MAGIC by running the chatr -M. Man chatr for details. It is also possible that you need to enable memory windows so that each group of related 32-bit processes gets its own 4GB address space rather than sharing it.</description>
      <pubDate>Tue, 03 Aug 2004 15:54:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/postgres-configuration/m-p/3348584#M869977</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-08-03T15:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Postgres Configuration</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/postgres-configuration/m-p/3348585#M869978</link>
      <description>Hello, Stephenson!&lt;BR /&gt;&lt;BR /&gt;First of all, I would likje you to thank you for the response. &lt;BR /&gt;&lt;BR /&gt;I checked the swap space and constacted that we have 16 GB. Check below:&lt;BR /&gt;&lt;BR /&gt;# swapinfo -t&lt;BR /&gt;             Kb      Kb      Kb   PCT  START/      Kb&lt;BR /&gt;TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME&lt;BR /&gt;dev     16777216       0 16777216    0%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;reserve       -   63056  -63056&lt;BR /&gt;memory  6500212   34352 6465860    1%&lt;BR /&gt;total   23277428   97408 23180020    0%       -       0    -&lt;BR /&gt;&lt;BR /&gt;I think that this value is enouhg, don't? About pseudoswap, I don't know what it is. I was  reseaching for it. Is it the SWAPMEM_ON parameter? If it is, it's was enable on kernel. Postgres is 32bits. I tryed to change to SHMEM_MAGIC using "chatr -M", but it failed cause Postgres bin is not set to EXEC_MAGIC. It is set to SHARE_MAGIC. Do you know how to change this to enable Postgres run at 64bits. I confess that I'm a little confused using chatr.&lt;BR /&gt;&lt;BR /&gt;Please help us! Thanks a lot! Leandro Lucena.</description>
      <pubDate>Wed, 04 Aug 2004 13:18:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/postgres-configuration/m-p/3348585#M869978</guid>
      <dc:creator>Leandro Lucena.</dc:creator>
      <dc:date>2004-08-04T13:18:49Z</dc:date>
    </item>
  </channel>
</rss>

