Re: Tuning Postgresql on FreeBSD 5.1

From: Paul Pathiakis (paul_at_pathiakis.com)
Date: 08/26/03

  • Next message: Paul Pathiakis: "Re: Tuning Postgresql on FreeBSD 5.1"
    To: "Marc G. Fournier" <scrappy@hub.org>
    Date: Tue, 26 Aug 2003 15:33:22 -0400
    
    

    Hi,

            I'm running 5.1-RELEASE. No, I didn't enable it in my kernel config. Top
    shows only cpu 0 and cpu 2 running. However, as the machine boots it tells
    me that it enables cpu 1, 2, and 3. The only thing in my kernel that I
    enabled is SMP and APIC_IO.

            Thanks!

            P.

    On Tuesday 26 August 2003 03:19 pm, Marc G. Fournier wrote:
    > You are running -STABLE? Did you enable HTT in your kernel config file?
    >
    > On Tue, 26 Aug 2003, Paul Pathiakis wrote:
    > > Marc,
    > >
    > > I've tried disabling HTT in the BIOS (it's an Intel board). I've
    > > disable HTT, saved the changes and the kernel is still seeing 4 CPUs when
    > > it boots. Any ideas?
    > >
    > > Thanks,
    > >
    > > P.
    > >
    > > On Tuesday 26 August 2003 12:44 am, Marc G. Fournier wrote:
    > > > > > Again, the machine is a twin 2.8 Xeon HTT machine. HTT is turned
    > > > > > on and the machine sees 4 cpus.
    > > > >
    > > > > Have you played with toggling the sysctl machdep.cpu_idle_hlt?
    > > >
    > > > In fact, disabled HTT altogether ... I have a machine with pretty much
    > > > the same specs (2.4 vs 2.8 Xeon's) and I found performance noticeably
    > > > improved with HTT disabled ... not just with processes, but with
    > > > interactive sessions as well ...
    > > >
    > > > > >From your postgresql.conf:
    > > > > >
    > > > > > shared_buffers = 48000 # min max_connections*2 or 16, 8KB
    > > > > > each
    > > > >
    > > > > WHOA! This is too high by a factor of about 10. You probably want a
    > > > > shared buffers set to 4096.
    > > >
    > > > Why? If you have the memory and all that ... All my production servers
    > > > run:
    > > >
    > > > /usr/local/bin/postmaster -B 40960 -N 512 -i -p 5432
    > > > -D/usr/local/pgsql/5432 -S (postgres)
    > > >
    > > > > > sort_mem = 32768 # min 64, size in KB
    > > > >
    > > > > This also seems high, divide by 8 and you're at a more reasonable
    > > > > level.
    > > >
    > > > Again, depends on alot of things here ... if he only has the one
    > > > connection to the DB, allowing for 32M of RAM to be used for sorting
    > > > isn't a bad thing, since it keeps the sorts off of the hard drive ...
    > > > that is one stat that I wish we kept somehow ... "max sort size" ...

    _______________________________________________
    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: Paul Pathiakis: "Re: Tuning Postgresql on FreeBSD 5.1"

    Relevant Pages

    • Re: [PATCH] AMD Thermal Interrupt Support
      ... This patch to 2.6.24-rc5 enables AMD Barcelona CPUs to register thermal throttling events as machine checks, ... * Wrapper for the CPU-specific thermal interrupt service routine. ... we'd have to discern the CPU brand at runtime (because support could ...
      (Linux-Kernel)
    • Re: [BUG] x86 kenel wont boot under Virtual PC
      ... optimizations have historically really been about _optimizing_, ... those exceptions have been way more imporant than NOPL). ... actually enables EMBEDDED and does all his choices by hand should no ... The difference between a kernel compiled for generic and once compiled for a specific CPU can be very significant. ...
      (Linux-Kernel)
    • Re: kernel cpu entries
      ... enables things like optimized bcopy. ... If you only want the kernel to run on a Pentium class CPU, you can easily remove I486_CPU, but only remove I586_CPU if you are sure your CPU is being recognized as a Pentium II or better. ... I think it makes the most sense for I686_CPU to enable the optimized bcopy if it really is a win for i686 CPUs. ... SSE instead, and that any change that doesn't involve SSE is wrong and ...
      (freebsd-stable)
    • Re: kernel cpu entries
      ... enables things like optimized bcopy. ... There are a number of *_CPU options that can be commented out. ... SSE instead, and that any change that doesn't involve SSE is wrong and ...
      (freebsd-stable)
    • Re: RFC: [2.6 patch] better i386 CPU selection
      ... >> What does a user think on which machines a kernel will run after he ... currently you first choose the CPU. ... settings like the CPU features (e.g. enables X86_F00F_BUG) and the gcc ... The "Generic x86 support" question is asked later. ...
      (Linux-Kernel)