Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 116299FA6B3 for ; Fri, 6 Jul 2007 13:03:21 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 05656-01 for ; Fri, 6 Jul 2007 13:03:15 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 7CACB9FA4DF for ; Fri, 6 Jul 2007 13:03:16 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from brmea-mail-1.sun.com (brmea-mail-1.Sun.COM [192.18.98.31]) by svr4.postgresql.org (Postfix) with ESMTP id 30D1D5AF89C for ; Fri, 6 Jul 2007 16:03:16 +0000 (GMT) Received: from fe-amer-03.sun.com ([192.18.108.177]) by brmea-mail-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id l66G3D99016836 for ; Fri, 6 Jul 2007 16:03:13 GMT Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) id <0JKR00L01LQRGP00@mail-amer.sun.com> (original mail from J.K.Shah@Sun.COM) for pgsql-performance@postgresql.org; Fri, 06 Jul 2007 10:03:13 -0600 (MDT) Received: from [129.148.9.17] by mail-amer.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPSA id <0JKR00EI9LXD71R2@mail-amer.sun.com>; Fri, 06 Jul 2007 10:03:13 -0600 (MDT) Date: Fri, 06 Jul 2007 12:03:12 -0400 From: "Jignesh K. Shah" Subject: Re: Direct I/O In-reply-to: To: lai yoke hman Cc: pgsql-performance@postgresql.org Message-id: <468E67C0.60405@sun.com> Organization: Sun Microsystems MIME-version: 1.0 Content-type: text/plain; charset=Big5 Content-transfer-encoding: 8BIT References: User-Agent: Thunderbird 1.5.0.8 (X11/20061110) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/51 X-Sequence-Number: 25735 On Solaris you just look at the mount options on the file system and see if there is a forcedirectio option enabled. Generally since PostgreSQL doesn't use any special options for enabling directio that's a known way to figure it out on Solaris. Atleast on Solaris the performance over buffered filesystem is better for many workloads but not always. Plus you typically see a small reduction in CPU usage (system) and ofcourse memory. However depending on workload, you may see increased latency in writes but generally that's not the problem in many workloads since its the multiple writes to the same file which is better using concurrentio (modified directio) in Solaris. As for Linux I will leave that to other experts .. -Jignesh lai yoke hman wrote: > Hello, > How can I know my PostgreSQL 8 is using direct I/O or buffered I/O? If using buffered I/O, how can I enable direct I/O? What is the performance difference of them? > This is urgent, Thanks. > _________________________________________________________________ > Windows Live Spaces is here! It¡¦s easy to create your own personal Web site. > http://spaces.live.com/?mkt=en-my > > ---------------------------(end of broadcast)--------------------------- > TIP 5: don't forget to increase your free space map settings >