Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 88762 invoked from network); 4 Jun 2010 23:07:16 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Jun 2010 23:07:16 -0000 Received: (qmail 23303 invoked by uid 500); 4 Jun 2010 23:07:15 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 23168 invoked by uid 500); 4 Jun 2010 23:07:15 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 23159 invoked by uid 99); 4 Jun 2010 23:07:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jun 2010 23:07:15 +0000 X-ASF-Spam-Status: No, hits=-1499.2 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jun 2010 23:07:14 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o54N6sBo017979 for ; Fri, 4 Jun 2010 23:06:54 GMT Message-ID: <6977916.191971275692814684.JavaMail.jira@thor> Date: Fri, 4 Jun 2010 19:06:54 -0400 (EDT) From: "Randall Leeds (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Updated: (COUCHDB-786) Make fewer gen_server calls to fsync the db header In-Reply-To: <32176313.191951275692814400.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COUCHDB-786?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Randall Leeds updated COUCHDB-786: ---------------------------------- Attachment: 0001-db-header-fsync-with-fewer-gen_server-calls.patch > Make fewer gen_server calls to fsync the db header > -------------------------------------------------- > > Key: COUCHDB-786 > URL: https://issues.apache.org/jira/browse/COUCHDB-786 > Project: CouchDB > Issue Type: Improvement > Components: Database Core > Affects Versions: 0.10.2, 0.11 > Reporter: Randall Leeds > Fix For: 0.12 > > Attachments: 0001-db-header-fsync-with-fewer-gen_server-calls.patch > > > Currently the couch_db_updater process is responsible for calling couch_file:sync based on the fsync options when the db header is written. Instead, this patch just passes the fsync options down to couch_file so that writing the header can always be performed with a single gen_server call. > Writes are serialized through couch_db_updater but reads can have high concurrency. This patch should boost write performance when the message queue on couch_file is long. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.