Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 72B6F11190 for ; Wed, 16 Apr 2014 14:04:23 +0000 (UTC) Received: (qmail 45294 invoked by uid 500); 16 Apr 2014 14:04:18 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 45246 invoked by uid 500); 16 Apr 2014 14:04:17 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 45201 invoked by uid 99); 16 Apr 2014 14:04:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Apr 2014 14:04:16 +0000 Date: Wed, 16 Apr 2014 14:04:16 +0000 (UTC) From: "Jason Brown (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-7045) Investigate changes to threading model for network consumers to improve performance for small messages 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/CASSANDRA-7045?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13971423#comment-13971423 ] Jason Brown commented on CASSANDRA-7045: ---------------------------------------- I started an investigation into something like the quasar project (http://docs.paralleluniverse.co/quasar/), where you are doing something like like golang's goroutines / erlang's process. Basically, lightweight event processing not occupying a full thread. While I thought bringing in the whole quasar project was more than what we would want, I thought the basic ideas (scheduler + lightweight routines) would be a great thing to look at. > Investigate changes to threading model for network consumers to improve performance for small messages > ------------------------------------------------------------------------------------------------------ > > Key: CASSANDRA-7045 > URL: https://issues.apache.org/jira/browse/CASSANDRA-7045 > Project: Cassandra > Issue Type: Improvement > Components: Core > Reporter: Benedict > Assignee: Benedict > Labels: performance > > See CASSANDRA-7029 for original discussion. > We can (maybe) optimise the threading model for network consumers: since we generally process very small messages (200 bytes not at all implausible), the thread signalling costs on the processing thread can actually dramatically impede throughput. In general it costs ~10micros to signal (and passing the message to another thread for processing in the current model requires signalling). For 200-byte messages this caps our throughput at 20MB/s. -- This message was sent by Atlassian JIRA (v6.2#6252)