Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4E1C49356 for ; Tue, 25 Oct 2011 20:00:14 +0000 (UTC) Received: (qmail 49929 invoked by uid 500); 25 Oct 2011 20:00:12 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 49884 invoked by uid 500); 25 Oct 2011 20:00:12 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 49876 invoked by uid 99); 25 Oct 2011 20:00:12 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Oct 2011 20:00:12 +0000 Received: from localhost (HELO mail-iy0-f180.google.com) (127.0.0.1) (smtp-auth username rnewson, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Oct 2011 20:00:12 +0000 Received: by iakc1 with SMTP id c1so1453417iak.11 for ; Tue, 25 Oct 2011 13:00:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.25.229 with SMTP id a37mr823434ibc.8.1319572811779; Tue, 25 Oct 2011 13:00:11 -0700 (PDT) Received: by 10.231.36.195 with HTTP; Tue, 25 Oct 2011 13:00:11 -0700 (PDT) In-Reply-To: <31406785.20111025232214@imarto.net> References: <31406785.20111025232214@imarto.net> Date: Tue, 25 Oct 2011 21:00:11 +0100 Message-ID: Subject: Re: High latency (40ms) and low request rate (10 rps) under windows From: Robert Newson To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable My guess would be fsync(). B. 2011/10/25 Konstantin Cherkasov : > Hi! > > I installed CouchDB 1.1.0 on Windows (Winows 7, 32 bit) and tried to > test performance using ab.exe > (Apache Benchmark http://httpd.apache.org/docs/2.2/programs/ab.html) > > ab.exe -k -c 1 -n 1000 -p ab.json -T "application/json" http://localhost:= 5984/bench > > where ab.json contains the simplest document {"value": "test"}. > > This utility do 1000 POSTs with no concurency (-c 1) in single > connection (-k for keepalive). > > On my laptop (it's NOT low cost netbook) I got 10 requests per second. > So it is 0.1 second per single request. > And CPU and HDD utilization is actually ZERO. > > I was just wondering what exactly CouchDB doing all this time > (0.1 second) with single little record? > > As the utilization of CPU and HDD is 0%, I believe that they are not the = bottleneck. > > So where is bottleneck? > > > > P.S. > All test I did with delayed_commits =3D false. > And I tried socket_options =3D [{nodelay, true}] > > -- > =A0Konstantin Cherkasov > >