Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 25C7D476033 for ; Fri, 4 Oct 2002 20:05:45 -0400 (EDT) Received: from MAIL01.stbernard.com (mail01.stbernard.com [64.154.93.162]) by postgresql.org (Postfix) with ESMTP id 73361475F85 for ; Fri, 4 Oct 2002 20:05:44 -0400 (EDT) Received: by mail01.stbernard.com with Internet Mail Service (5.5.2653.19) id <4FFC7ZX5>; Fri, 4 Oct 2002 17:05:47 -0700 Message-ID: <7C760DAA511DC74B99E7D22189F786F101BF2207@mail01.stbernard.com> From: Jie Liang To: 'Tom Lane' Cc: "'pgsql-admin@postgresql.org'" Subject: 3 million record updates Date: Fri, 4 Oct 2002 17:05:46 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/33 X-Sequence-Number: 5891 Tom, I tried to update a table with ~3 million records a set=null, it takes a hour unfinished. I checked my vmstat, it shown that disk where the WAL written was 100% busy, so I think we reach the bottleneck. What else parameters I can turn? or I misconfigured? my current pg conf: shared_buffers=60000 wal_buffers=8 sort_mem=512 vacuum_mem=8192 OS conf: shmmax=535404544 shmmin=1 shmmni=192 shmseg=256 shmall=130714 shm_use_phys=1 OS: FreeBSD-4.6.2 DB: Postgresql-7.2.1 Thanks. Jie Liang