<oembed><type>rich</type><version>1.0</version><author_name>npub15fmnxm546tg2sv0l7elusrvqsgezdzdg3m0flpml5fr2qf3f5slskxlq6h</author_name><author_url>https://nostr.ae/npub15fmnxm546tg2sv0l7elusrvqsgezdzdg3m0flpml5fr2qf3f5slskxlq6h</author_url><provider_name>njump</provider_name><provider_url>https://nostr.ae</provider_url><html>📅 Original date posted:2012-07-24&#xA;📝 Original message:Hi Steve,&#xA;&#xA;45-90 minutes - note that its numbers from March/April, so a bit longer today, but far, far away from the 12 hours. &#xA;&#xA;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&#39;es it performs similarly (at least on some linuxes) and on some faster (e.g. mac). &#xA;&#xA;What is your CPU load during a block download ? (both initially/up to the point where verification sets in and after). The initial download is typically disk I/O bound, the 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). &#xA;&#xA;I would like to stress again that these numbers will depend 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&#39;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 culprit).&#xA;&#xA;Cheers,&#xA;&#xA;Michael&#xA;&#xA;&#xA;*) I like this Dave Butenhof quote: &#34;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&#39;s the &#34;thread eater&#34;. You hold locks for the absolutely shortest possible time. Period. Always. If you&#39;re calling something with a lock held simply because you don&#39;t know it&#39;s held, or because you don&#39;t know whether the callee needs the mutex, then you&#39;re holding it too long. You&#39;re aiming a shotgun at your application and pulling the trigger. You presumably started using threads to get concurrency; but you&#39;ve just PREVENTED concurrency.&#34;&#xA;&#xA;&#xA;&#xA;&#xA;On 23/07/2012, at 17:54, steve wrote:&#xA;&#xA;&gt; -----BEGIN PGP SIGNED MESSAGE-----&#xA;&gt; Hash: SHA1&#xA;&gt; &#xA;&gt; Hi Michael,&#xA;&gt; &#xA;&gt; On 23/07/2012 10:00, Michael Grønager wrote:&#xA;&gt;&gt; I get a full blockchain from scratch in 45 minutes on my laptop,&#xA;&gt;&gt; /M&#xA;&gt;&gt; &#xA;&gt; Hang on a sec, in 45 minutes you can download the entire chain from&#xA;&gt; the genesis block?&#xA;&gt; &#xA;&gt; I have been doing extensive testing in this area and would love to&#xA;&gt; know what is special about your setup (I have never had the entire&#xA;&gt; chain in under 12 hours, infact it is normally closerto 24.) I have an&#xA;&gt; extensive setup of test machines, everything from e4300 to phenom2x6&#xA;&gt; to i5&#39;s.&#xA;&gt; &#xA;&gt; as an example on an amd e-450 with 4gb ram, and approx 3gb/s internet&#xA;&gt; connection it took 2 hours to sync the last 5 days.&#xA;&gt; &#xA;&gt; Maybe i am missing something important...&#xA;&gt; &#xA;&gt; Any additional information that you could provide to help me with&#xA;&gt; testing would be really appreciated.&#xA;&gt; &#xA;&gt; cheers,&#xA;&gt; &#xA;&gt; steve&#xA;&gt; &#xA;&gt; -----BEGIN PGP SIGNATURE-----&#xA;&gt; Version: GnuPG v2.0.17 (MingW32)&#xA;&gt; Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/&#xA;&gt; &#xA;&gt; iQEcBAEBAgAGBQJQDXO4AAoJEFvEB9dQFvtQxdcH/ieqQkyDCg8mKeOa6CqsWaS6&#xA;&gt; fhoeny3Ke2b/CsvhYmsThCvntN9volIqR2CTn5tkHiVwG9OmlxyHZcNpN0ZTHhK5&#xA;&gt; lsfLap/Y0QpiysXpV4Bu7Z4Hwp9jnhOP74TshT305r2pX6EGXPQ0CrlHqlIry/X/&#xA;&gt; vNcunUclliou+KjL7EHcY50GH5wDpqJAjlNyF97Lj9YiPrAC9vahGwWdxkbCYtG+&#xA;&gt; KUuWGBKMMdHuMAgcQh7nI9q0WT3k/gzRQtuC2kf+v0wvQhaGlTVkku4uanhpuw4p&#xA;&gt; 99blRF3/SfWimGuQgsm6wT3Y7dk+z8MFHLb6XGPxmgV9+gF+TWNczfU3GRzfcXw=&#xA;&gt; =CQkI&#xA;&gt; -----END PGP SIGNATURE-----&#xA;&gt; &#xA;&gt; ------------------------------------------------------------------------------&#xA;&gt; Live Security Virtual Conference&#xA;&gt; Exclusive live event will cover all the ways today&#39;s security and &#xA;&gt; threat landscape has changed and how IT managers can respond. Discussions &#xA;&gt; will include endpoint security, mobile security and the latest in malware &#xA;&gt; threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/&#xA;&gt; _______________________________________________&#xA;&gt; Bitcoin-development mailing list&#xA;&gt; Bitcoin-development at lists.sourceforge.net&#xA;&gt; https://lists.sourceforge.net/lists/listinfo/bitcoin-development</html></oembed>