Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id A6BCB634602 for ; Wed, 11 Mar 2009 16:27:30 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 70781-03-3 for ; Wed, 11 Mar 2009 16:27:21 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-fx0-f168.google.com (mail-fx0-f168.google.com [209.85.220.168]) by mail.postgresql.org (Postfix) with ESMTP id E8CAF633F85 for ; Wed, 11 Mar 2009 16:27:11 -0300 (ADT) Received: by fxm12 with SMTP id 12so189781fxm.19 for ; Wed, 11 Mar 2009 12:27:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=max05hdoA/EfAtwQK4pVnkxo0GP3NEte/MPLREYHDNg=; b=g2vGAAbF5oyIxXZN9kRjmZagdPxJSm3PFHo26hEe61BczcT8e7Q55yv90UwB/klCyI WWHNxyYoet/qFqR+tX9Wf3Ra8OHbJMDNliQ2+RSbldEpOXcAhJUROPcuUeV7h9QKHMxJ HGNDqba5W9FKcQvQH8aAL8IRRq8qzwkTVaRAw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; b=xTqiLd5D4tpcuTq0N84CrVHyx6RpddyklS7hp+7SoUM2qGES3q6TCy0u+UKe4BeZBK wRo2JJkfihMqXr7kWvDrI1FryQy4dKaGyGtkyLYAVIgdIqRLdlAn2RzC479FbIrq5/SB cpWJoIQ5145nViMKNTFZyE061fs2aMaV4Wmak= MIME-Version: 1.0 Received: by 10.223.112.202 with SMTP id x10mr6684126fap.68.1236799630626; Wed, 11 Mar 2009 12:27:10 -0700 (PDT) Date: Wed, 11 Mar 2009 19:27:10 +0000 X-Google-Sender-Auth: e8d46a585fa5cd9d Message-ID: <7d10d2df0903111227g2e40e742g5992cba5158dd4d2@mail.gmail.com> Subject: Full statement logging problematic on larger machines? From: Frank Joerdens To: pgsql-performance@postgresql.org Cc: Nic Ferrier , Avleen Vig , Mike Rogers Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200903/98 X-Sequence-Number: 33020 Greetings. We're having trouble with full logging since we moved from an 8-core server with 16 GB memory to a machine with double that spec and I am wondering if this *should* be working or if there is a point on larger machines where logging and scheduling seeks of background writes - or something along those lines; it might be a theory - doesn't work together any more? The box in question is a Dell PowerEdge R900 with 16 cores and 64 GB of RAM (16 GB of shared buffers allocated), and a not-so-great root@db04:~# lspci|grep RAID 19:00.0 RAID bus controller: LSI Logic / Symbios Logic MegaRAID SAS 1078 (rev 04) controller with 8 10k rpm disks in RAID 1+0 (one big filesystem), running Ubuntu Hardy with kernel version root@db04:~# uname -a Linux db04 2.6.24-22-server #1 SMP Mon Nov 24 20:06:28 UTC 2008 x86_64 GNU/Linux Logging to the disk array actually stops working much earlier; at off-peak time we have around 3k transactions per second and if we set log_statement = all, the server gets bogged down immediately: Load, context switches, and above all mean query duration shoot up; the application slows to a crawl and becomes unusable. So the idea came up to log to /dev/shm which is a default ram disk on Linux with half the available memory as a maximum size. This works much better but once we are at about 80% of peak load - which is around 8000 transactions per second currently - the server goes into a tailspin in the manner described above and we have to switch off full logging. This is a problem because we can't do proper query analysis any more. How are others faring with full logging on bigger boxes? Regards, Frank