changing max_connections in postgresql on FreeBSD 5.4

From: Claus Guttesen (kometen_at_gmail.com)
Date: 08/04/05

  • Next message: Sean Chittenden: "Re: changing max_connections in postgresql on FreeBSD 5.4"
    Date: Thu, 4 Aug 2005 19:01:29 +0200
    To: freebsd-performance@freebsd.org
    
    

    Hi.

    I recently lowered max_connections from 1024 to 384 in
    /usr/local/pgsql/data/postgresql.conf. The server is a quad opteron @
    2 GHz and 4 GB of RAM.

    This decreased the SIZE and RES values in top and it seems that the
    current max_connections is more than adequate. To see how many
    concurrent connections the db-server had I did a 'netstat -na|grep -i
    establi|wc -l' which showed some 230 established connections during
    peak.

    In order to use max_connections set to 1024 I had to raise the
    following values in the kernel:

    options SHMMAXPGS=327680
    options SEMMNI=200
    options SEMMNS=1200
    options SEMUME=200
    options SEMMNU=600

    The values were taken from the postgresql-ports-installation-notes and
    were simply increased to fit the max_connections-parameter in
    postgresql.conf.

    Will more RAM become available to postgresql if I change the
    kernel-values mentioned above to half the size?

    The server does occasionally become loaded with load-averages around 6
    or 7 but usually stays below 4. Disk-io is not a problem, usually
    remains below 1 MB/s, cpu-idle is approx. 5-10 % during peak and
    around 80 % idle otherwise.

    regards
    Claus
    _______________________________________________
    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: Sean Chittenden: "Re: changing max_connections in postgresql on FreeBSD 5.4"

    Relevant Pages

    • Re: memory related
      ... "memory" is more than just RAM. ... periodically, using virtual memory, which is why your peak is over your ... Your limit is your RAM plus your swap file. ... So is server status telling me I need memory or not? ...
      (microsoft.public.windows.server.sbs)
    • Re: Alocated Memory Error (SQLSERVR)
      ... but my understanding is that the MSDE instances are designed to ... and you don't want it grabbing all that RAM. ... running but non ever going about 200mb of memory usage. ... Server 2000 SP4, ...
      (microsoft.public.windows.server.sbs)
    • Re: High memory usage (*HELP*)
      ... you can use Computer Management MMC to view the server logs. ... a server with 4 GB RAM, I doubt you need the second page file on D. So ... The virtual memory on D: drive is set to: 1550/3075 ... throttled ISA and Monitoring. ...
      (microsoft.public.windows.server.sbs)
    • Re: High memory usage (*HELP*)
      ... report that resides on that server I will get error pertaining to low vm. ... the RAM question because I suspect the SBS is taking care of that as it ... The virtual memory on D: drive is set to: 1550/3075 ... represent, so you can tell if it's ISA, Monitoring, or SharePoint. ...
      (microsoft.public.windows.server.sbs)
    • Re: High memory usage (*HELP*)
      ... I rebooted the server, I should have just restarted the service for report ... a server with 4 GB RAM, I doubt you need the second page file on D. ... The virtual memory on D: drive is set to: 1550/3075 ...
      (microsoft.public.windows.server.sbs)