Ä¿ÇǴнº, ½Ã½ºÅÛ ¿£Áö´Ï¾îÀÇ ½°ÅÍ
  PostgreSQL¿¡¼­ semaphore ¿¡·¯¹ß»ý½Ã ÀÛ¼ºÀÏ : 2006/06/27 16:18
 
  • ±Û¾´ÀÌ : ÁÁÀºÁøÈ£ ( http://coffeenix.net/ )
  • Á¶È¸¼ö : 9084
     
    Á¦  ¸ñ : PostgreSQL¿¡¼­ semaphore ¿¡·¯¹ß»ý½Ã
    ÀÛ¼ºÀÚ : ÁÁÀºÁøÈ£(truefeel, http://coffeenix.net/ )
    ÀÛ¼ºÀÏ : 2006.4.28(±Ý)

    FreeBSD¿¡¼­ PostgreSQL ¼³Ä¡ÈÄ¿¡ initdb ½ÇÇàÇÒ ¶§, ´ÙÀ½°ú °°Àº ¿¡·¯°¡ ¹ß»ýÇÑ´Ù¸é Ä¿³Î ÆĶó¹ÌÅÍ¿¡¼­
    semaphore ¼³Á¤°ªÀ» ´Ã·ÁÁÖ¸é ÇØ°áÀÌ °¡´ÉÇÏ´Ù.

     
    creating configuration files ... ok
    creating template1 database in /usr/local/pgsql/data/base/1 ...
    FATAL: could not create semaphores: No space left on device
    DETAIL: Failed system call was semget(1, 17, 03600).
    HINT: This error does *not* mean that you have run out of disk space.
    It occurs when either the system limit for the maximum number of semaphore sets (SEMMNI), or the system wide maximum number of semaphores (SEMMNS), would be exceeded. You need to raise the respective kernel parameter. Alternatively, reduce PostgreSQL's consumption of semaphores by reducing its max_connections parameter (currently 10).
    The PostgreSQL documentation contains more information about configuring your system for PostgreSQL.
    child process exited with exit code 1
    initdb: removing data directory "/usr/local/pgsql/data"
     


    ¸ÕÀú semaphore Á¤º¸¸¦ »ìÆ캸ÀÚ.

     
    # ipcs -S
    seminfo:
            semmap:           30    (# of entries in semaphore map)
            semmni:           10    (# of semaphore identifiers)
            semmns:           60    (# of semaphores in system)
            semmnu:           30    (# of undo structures in system)
            semmsl:           60    (max # of semaphores per id)
            semopm:          100    (max # of operations per semop call)
            semume:           10    (max # of undo entries per process)
            semusz:           92    (size in bytes of undo structure)
            semvmx:        32767    (semaphore maximum value)
            semaem:        16384    (adjust on exit max value)
     


    ÀÌ °ªÀ» º¯°æÇÏ·Á¸é ¾î¶»°Ô ÇؾßÇÒ±î? sysctl read-only °ªÀ̾, sysctl ¸í·ÉÀ¸·Î´Â ÀÌµé ¼³Á¤ °ªÀ»
    È®ÀÎÇÒ ¼ö´Â ÀÖÀ¸³ª ¼öÁ¤Àº ÇÒ ¼ö ¾ø´Ù. /boot/loader.conf ¿¡ ´ÙÀ½À» Ãß°¡ÇØÁÖ°í ¸®ºÎÆÃÇØÁà¾ß ÇÑ´Ù.
    semmni = 10, semmns = 60Àε¥ À̸¦ ¾à 2¹è Á¤µµ·Î¸¸ ¿Ã·Áº» °æ¿ìÀÌ´Ù.

     
    kern.ipc.semmni="20"
    kern.ipc.semmns="120"
     



    * Âü°íÀÚ·á
      FreeBSD Handbook Chapter 11 Configuration and Tuning
      http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-sysctl.html



    Ä¿ÇǴнº, ½Ã½ºÅÛ ¿£Áö´Ï¾îÀÇ ½°ÅÍ / URL : http://coffeenix.net/board_view.php?bd_code=1417