Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 39672 invoked from network); 2 Feb 2011 18:53:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Feb 2011 18:53:54 -0000 Received: (qmail 40979 invoked by uid 500); 2 Feb 2011 18:53:54 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 40315 invoked by uid 500); 2 Feb 2011 18:53:51 -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 40292 invoked by uid 99); 2 Feb 2011 18:53:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Feb 2011 18:53:50 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Feb 2011 18:53:49 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 03D37189264 for ; Wed, 2 Feb 2011 18:53:29 +0000 (UTC) Date: Wed, 2 Feb 2011 18:53:29 +0000 (UTC) From: "Filipe Manana (JIRA)" To: dev@couchdb.apache.org Message-ID: <4334568.5663.1296672809011.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <620453889.4421.1296621749066.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Commented: (COUCHDB-1054) Better couch_log performance 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-1054?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12989743#comment-12989743 ] Filipe Manana commented on COUCHDB-1054: ---------------------------------------- Yes, the addition of the timestamp is not externalized to avoid having strange logs, with later timestamps coming before earlier ones. If externalized, it would likely confuse many users. However I don't mind at all about it. Is everyone ok with this? At some point I had the message converted to a binary with an iolist_to_binary call, it's certainly difficult to measure the impact, but I'm not sure what is more expensive: converting to a binary or copying an iolist. I didn't know about io:put_chars, but it seems to accept binaries and iolists besides charlists (the docs only mention charlists). I'll definitely use it. > Better couch_log performance > ---------------------------- > > Key: COUCHDB-1054 > URL: https://issues.apache.org/jira/browse/COUCHDB-1054 > Project: CouchDB > Issue Type: Improvement > Reporter: Filipe Manana > Assignee: Filipe Manana > Attachments: COUCHDB-1054-2.patch, COUCHDB-1054.patch > > > Building the messages to write to the console and the log file can be done outside the couch_log gen_event. This significantly increases the parallelism when many processes log messages. The following relaximation test graph shows a throughput increase using the attached patch against current trunk: > http://graphs.mikeal.couchone.com/#/graph/0379dbdaef29b1c0fbf03421540243f7 -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira