From user-return-13883-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Tue Nov 23 12:30:49 2010 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 63228 invoked from network); 23 Nov 2010 12:30:48 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Nov 2010 12:30:48 -0000 Received: (qmail 92517 invoked by uid 500); 23 Nov 2010 12:31:19 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 92376 invoked by uid 500); 23 Nov 2010 12:31:16 -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 92367 invoked by uid 99); 23 Nov 2010 12:31:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Nov 2010 12:31:15 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bchesneau@gmail.com designates 209.85.213.52 as permitted sender) Received: from [209.85.213.52] (HELO mail-yw0-f52.google.com) (209.85.213.52) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Nov 2010 12:31:07 +0000 Received: by ywf9 with SMTP id 9so1046394ywf.11 for ; Tue, 23 Nov 2010 04:30:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=gYanukfXeoocNgMIOa0QWvfELeuZ7rg2JJc7msOgwD8=; b=urUGh/z/DvxkKwyOHh3Whq9oo1ezog8YqV9yM2KYIq+aCNnOHvP6vc/dCsaUiu2xQE oMNy2qnIW142N10F793Gptm02jJ38HcW4UvDIYD4JxXsY1FD0oqADiWRyM0yZcqGFzXn JMJa/JBYKkzQLuw4AVZBgC6K84mJdYXgQBEkA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=t2re74P+4TjmGNo5nCsuUXQU0Y0QO9luKIhb2ldkQvZFArVncIPvC2UF+gntk226tM S//MYQ0WC8RORD+eCsYH9hFfewUjlSsHmLmQw8lXwVb+BBje3jKmGtnUG4wgjBHhZsG/ X0FX3o5fjH+CDKBqNv4i1SnMwchmbqiqHTkNc= MIME-Version: 1.0 Received: by 10.231.190.2 with SMTP id dg2mr8305055ibb.136.1290515446022; Tue, 23 Nov 2010 04:30:46 -0800 (PST) Received: by 10.231.50.70 with HTTP; Tue, 23 Nov 2010 04:30:45 -0800 (PST) In-Reply-To: References: <20101116130051.noatxco6osk0kcs8@webmail.bath.ac.uk> <20101116165649.6tbx1v0n40g4sosc@webmail.bath.ac.uk> Date: Tue, 23 Nov 2010 13:30:45 +0100 Message-ID: Subject: Re: Large attachments From: Benoit Chesneau To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Mon, Nov 22, 2010 at 3:51 PM, Bram Neijt wrote: > Bit of a mis-understanding here, it is about downloads, not uploads. > > For example: > dd if=3D/dev/urandom of=3D/tmp/test.bin count=3D50000 bs=3D10240 > Put test.bin as an attachment in a coucdb database > Run > for i in {0..50};do curl http://localhost:5984/[test > database]/[doc_id]/test.bin > /dev/null 2>&1 & done > > This will create 50 curl processes which download from your couchdb. > Looking at the memory consumption of couchdb, it seems like it is > loading large parts of the file into memory. > > Bram > what is the exact memory usage ? - beno=EEt