Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E78DB716B for ; Wed, 26 Oct 2011 23:32:41 +0000 (UTC) Received: (qmail 19766 invoked by uid 500); 26 Oct 2011 23:32:41 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 19732 invoked by uid 500); 26 Oct 2011 23:32:41 -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 19724 invoked by uid 99); 26 Oct 2011 23:32:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Oct 2011 23:32:41 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of k.cherkasoff@gmail.com designates 209.85.220.180 as permitted sender) Received: from [209.85.220.180] (HELO mail-vx0-f180.google.com) (209.85.220.180) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Oct 2011 23:32:36 +0000 Received: by vcbfo11 with SMTP id fo11so2939533vcb.11 for ; Wed, 26 Oct 2011 16:32:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=/eEThHCyYvZZ6gbuSEB3Klb6Uz7bxvSYoEyqOuwweRE=; b=qd6FKk40KrK9VlCs8keKVs+v87l7Qj1ov6U1C2fO+NJQLct9AvOLIADtI20Q9q9SFg Rs7VTecLvYRdcZiBzc9LN/kCOG+koQuvIRifJDm3/+vKDANa3gDFpg/7J8jhswxLv413 DJxn4nBPlSKiqWesH+EZGHry7bR1G1iX35pQ8= MIME-Version: 1.0 Received: by 10.220.107.195 with SMTP id c3mr637442vcp.253.1319671933912; Wed, 26 Oct 2011 16:32:13 -0700 (PDT) Received: by 10.220.169.69 with HTTP; Wed, 26 Oct 2011 16:32:13 -0700 (PDT) In-Reply-To: References: Date: Thu, 27 Oct 2011 03:32:13 +0400 Message-ID: Subject: Re: High latency (40ms) and low request rate (10 rps) under windows From: Konstantin Cherkasoff To: dev@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi! > What happens when you set delayed_commits to true? With delayed_commits I got about 150 rps so delayed_commits mode is 15 times faster. > With that off you are requiring an fsync (iirc) =C2=A0after every value w= ritten and then are at the > mercy at your disks write performance (but not in the sense of burst-writ= e > as these are individual, disparate write requests coming in). Yes, I understand that many small writes and fsyncs can be a bottleneck in this case. But I found that the increase of number of concurrent requests lead to an increase in the request rate. For example (100 concurent requests) > ab -k -t 10 -c 100 -n 1000000 -p ab.json -T "application/json" http://loc= alhost:5984/bench shows about 300 RPS (writes and fsyncs) on the same hardware. So, I suppose that 10 requests per second actually is not the limit for this hard disk. And there may be some other problem. > Also, is this build Couch Single Server from Couchbase or some other Wind= ows build of Couch? I tried Couchbase 1.2.0 and this build https://github.com/downloads/dch/couchdb/setup-couchdb-1.1.0+COU= CHDB-1152_otp_R14B03.exe -- Konstantin