Re: Tuning for PostGreSQL Database

From: Tom Samplonius (tom_at_sdf.com)
Date: 07/26/03

  • Next message: Terry Lambert: "Re: Tuning for PostGreSQL Database"
    Date: Fri, 25 Jul 2003 21:56:08 -0700 (PDT)
    To: Terry Lambert <tlambert2@mindspring.com>
    
    

    On Fri, 25 Jul 2003, Terry Lambert wrote:

    > Christopher Weimann wrote:
    > > So I have conflicting documentation.
    > >
    > > I have machine with 4Gig of ram. What is the maximum
    > > value of SHMMAX on FreeBSD?
    >
    > Ideally, you would use memory mapped files for this, and not System V
    > shared memory, so that the OS could implement swapping policies as it
    > saw fit, and could actually swap the data, if nevcessary, instead of
    > it sucking up huge amounts of wired memory.

      PostgreSQL is from the good old days of RDMSes when the they would
    System V shared memory for everything, and store databases on raw devices
    in an effort to utilize as little of the OS as possible, in effort to be
    fast and reliable.

      But it does give PostgreSQL the advantage of working with large tables
    and databases. Mmapping a file over 4GB in size would likely exhaust the
    VM on a x86. Or, is it possible to map 4+GB with PAE?

    > In any case, POSIX deprecated SysV shared memory years ago, and
    > recommends that all code utilize shm_open instead, these days, if
    > you insist on using an interface that sucks up huge amounts of
    > wired pages and KVA space.
    >
    > -- Terry
    >
    >

    Tom

    _______________________________________________
    freebsd-performance@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-performance
    To unsubscribe, send any mail to "freebsd-performance-unsubscribe@freebsd.org"


  • Next message: Terry Lambert: "Re: Tuning for PostGreSQL Database"

    Relevant Pages

    • Re: PostgreSQL uses more memory on 6.1?
      ... and was surprised to find that PostgreSQL wouldn't start because it ... couldn't allocate enough shared memory. ... did you change your kernel config? ...
      (freebsd-questions)
    • Re: PostgreSQL in FreeBSD jails
      ... > AFAIR PostgreSQL generates the shared memory identifier based on ... > the port it is runing on. ... - hack the SysV IPC code to use separate namespaces for each jail ...
      (freebsd-stable)
    • Re: PostgreSQL in FreeBSD jails
      ... >> It might be easier to hack PostgreSQL so that the shared memory ... >> (which will of course be different for each jail). ... >> be able to specify the shared memory identifier to use directly in the ... PostgreSQL generates the shared memory identifier based on the port it ...
      (freebsd-stable)
    • Re: PostgreSQL in FreeBSD jails
      ... > - hack the SysV IPC code to use separate namespaces for each jail ... It might be easier to hack PostgreSQL so that the shared memory ... (which will of course be different for each jail). ...
      (freebsd-stable)