{"id":2508,"date":"2019-01-24T16:51:28","date_gmt":"2019-01-24T16:51:28","guid":{"rendered":"https:\/\/bitcoinsv.io\/?p=2508"},"modified":"2020-09-28T05:49:26","modified_gmt":"2020-09-28T05:49:26","slug":"warming-up-the-scaling-test-network-for-bitcoin-sv-24-hours-of-sustained-64-mb-blocks","status":"publish","type":"post","link":"https:\/\/bitcoinsv.io\/2019\/01\/24\/warming-up-the-scaling-test-network-for-bitcoin-sv-24-hours-of-sustained-64-mb-blocks\/","title":{"rendered":"Warming Up the Scaling Test Network for Bitcoin SV – 24 hours of Sustained 64 MB Blocks"},"content":{"rendered":"\n

The Bitcoin SV network is committed to massive on-chain scaling, and nChain\u2019s team is progressing with technical work needed to achieve this Satoshi Vision.  In fact, our recent tests have demonstrated the Bitcoin SV network\u2019s capacity to handle sustained 64 MB blocks over a full 24 hour period, and we are already moving towards showing sustained 128 MB blocks.  Here\u2019s a quick update on what we are doing, and what is coming for the future.<\/span><\/p>\n\n\n\n

Sustained Big Blocks on BSV Scaling Test Network<\/b><\/p>\n\n\n\n

In September 2018 nChain built its own version of the former Gigablock Test Network to research Bitcoin scalability. The new Scaling Test Network (STN) is designed to be a permanent public test network with regular and consistent large volumes of transactions. The next release of the Bitcoin SV Node implementation will support the STN in the same way as the testnet and regtest networks.<\/span><\/p>\n\n\n\n

nChain and the Satoshi Shotgun (Professional Stress Test) team began collaborating on the STN in December 2018, starting with a  \u201cwarm up\u201d. We updated the network, implemented a performance monitoring and analytics system, and extended the Satoshi Shotgun to support the STN. Once this was done, we began steadily ramping up the volume of transactions.<\/span><\/p>\n\n\n\n

We have seen large blocks (64, 65 and even 103 MB) mined on the BSV live network. While those are impressive, we know that true success is showing that BSV can <\/span>sustain<\/i><\/b> large blocks of that and much bigger size for long periods. The STN is designed to support research into the throughput capacity of the Bitcoin network. Our focus over the last month has been on transaction propagation. That means we have specialized systems, such as the Satoshi Shotgun, produce transactions and deliver them to a non-mining node. The transactions then propagate across the STN, are received by mining nodes, and are mined into blocks. The aim is to have a reasonably realistic model of the public Bitcoin SV network. We will be adjusting this model as needs and focus change.<\/span><\/p>\n\n\n\n

What have we seen? <\/span>Well, sustained 64MB blocks – over a full 24 hour period – with the latest development build of Bitcoin SV are easy. That\u2019s 270 transactions per second, sustained, continuously for a full 24 hour period. Our tests did this over a 24 hour period with no problem.<\/i><\/b><\/p>\n\n\n\n

\"\"<\/figure><\/div>\n\n\n\n

Sustained 128MB blocks? Yup.<\/p>\n\n\n\n

\"\"<\/figure><\/div>\n\n\n\n

A bit more difficult than 64MB but we\u2019re getting there for sustained 128MB blocks.<\/p>\n\n\n\n

Improving Transaction Propagation<\/b><\/p>\n\n\n\n

Block size achievements are important, but it\u2019s critical to measure specific behaviour in the node. During our research, we confirmed that transaction propagation is one of the key factors that is limiting the capability to produce big blocks. This is unsurprising and was expected but it\u2019s important to confirm theories and suspicions with measurements and data.  We added a specific metric called txninvsize, this is the number of transactions that are queued to be included in inventory messages to a peer. It\u2019s the mechanism that the node uses to inform other nodes about transactions so that they can be propagated.<\/p>\n\n\n\n

\"\"<\/figure><\/div>\n\n\n\n

This graph is from a mining node. You can see that occasionally 1000 transactions are queued for notification to other nodes but these are exceptions, the queue gets quickly cleared. This is a specific function that we have improved in the next version of the Bitcoin SV Node implementation. Prior to this change, we were seeing queues of between 600,000 and 800,000 transactions build up during stress tests. If a node can\u2019t inform other nodes about the transactions it has, those transactions just don\u2019t get propagated.<\/p>\n\n\n\n

That change also addressed CPU use by the P2P networking, spreading the load out across multiple cores. The graph below shows the load on that mining node during the same period.<\/p>\n\n\n\n

\"\"<\/figure><\/div>\n\n\n\n

What\u2019s interesting here are the peaks, reaching regularly above 1.2 and touching 1.4. Load is measured in terms of cores, so 1 is equivalent to one core being fully occupied. In this graph, we can see the P2P networking code starting to spread out over other cores. Prior to this update, we never saw the load above 1. There\u2019s still a long way to go with making Bitcoin truly multi-processing but this is a great start.<\/p>\n\n\n\n

No measurement system would be complete without measuring the performance of individual cores. This dashboard is not very useful at this resolution, it\u2019s just here to give an idea of the kind of metrics we are gathering.<\/p>\n\n\n\n

\"\"<\/figure><\/div>\n\n\n\n

It\u2019s also useful to look at the problems. Here is a graph of the mempool size of an under-provisioned node. You see the sharp drops in the graph, this is where the system runs out of memory and terminates the bitcoin process. Bitcoin starts up again, loads up the mempool, and then fails again.<\/p>\n\n\n\n

\"\"<\/figure><\/div>\n\n\n\n

One area of concern is collecting the metrics. In the graph below you can see several gaps in the data, this is caused by timeout\u2019s when collecting the data. We will hopefully be addressing this in a future version of the Bitcoin SV Node implementation.<\/p>\n\n\n\n

\"\"<\/figure><\/div>\n\n\n\n

The STN provides an invaluable resource for evaluating the performance of the Bitcoin SV software with large transaction volumes. We have used it extensively to confirm theories and evaluate our improvements to the Bitcoin SV Node implementation and we will continue to extend it. What we have learned has not only helped the Bitcoin SV Node team to get to this point but has helped outline a clear roadmap for more short term scaling gains.<\/p>\n\n\n\n

Next Steps on the Scaling Journey<\/b><\/p>\n\n\n\n

With these test results in hand, what\u2019s next?<\/p>\n\n\n\n

We are now starting to contact BSV miners and development teams and inviting them to participate in testing on the BSV STN, to make use of this opportunity to evaluate their systems performance and capacity to deal with a high transaction throughput network.  For the ecosystem at large, it is important that ALL infrastructure services, not just mining nodes, are properly load tested to ensure uninterrupted service during peak load periods.<\/p>\n\n\n\n

Our goal is to eventually have every ecosystem participant running a test instance of their product on STN \u2013  including wallets providers, exchanges, block explorers, BitDBs and more. With the next release of Bitcoin SV, planned for 11 February 2019, this network will be public and available to everyone.<\/p>\n\n\n\n

After that, we plan to conduct a public stress test on the BSV mainnet. We will work with the Satoshi Shotgun team to do another Professional Stress Test of BSV, and see how sustained periods of large blocks perform on BSV in real life.   This is just another step in our scaling journey for BSV. One day, we want to look back and see how small 64 and 128MB blocks truly are in the Satoshi Vision for Bitcoin.<\/p>\n\n\n\n

Daniel Connolly<\/strong><\/p>\n\n\n\n

Bitcoin SV Lead Developer<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"

The Bitcoin SV network is committed to massive on-chain scaling, and nChain\u2019s team is progressing with technical work needed to achieve this Satoshi Vision.  In fact, our recent tests have demonstrated the Bitcoin SV network\u2019s capacity to handle sustained 64 MB blocks over a full 24 hour period, and we are already moving towards showing […]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[73],"tags":[],"lang":"en","translations":{"en":2508,"zh":2531},"yoast_head":"\nWarming Up the Scaling Test Network for Bitcoin SV - 24 hours of Sustained 64 MB Blocks - Bitcoin SV<\/title>\n<meta name=\"description\" content=\"The Bitcoin SV network is committed to massive on-chain scaling, and this post describes our recent tests with sustained 64 MB and 128MB blocks.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/stag.bitcoinsv.io\/2019\/01\/23\/warming-up-the-scaling-test-network-for-bitcoin-sv-24-hours-of-sustained-64-mb-blocks\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Warming Up the Scaling Test Network for Bitcoin SV - 24 hours of Sustained 64 MB Blocks - Bitcoin SV\" \/>\n<meta property=\"og:description\" content=\"The Bitcoin SV network is committed to massive on-chain scaling, and this post describes our recent tests with sustained 64 MB and 128MB blocks.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/stag.bitcoinsv.io\/2019\/01\/23\/warming-up-the-scaling-test-network-for-bitcoin-sv-24-hours-of-sustained-64-mb-blocks\/\" \/>\n<meta property=\"og:site_name\" content=\"Bitcoin SV\" \/>\n<meta property=\"article:published_time\" content=\"2019-01-24T16:51:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-09-28T05:49:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/stag.bitcoinsv.io\/wp-content\/uploads\/2020\/09\/img64mb.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@BitcoinSVNode\" \/>\n<meta name=\"twitter:site\" content=\"@BitcoinSVNode\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/bitcoinsv.io\/#organization\",\"name\":\"Bitcoin SV\",\"url\":\"https:\/\/bitcoinsv.io\/\",\"sameAs\":[\"https:\/\/twitter.com\/BitcoinSVNode\"],\"logo\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/bitcoinsv.io\/#logo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/bitcoinsv.io\/wp-content\/uploads\/2020\/10\/bsv-logo-wh-medium.png\",\"width\":800,\"height\":144,\"caption\":\"Bitcoin SV\"},\"image\":{\"@id\":\"https:\/\/bitcoinsv.io\/#logo\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/bitcoinsv.io\/#website\",\"url\":\"https:\/\/bitcoinsv.io\/\",\"name\":\"Bitcoin SV\",\"description\":\"Just another WordPress site\",\"publisher\":{\"@id\":\"https:\/\/bitcoinsv.io\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/bitcoinsv.io\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/stag.bitcoinsv.io\/2019\/01\/23\/warming-up-the-scaling-test-network-for-bitcoin-sv-24-hours-of-sustained-64-mb-blocks\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/stag.bitcoinsv.io\/wp-content\/uploads\/2020\/09\/img64mb.png\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/stag.bitcoinsv.io\/2019\/01\/23\/warming-up-the-scaling-test-network-for-bitcoin-sv-24-hours-of-sustained-64-mb-blocks\/#webpage\",\"url\":\"https:\/\/stag.bitcoinsv.io\/2019\/01\/23\/warming-up-the-scaling-test-network-for-bitcoin-sv-24-hours-of-sustained-64-mb-blocks\/\",\"name\":\"Warming Up the Scaling Test Network for Bitcoin SV - 24 hours of Sustained 64 MB Blocks - Bitcoin SV\",\"isPartOf\":{\"@id\":\"https:\/\/bitcoinsv.io\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/stag.bitcoinsv.io\/2019\/01\/23\/warming-up-the-scaling-test-network-for-bitcoin-sv-24-hours-of-sustained-64-mb-blocks\/#primaryimage\"},\"datePublished\":\"2019-01-24T16:51:28+00:00\",\"dateModified\":\"2020-09-28T05:49:26+00:00\",\"description\":\"The Bitcoin SV network is committed to massive on-chain scaling, and this post describes our recent tests with sustained 64 MB and 128MB blocks.\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/stag.bitcoinsv.io\/2019\/01\/23\/warming-up-the-scaling-test-network-for-bitcoin-sv-24-hours-of-sustained-64-mb-blocks\/\"]}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/stag.bitcoinsv.io\/2019\/01\/23\/warming-up-the-scaling-test-network-for-bitcoin-sv-24-hours-of-sustained-64-mb-blocks\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/stag.bitcoinsv.io\/2019\/01\/23\/warming-up-the-scaling-test-network-for-bitcoin-sv-24-hours-of-sustained-64-mb-blocks\/#webpage\"},\"author\":{\"@id\":\"https:\/\/bitcoinsv.io\/#\/schema\/person\/18c78b4beaaf0a9417e3e3a348be2dbe\"},\"headline\":\"Warming Up the Scaling Test Network for Bitcoin SV – 24 hours of Sustained 64 MB Blocks\",\"datePublished\":\"2019-01-24T16:51:28+00:00\",\"dateModified\":\"2020-09-28T05:49:26+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/stag.bitcoinsv.io\/2019\/01\/23\/warming-up-the-scaling-test-network-for-bitcoin-sv-24-hours-of-sustained-64-mb-blocks\/#webpage\"},\"publisher\":{\"@id\":\"https:\/\/bitcoinsv.io\/#organization\"},\"image\":{\"@id\":\"https:\/\/stag.bitcoinsv.io\/2019\/01\/23\/warming-up-the-scaling-test-network-for-bitcoin-sv-24-hours-of-sustained-64-mb-blocks\/#primaryimage\"},\"articleSection\":\"Articles\",\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/bitcoinsv.io\/#\/schema\/person\/18c78b4beaaf0a9417e3e3a348be2dbe\",\"name\":\"Daniel Connolly\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/bitcoinsv.io\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ae4889c7be8c773a898547b49a32c9f3?s=96&d=mm&r=g\",\"caption\":\"Daniel Connolly\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","pll_sync_post":[],"_links":{"self":[{"href":"https:\/\/bitcoinsv.io\/wp-json\/wp\/v2\/posts\/2508"}],"collection":[{"href":"https:\/\/bitcoinsv.io\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bitcoinsv.io\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bitcoinsv.io\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bitcoinsv.io\/wp-json\/wp\/v2\/comments?post=2508"}],"version-history":[{"count":2,"href":"https:\/\/bitcoinsv.io\/wp-json\/wp\/v2\/posts\/2508\/revisions"}],"predecessor-version":[{"id":4213,"href":"https:\/\/bitcoinsv.io\/wp-json\/wp\/v2\/posts\/2508\/revisions\/4213"}],"wp:attachment":[{"href":"https:\/\/bitcoinsv.io\/wp-json\/wp\/v2\/media?parent=2508"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bitcoinsv.io\/wp-json\/wp\/v2\/categories?post=2508"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitcoinsv.io\/wp-json\/wp\/v2\/tags?post=2508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}