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 0CA40998D for ; Wed, 16 May 2012 18:37:57 +0000 (UTC) Received: (qmail 50084 invoked by uid 500); 16 May 2012 18:37:56 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 50008 invoked by uid 500); 16 May 2012 18:37:56 -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 49995 invoked by uid 99); 16 May 2012 18:37:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 May 2012 18:37:56 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of north.n@gmail.com designates 209.85.213.180 as permitted sender) Received: from [209.85.213.180] (HELO mail-yx0-f180.google.com) (209.85.213.180) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 May 2012 18:37:51 +0000 Received: by yenq6 with SMTP id q6so1218609yen.11 for ; Wed, 16 May 2012 11:37:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=0HdLPy2ZxIHEJgOubyM4zk9fxMqynVr4bagiBc742yY=; b=VoMZfPR+jfuK3jxf9GJJ3j7RDn0GZB5HL0tBad9sP496tSfZ76Do2r5tvUyzgn4DaW n0xRaFG+yrSbFxcrSFPyzeG190KTbB/IZf4vFFtEHDI6z6P/QYBgf5dbYf0/uuCCYKbj 9fZMqARjkIbTagVb/Cu0yOJlwcLi0Px7XvDR5K6O5bNEp/uKtA1Lz8/ZTPRnRXdh1ELO QLLB4nnTu1oK2++ZfyXk1vrjQ5vCqdo8YK519d3OwpT5hUiLhcS+jOv2izldGOk1mx0q Qf/UpwaXP6BR8gJlXL1+SA+k4oX3OHFhMloItJ7PhwuwQriiPgOUBYtRpXUbRV+zdB7K fTtw== MIME-Version: 1.0 Received: by 10.101.10.18 with SMTP id n18mr1384761ani.85.1337193451259; Wed, 16 May 2012 11:37:31 -0700 (PDT) Received: by 10.236.176.225 with HTTP; Wed, 16 May 2012 11:37:31 -0700 (PDT) In-Reply-To: References: Date: Wed, 16 May 2012 19:37:31 +0100 Message-ID: Subject: Re: Replicated database size From: Nick North To: dev@couchdb.apache.org Content-Type: multipart/alternative; boundary=0016e68de9b3a8886f04c02b9c3d X-Virus-Checked: Checked by ClamAV on apache.org --0016e68de9b3a8886f04c02b9c3d Content-Type: text/plain; charset=ISO-8859-1 Thanks for replying - that test does show up a problem. It works fine on my Win7 machine but, on Windows Server, says: Erlang R15B (erts-5.9) [source] [smp:2:2] [async-threads:0] Eshell V5.9 (abort with ^G) 1> application:load(snappy). ok 2> application:start(snappy). ok 3> c(snappy_tests). {ok,snappy_tests} 4> snappy_tests:test(). snappy_tests: compression_test_...*failed* ::snappy_nif_not_loaded snappy_tests: decompression_test_...*failed* ::snappy_nif_not_loaded ======================================================= Failed: 2. Skipped: 0. Passed: 0. error Both systems have snappy_nif.dll, in the %COUCHDB%\lib\snappy-1.0.3\priv directory and they look to be the same file, at least as far as can be determined from Windows Explorer. C++ runtime versions are fairly different. The server has 2008 x64 and x86, and 2010 x86. The Win7 machine has 2005 x64, 2008 x64 and x86, 2010 x64 and x86 and the C++ 11 Beta x64. There are various sub-versions of each, and I can give more details if that is useful. Thanks for your help with this, and do let me know what else I can do to track down the problem. Nick On 16 May 2012 18:36, Dave Cottlehuber wrote: > On 16 May 2012 16:49, Nick North wrote: > > > Following up on my own email, this seems to be an issue with snappy on > > Windows Server 2008. When I changed the file_compression setting to > > deflate_6, the "large" databases went down from 7GB to 1GB after > > compaction. I'm not entirely sure if this counts as a bug so I won't > raise > > an issue on it. > > > > Something's not right here. Are you able to run a couple tests on both > instances? > > > https://www.dropbox.com/sh/jeifcxpbtpo78ak/wvnm1MHmP9/testing/snappy_tests.erl > > Copy this file to your %COUCHDB%/bin/ folder. Then run werl.exe shell (i.e. > not couch). > > Erlang R15B (erts-5.9) [source] [smp:2:2] [async-threads:0] > > Eshell V5.9 (abort with ^G) > 1> application:load(snappy). > ok > 2> application:start(snappy). > ok > 3> c(snappy_tests). > {ok,snappy_tests} > 4> snappy_tests:test(). > All 2 tests passed. > ok > 5> > > Hopefully somewhere in there it spits out a sensible error message & we can > work from there. > > Also if there's a way to find what version(s) of vcredist_x86 are installed > on the > server versions vs the other ones, that might help. > > By the way: kudos to whoever wrote the code to deal with file_compression. > > When I changed file_compression to deflate_6, the system happily worked > > with the existing, supposedly snappy-compressed databases, and converted > > format on the next compaction. That could have gone wrong in several > ways, > > but didn't, so thank you. > > > > That is Filipe's work. > > A+ > Dave > --0016e68de9b3a8886f04c02b9c3d--