Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 89849 invoked from network); 4 Jun 2010 23:15:19 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Jun 2010 23:15:19 -0000 Received: (qmail 29886 invoked by uid 500); 4 Jun 2010 23:15:19 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 29834 invoked by uid 500); 4 Jun 2010 23:15:19 -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 29826 invoked by uid 99); 4 Jun 2010 23:15:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jun 2010 23:15:19 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED 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:15:17 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o54NEtXT018023 for ; Fri, 4 Jun 2010 23:14:55 GMT Message-ID: <18708300.192091275693295592.JavaMail.jira@thor> Date: Fri, 4 Jun 2010 19:14:55 -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 X-Virus-Checked: Checked by ClamAV on apache.org [ 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 doh. how many times will I forget to run git add. > 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.