Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1Su2XH-0007zJ-8y for bitcoin-development@lists.sourceforge.net; Wed, 25 Jul 2012 14:26:00 +0000 Received-SPF: pass (sog-mx-1.v43.ch3.sourceforge.com: domain of mistfpga.net designates 208.91.199.217 as permitted sender) client-ip=208.91.199.217; envelope-from=steve@mistfpga.net; helo=us2.outbound.mailhostbox.com; Received: from us2.outbound.mailhostbox.com ([208.91.199.217]) by sog-mx-1.v43.ch3.sourceforge.com with esmtp (Exim 4.76) id 1Su2WY-0000Ru-7h for bitcoin-development@lists.sourceforge.net; Wed, 25 Jul 2012 14:25:18 +0000 Received: from [10.10.10.55] (5ad2e75a.bb.sky.com [90.210.231.90]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: steve@mistfpga.net) by us2.outbound.mailhostbox.com (Postfix) with ESMTPSA id 8627B698C71; Wed, 25 Jul 2012 10:25:06 -0400 (EDT) Message-ID: <501001A6.90301@mistfpga.net> Date: Wed, 25 Jul 2012 15:24:38 +0100 From: steve User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 MIME-Version: 1.0 To: =?ISO-8859-1?Q?Michael_Gr=F8nager?= References: <500D73B9.5030806@mistfpga.net> <500EFE00.7060200@mistfpga.net> In-Reply-To: X-Enigmail-Version: 1.4.3 Content-Type: text/plain; charset=ISO-8859-1 X-CTCH-Spam: Unknown X-CTCH-VOD: Unknown X-CTCH-RefID: str=0001.0A020209.501001C4.0105, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-Scanned-By: MIMEDefang 2.72 on 172.16.214.9 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.4 (-) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid X-Headers-End: 1Su2WY-0000Ru-7h Cc: bitcoin-development@lists.sourceforge.net Subject: Re: [Bitcoin-development] Scalability issues X-BeenThere: bitcoin-development@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jul 2012 14:26:00 -0000 On 25/07/2012 10:45, Michael Gr=F8nager wrote: > Hi Steve, >=20 > I see dramatic differences in performance on virtual machines vs=20 > running directly on the iron. I am not an expert in virtual > machines, They can be, it depends on how they are set up. For reference, these VM's used to test network stacks and file format bugs. They do this via debug tracing, trace into, not over. They then dump this data in files and it can keep up with a core2 duo laptop for file io. however I moved to using an in ram database (4gb chunks, that then get dumped over the network port to a db on a seperate machine) I am not sure I have the skills to instrament this into bitcoind >=20 > I would like to do a test keeping database log files in memory. It=20 > should not matter for durability of the wallet, as it flushes at > each write anyway. As for the blockindex, it will remain > consistent, but might be lagging some blocks behind at startup, > which shouldn't really matter (except that the same block could end > up appearing twice in the block00X files, inelegant, but not really > a problem). >=20 > Otherwise the system you describe (raid0 over 6 disks) should > perform like crazy wrt disk i/o, at least on par with SSD. It is > your virtualization I am worried about. I will test that when I get back :) >=20 > Have a safe trip to down under! will do, thanks for the response. :) >=20 > /M >=20 > On 24/07/2012, at 21:56, steve wrote: >=20 >> Hi Michael, >>=20 >> from what I have noticed, bitcoin blockchain >> download/verfication all happens in 1 thread. (so multicores >> doesnt really help) >>=20 >> That said, I have never tried on an ssd. >>=20 >> What I do have is 6 SATA 6gbs configed as RAID0 Drives. 32gb of=20 >> ram. ubuntu 64 (yeah I know), this runs upto 16 VM's (I have 4 >> of these) >>=20 >> However I have not tried to download the blockchain on the >> master os, just in virtulisation. However, the dedicated >> machines that I have been using for benchmarking the VM's against >> is a q6600 8gb ram sata2 hdd - Win 7 (seems faster than >> slackware...) to me it has always felt like network bandwidth was >> the issue. I might instrument the bitcoin-qt exe to only pick >> low ping nodes (has someone already done this?) >>=20 >> I guess it is time to start some benchmarking (like the gpu=20 >> comparison page) >>=20 >> hte verification for the 5 past 5 days was negliglable. I am off >> on a flight to australia tomorrrow, so I will set some >> breakpoints and do some timings in a debugger. >>=20 >> This will all happen on an e-450 (wonderful machine!) >>=20 >> Thanks very much for your response. it would seem that I am >> 'doing it wrong' :/ >>=20 >> cheers mate, >>=20 >> steve >>=20 >> (this message isnt signed because I have forgotten my password.) >>=20 >> On 24/07/2012 09:25, Michael Gr=F8nager wrote: >>> Hi Steve, >>>=20 >>> 45-90 minutes - note that its numbers from March/April, so a >>> bit longer today, but far, far away from the 12 hours. >>>=20 >>> I am using libcoin and the bitcoind build based on this. >>> Libcoin is based on the Satoshi client, but refactured to use >>> an async concurrency model. I also did a minor tweeks to the >>> db parameters. It has earlier been tested up against Satoshi >>> bitcoin where on some OS'es it performs similarly (at least on >>> some linuxes) and on some faster (e.g. mac). >>>=20 >>> What is your CPU load during a block download ? (both=20 >>> initially/up to the point where verification sets in and >>> after). The initial download is typically disk I/O bound, the=20 >>> verification stage CPU bound, though I lean to believe that >>> even there it is disk I/O bound (at least on my system ~50% CPU >>> load). What should be better in libcoin is the concurrency >>> model. The Satoshi client uses a pure reentrant mutexes model, >>> that is not generally believed to motivate the best coding >>> practice nor performance, you might end up without the >>> concurrency you initially strived for *). As mentioned earlier >>> libcoin uses a pure async concurrency model (and so does >>> libbitcoin btw). >>>=20 >>> I would like to stress again that these numbers will depend=20 >>> largely on the system running the test - I would call my laptop >>> a bit over the average today (MB Pro, 2.66Ghz i7 dual core, >>> 8GBRAM, 512GB SSD). But again 12 hours - I only reach such >>> numbers on some of my VPS'es (linode 1024) that are known for >>> notoriously slow disk I/O. (here I have a few % CPU load during >>> the verification indicating indeed that the disk i/o is the=20 >>> culprit). >>>=20 >>> Cheers, >>>=20 >>> Michael >>>=20 >>>=20 >>> *) I like this Dave Butenhof quote: "The biggest of all the big >>> problems with recursive mutexes is that they encourage you to >>> completely lose track of your locking scheme and scope. This >>> is deadly. Evil. It's the "thread eater". You hold locks for >>> the absolutely shortest possible time. Period. Always. If >>> you're calling something with a lock held simply because you >>> don't know it's held, or because you don't know whether the >>> callee needs the mutex, then you're holding it too long. You're >>> aiming a shotgun at your application and pulling the trigger. >>> You presumably started using threads to get concurrency; but >>> you've just PREVENTED concurrency." >>>=20 >>>=20 >>>=20 >>>=20 >>> On 23/07/2012, at 17:54, steve wrote: >>>=20 >>> Hi Michael, >>>=20 >>> On 23/07/2012 10:00, Michael Gr=F8nager wrote: >>>>>> I get a full blockchain from scratch in 45 minutes on my >>>>>> laptop, /M >>>>>>=20 >>> Hang on a sec, in 45 minutes you can download the entire chain=20 >>> from the genesis block? >>>=20 >>> I have been doing extensive testing in this area and would >>> love to know what is special about your setup (I have never had >>> the entire chain in under 12 hours, infact it is normally >>> closerto 24.) I have an extensive setup of test machines, >>> everything from e4300 to phenom2x6 to i5's. >>>=20 >>> as an example on an amd e-450 with 4gb ram, and approx 3gb/s=20 >>> internet connection it took 2 hours to sync the last 5 days. >>>=20 >>> Maybe i am missing something important... >>>=20 >>> Any additional information that you could provide to help me >>> with testing would be really appreciated. >>>=20 >>> cheers, >>>=20 >>> steve >>>=20 >>>>=20 >>>> --------------------------------------------------------------------= ---------- >>>> >>>> >> >>>> >>>>=20 Live Security Virtual Conference >>>> Exclusive live event will cover all the ways today's >>>> security and threat landscape has changed and how IT managers >>>> can respond. Discussions will include endpoint security, >>>> mobile security and the latest in malware threats.=20 >>>> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/=20 >>>> _______________________________________________=20 >>>> Bitcoin-development mailing list=20 >>>> Bitcoin-development@lists.sourceforge.net=20 >>>> https://lists.sourceforge.net/lists/listinfo/bitcoin-development >>> >>> >>> >>> >>> >> >> >> >>>> >>>>=20 -------------------------------------------------------------------------= ----- >> Live Security Virtual Conference Exclusive live event will cover=20 >> all the ways today's security and threat landscape has changed >> and how IT managers can respond. Discussions will include >> endpoint security, mobile security and the latest in malware >> threats.=20 >> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/=20 >> _______________________________________________ >> Bitcoin-development mailing list >> Bitcoin-development@lists.sourceforge.net=20 >> https://lists.sourceforge.net/lists/listinfo/bitcoin-development >=20