Running NCBI BLAST on Azure – Performance, Scalability and Best Practice

Published 06-02-2021 03:40 PM 898 Views

Covid-19 pandemic, along with recent years’ breakthrough in molecular biology, have led to the exemptional use of the sequence databases. Researchers use BLAST (basic local alignment search tool), by NCBI (National Center for Biotechnology Information), to compare nucleotide or protein sequences to sequence databases and calculates the statistical significance of matches.

1.png

Elapsed time of a query is critical in this task. The less elapsed time of a query, the more iterations users can run during a limited time of period. That is, users would be able to achieve time-to-market goal and to save overall IT infrastructure cost.

 

Objective

 

In this article, we will show you how to run BLAST on Azure. And analyze the execution pattern of BLAST query runs, and further to find out the performance bottleneck. We will then come up performance tuning suggestions and verify their improvement. Besides that, we will examine some related topics, including multi-threading scalability, degradation of performance with multiple queries, and cost-effective analysis.

 

We will examine 2 kinds of different BLAST scenarios in order. Both using the most current version of BLAST (2.11.0) and “blastn” query to compare nucleotide-nucleotide sequence.

 

  • First, is to run standalone BLAST with a large BLAST DB (~1.2TB) and very simple input file and query.
  • Second, is to run Docker BLAST with a small size of BLAST DB (~122GB) and much complicated input files and query strings.

 

Running standalone BLAST with large BLAST DB and a simple query

 

  • Database: Pre-formatted BLAST nucleotide collection database (~1.2TB).
  • Input file: Single sequence containing 491 Covid-19 nucleotides.
  • Query string: “blastn -query test.fa -db BLASTDB_1234 -out test”$RANDOM”.tabular -num_threads 30”

Please note that we are using “-num_threads 30” to utilize 30 CPUs/cores.

 

BLAST is installed standalone on one Virtual Machine. Same query will be run multiple times to compare the query elapsed time. BLAST DB and input/output files are stored in different storage locations, including Local/NVMe disks, Azure NetApp Files, and Managed (Premium) Disks. All the storage solutions provide similar IOPS and throughput capabilities.

2 architecture-1.png

 

NOTE: you can follow the step-by-step process on azurehpc/apps/blast at master · Azure/azurehpc (github.com) to create Azure environment, install BLAST, and run the test on your own.

 

Observations

 

Below the screenshots of Azure Insights running BLAST on E64dsv4 VM, with both BLAST DB and input/output files stored in Local Temp SSD Disks. You can see there are 2 patterns of phases during the execution.

 

1st phase: It takes ~50% of the total execution time (left-hand part of the below screenshot). Very high (up to ~12K) READ IOPS with ~1.3GB/s throughput in disk I/O., and CPU utilization is only 5%~30%.

3 screeshot-1.png

Seems for this phase it’s IO-bound. To further verify, we run “iostate” to check real-time Disk IO:

$ iostate -kx 2

4 screenshot-2.png

The IO utilization (Local Temp Disk in “/sdc” in this case) is 100% most of the time with massive READ operations. Long disk queue length causes CPU not fully utilized. So, it’s clear it’s IO-bound in this phase.

 

We now need to dig out whether the IO-bound situation is due to the IOPS/throughput limitation or latency issue. We will verify it by storing BLAST DB and input/output files in different locations, which we will examine later.

 

Another question is, how to avoid or mitigate the IO bottleneck? Could it because the size of BLAST DB is too large to be loaded into VM’s memory? We will also verify it by running on a VM with larger than 1.2 TB memory later.

 

2nd phase: It takes another ~50% of the total run time (right-hand part of the below screenshot). Only 1 CPU is used with ~100% utilization in this phase. Very little networking, memory, and read/write operations. Which indicates this phase is CPU-bound and implies VM SKUs would be the performance differentiator.

5.png

 

Analyze Performance Bottleneck

 

As we discussed, the 1st phase of the run is IO-bound. We then performed tests on storing BLAST DB and input/output files in different storage locations, including Azure NetApp Files and Premium Disks. All provide similar IOPS and throughput.

 

Recall that we also sensed that the IO-bound situation might be due to VM’s memory not big enough to load the 1.2TB BLAST DB at once. Therefor we run the same query on M128dsv2 VM, which has 4TB memory, as comparison.

 

Below are the full testing results. The greener, the better of the query performance.

6.png

First, we do find M128dsv2 VM (w/ 4TB memory) perform much better than others. When running on this VM, we see very little disks IO in the 1st phase of run, and CPU utilization is nearly 100% all the time. Which validate the assumption that the IO-bound is due to VM memory size’s not large enough to load all BLAST DB. In fact, you will see the same pattern on a small BLAST size scenario later.

 

Second, for VMs like E64dsv4, HB120rsv3 or FX-48 (currently in private preview), having both BLAST DB and input/output files in Local Temp or NVMe Disk can provide the best performance, which indicates that the IO is very latency sensitive.

 

Performance Tuning

 

We also noticed that applying proper VM tuning profile can further optimize the performance. The “enterprise-storage” or “throughput-performance” provide slightly better than others. Below the commands you can practice on your own.

 

# check active tuned-adm profile

$ sudo tuned-adm active

 

# apply tuning profile

$ sudo tuned-adm profile throughput-performance

$ sudo tuned-adm profile enterprise-storage

 

Finally, VM SKUs matters the most when considering performance:

 

HB120v3 = M128dsv2 > FX48 > E64dsv4 > HC44rs > L64dsv2

 

Cost Effective Analysis

 

Now considering the cost. As HB120v3 is much cheaper than others, it’s also the most cost effective.

7.png

 

Degradation of performance with multiple queries, and CentOS vs. Ubuntu

 

To find out if there’s any outstanding performance degradation when running multiple queries. We first run 10-threads-job and record the elapsed time as baseline. And then we run multiple (6 or 12, based on # of CPU of the VM) queries at the same time and also record the end-to-end elapsed time as shown in below table. The total elapsed time increase ~130%, as shown in red rectangle.

 

We also see that CentOS runs faster than Ubuntu.

8.png

 

Now let’s move on to examine next BLAST dataset.

 

Running Docker BLAST with a small size of BLAST DB and much complicated query strings

 

NCBI perform a BLAST analysis similar to the approach described in this publication to compare de novo aligned contigs from bacterial 16S-23S sequencing against the nucleotide collection (nt) database, using the latest version of the BLAST+ Docker image.

 

  • Database: Pre-formatted BLAST nucleotide collection database (nt): ~122 GB
  • Input file: 28 samples (multi-FASTA files) containing de novo aligned contigs from the publication.
  • Query string: “blastn -query /blast/queries/query1.fa -db nt -num_threads 16 –out /blast/results/blastn.query1.out”

Please note that we are using “-num_threads 16” to utilize 16 CPUs/cores.

We tested 3 different queries, from the simplest (Analysis 1) to the complicated (Analysis 3):

9.png10.png

 

NOTE: you can follow process on ncbi/blast_plus_docs (github.com) to run the same test on your own.

 

Observations

 

Below the Azure Insights screenshots when running the BLAST queries on HB120v3 VM, which has 120 cores of CPU. Again, there are 2 patterns of phases during the execution like what we found in previous test.

 

  • 16 CPUs and 1 CPU are utilized in 1st phase 2nd phase, respectively. And all those CPUs are running ~100% utilization all the time during the execution, which indicate it’s a fully CPU-bound task, and no significant performance blocker on IO nor network.
  • On 2nd phase, additional ~100 GB memory are used, which indicates BLAST loads the database into memory.
  • Very little usage on Disk I/O and networking during the whole execution of the run.

16 CPUs ~100% usage in 1st phase ("htop" screenshot):

11.png

Very little I/O & networking usage during the whole run (Azure Insights screnthos):

12.png

 

Performance Tuning

 

Based on the observations, we found that when VM’s memory size is larger than BLAST DB (~122GB). The program loads the database into memory and doing query algorithm for all subsequent sequences. Along with the fact that CPU are fully utilized, selection of VM SKUs would play bigger role as performance differentiator.

 

We also tested several performance tuning practices including:

  1. “sudo systemctl enable --now tuned && sudo tuned-adm”
  2. ANF mount option to include: “nconnect=16,nocto,actimeo=600”
  3. Process pinning (HC44rs: “numactl --cpuset-cpus 0-15”)

Below the testing results on different VM SKUs. The greener, the better of the query performance.

13.png

As you see that:

  1. VM SKUs play the biggest performance differentiator in this case as we expected, and the order is the same as in previous scenario:

         HB120v3 > FX48 > E64dsv4 > HC44rs

  1. There is minor or no impact on performance for any kind of tuning, including “tuned-adm”, mount options, or Process pinning.

 

Scalability

 

One of the promises of public cloud is scalability. So, we examine how is the level of complexity of query strings impact scalability. Below the results of elapsed time (mins) when we run 3 different kinds of query strings (Analysis 1, Analysis 2, & Analysis 3) on the same VM, with different “num_threads(=1, 2, 4, 8, & 16)” specified.

14.png

Findings:

  1. The more complicated of the query, the better performance gain when # of threads increase. (The concrete-line rectangle)
  2. With simple query, only needs small # of threads to maximize performance. (The dot-line rectangle)

 

Summary

 

Now we have walked you through the process to analyze the pattern of 2 kinds of BLAST query scenarios, and how to determine performance bottleneck. We also suggest several performance tuning practices and verify their effectiveness.

 

We also covered many other related topics like multi-threading scalability, degradation of performance with multiple queries, and cost-effective analysis.

 

Below the key suggestions when running BLAST queries on Azure.

  • In overall, VM SKUs play a critical role on performance. Considering both performance and cost effectiveness.

          HB120v3 >> FX48(cost TBD) > E64dsv4 > L64ds2 > HC44rs

  • BLAST DB size matters.
  • 15.png
    • When BLAST DB size is larger than VM memory (left-hand side), massive READ IOPS is expected. You can consider storing both BLAST DB and input/output files on Local Temp or NVMe disk for best query performance. Of course, you will need to also consider files transfer efforts and working flow in production for best productivity.
    • When BLAST DB size is smaller than VM memory (right-hand side). The whole DB will be loaded into memory. It becomes CPU-bound and VM SKUs matters the most. Many tuning options like “tuned-adm”, mount options, or Process pinning all provide very little improvement.
  • The more complicated of the BLAST query, the better performance gain when # of threads increase.
  • CentOS performs better than Ubuntu.
%3CLINGO-SUB%20id%3D%22lingo-sub-2410483%22%20slang%3D%22en-US%22%3ERunning%20NCBI%20BLAST%20on%20Azure%20%E2%80%93%20Performance%2C%20Scalability%20and%20Best%20Practice%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2410483%22%20slang%3D%22en-US%22%3E%3CP%3E%3CFONT%20size%3D%224%22%3ECovid-19%20pandemic%2C%20along%20with%20recent%20years%E2%80%99%20breakthrough%20in%20molecular%20biology%2C%20have%20led%20to%20the%20exemptional%20use%20of%20the%20sequence%20databases.%20Researchers%20use%20BLAST%20(basic%20local%20alignment%20search%20tool)%2C%20by%20NCBI%20(National%20Center%20for%20Biotechnology%20Information)%2C%20to%20compare%20nucleotide%20or%20protein%20sequences%20to%20sequence%20databases%20and%20calculates%20the%20statistical%20significance%20of%20matches.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%221.png%22%20style%3D%22width%3A%20665px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F286178iD11D105B9104538B%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%221.png%22%20alt%3D%221.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3EElapsed%20time%20of%20a%20query%20is%20critical%20in%20this%20task.%20The%20less%20elapsed%20time%20of%20a%20query%2C%20the%20more%20iterations%20users%20can%20run%20during%20a%20limited%20time%20of%20period.%20That%20is%2C%20users%20would%20be%20able%20to%20achieve%20time-to-market%20goal%20and%20to%20save%20overall%20IT%20infrastructure%20cost.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%3CSTRONG%3EObjective%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3EIn%20this%20article%2C%20we%20will%20show%20you%20how%20to%20run%20BLAST%20on%20Azure.%20And%20analyze%20the%20execution%20pattern%20of%20BLAST%20query%20runs%2C%20and%20further%20to%20find%20out%20the%20performance%20bottleneck.%20We%20will%20then%20come%20up%20performance%20tuning%20suggestions%20and%20verify%20their%20improvement.%20Besides%20that%2C%20we%20will%20examine%20some%20related%20topics%2C%20including%20multi-threading%20scalability%2C%20degradation%20of%20performance%20with%20multiple%20queries%2C%20and%20cost-effective%20analysis.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3EWe%20will%20examine%202%20kinds%20of%20different%20BLAST%20scenarios%20in%20order.%20Both%20using%20the%20most%20current%20version%20of%20BLAST%20(2.11.0)%20and%20%E2%80%9Cblastn%E2%80%9D%20query%20to%20compare%20nucleotide-nucleotide%20sequence.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CFONT%20size%3D%224%22%3EFirst%2C%20is%20to%20run%20standalone%20BLAST%20with%20a%20large%20BLAST%20DB%20(~1.2TB)%20and%20very%20simple%20input%20file%20and%20query.%3C%2FFONT%3E%3C%2FLI%3E%0A%3CLI%3E%3CFONT%20size%3D%224%22%3ESecond%2C%20is%20to%20run%20Docker%20BLAST%20with%20a%20small%20size%20of%20BLAST%20DB%20(~122GB)%20and%20much%20complicated%20input%20files%20and%20query%20strings.%3C%2FFONT%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%3CSTRONG%3ERunning%20standalone%20BLAST%20with%20large%20BLAST%20DB%20and%20a%20simple%20query%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CFONT%20size%3D%224%22%3EDatabase%3A%20Pre-formatted%20BLAST%20nucleotide%20collection%20database%20(~1.2TB).%3C%2FFONT%3E%3C%2FLI%3E%0A%3CLI%3E%3CFONT%20size%3D%224%22%3EInput%20file%3A%20Single%20sequence%20containing%20491%20Covid-19%20nucleotides.%3C%2FFONT%3E%3C%2FLI%3E%0A%3CLI%3E%3CFONT%20size%3D%224%22%3EQuery%20string%3A%20%E2%80%9Cblastn%20-query%20test.fa%20-db%20BLASTDB_1234%20-out%20test%E2%80%9D%24RANDOM%E2%80%9D.tabular%20-num_threads%2030%E2%80%9D%3C%2FFONT%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3EPlease%20note%20that%20we%20are%20using%20%E2%80%9C-num_threads%2030%E2%80%9D%20to%20utilize%2030%20CPUs%2Fcores.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3EBLAST%20is%20installed%20standalone%20on%20one%20Virtual%20Machine.%20Same%20query%20will%20be%20run%20multiple%20times%20to%20compare%20the%20query%20elapsed%20time.%20BLAST%20DB%20and%20input%2Foutput%20files%20are%20stored%20in%20different%20storage%20locations%2C%20including%20Local%2FNVMe%20disks%2C%20Azure%20NetApp%20Files%2C%20and%20Managed%20(Premium)%20Disks.%20All%20the%20storage%20solutions%20provide%20similar%20IOPS%20and%20throughput%20capabilities.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%222%20architecture-1.png%22%20style%3D%22width%3A%20673px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F286179i8EB426F24DB45FAE%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%222%20architecture-1.png%22%20alt%3D%222%20architecture-1.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3ENOTE%3A%20you%20can%20follow%20the%20step-by-step%20process%20on%20%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2Fazurehpc%2Ftree%2Fmaster%2Fapps%2Fblast%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Eazurehpc%2Fapps%2Fblast%20at%20master%20%C2%B7%20Azure%2Fazurehpc%20(github.com)%3C%2FA%3E%20to%20create%20Azure%20environment%2C%20install%20BLAST%2C%20and%20run%20the%20test%20on%20your%20own.%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%3CSTRONG%3EObservations%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3EBelow%20the%20screenshots%20of%20Azure%20Insights%20running%20BLAST%20on%20E64dsv4%20VM%2C%20with%20both%20BLAST%20DB%20and%20input%2Foutput%20files%20stored%20in%20Local%20Temp%20SSD%20Disks.%20You%20can%20see%20there%20are%202%20patterns%20of%20phases%20during%20the%20execution.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%3CSTRONG%3E1%3CSUP%3Est%3C%2FSUP%3E%20phase%3C%2FSTRONG%3E%3A%20It%20takes%20~50%25%20of%20the%20total%20execution%20time%20(left-hand%20part%20of%20the%20below%20screenshot).%20Very%20high%20(up%20to%20~12K)%20READ%20IOPS%20with%20~1.3GB%2Fs%20throughput%20in%20disk%20I%2FO.%2C%20and%20CPU%20utilization%20is%20only%205%25~30%25.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%223%20screeshot-1.png%22%20style%3D%22width%3A%20602px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F286182i789C1709C92F35D3%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%223%20screeshot-1.png%22%20alt%3D%223%20screeshot-1.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3ESeems%20for%20this%20phase%20it%E2%80%99s%20IO-bound.%20To%20further%20verify%2C%20we%20run%20%E2%80%9Ciostate%E2%80%9D%20to%20check%20real-time%20Disk%20IO%3A%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%24%20iostate%20-kx%202%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%224%20screenshot-2.png%22%20style%3D%22width%3A%20602px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F286183i8450791E2710F0CF%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%224%20screenshot-2.png%22%20alt%3D%224%20screenshot-2.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3EThe%20IO%20utilization%20(Local%20Temp%20Disk%20in%20%E2%80%9C%2Fsdc%E2%80%9D%20in%20this%20case)%20is%20100%25%20most%20of%20the%20time%20with%20massive%20READ%20operations.%20Long%20disk%20queue%20length%20causes%20CPU%20not%20fully%20utilized.%20So%2C%20it%E2%80%99s%20clear%20it%E2%80%99s%20IO-bound%20in%20this%20phase.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3EWe%20now%20need%20to%20dig%20out%20whether%20the%20IO-bound%20situation%20is%20due%20to%20the%20IOPS%2Fthroughput%20limitation%20or%20latency%20issue.%20We%20will%20verify%20it%20by%20storing%20BLAST%20DB%20and%20input%2Foutput%20files%20in%20different%20locations%2C%20which%20we%20will%20examine%20later.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3EAnother%20question%20is%2C%20how%20to%20avoid%20or%20mitigate%20the%20IO%20bottleneck%3F%20Could%20it%20because%20the%20size%20of%20BLAST%20DB%20is%20too%20large%20to%20be%20loaded%20into%20VM%E2%80%99s%20memory%3F%20We%20will%20also%20verify%20it%20by%20running%20on%20a%20VM%20with%20larger%20than%201.2%20TB%20memory%20later.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%3CSTRONG%3E2%3CSUP%3End%3C%2FSUP%3E%20phase%3C%2FSTRONG%3E%3A%20It%20takes%20another%20~50%25%20of%20the%20total%20run%20time%20(right-hand%20part%20of%20the%20below%20screenshot).%20Only%201%20CPU%20is%20used%20with%20~100%25%20utilization%20in%20this%20phase.%20Very%20little%20networking%2C%20memory%2C%20and%20read%2Fwrite%20operations.%20Which%20indicates%20this%20phase%20is%20CPU-bound%20and%20implies%20VM%20SKUs%20would%20be%20the%20performance%20differentiator.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%225.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F286184i01E24B40A620ECFE%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%225.png%22%20alt%3D%225.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%3CSTRONG%3EAnalyze%20Performance%20Bottleneck%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3EAs%20we%20discussed%2C%20the%201%3CSUP%3Est%3C%2FSUP%3E%20phase%20of%20the%20run%20is%20IO-bound.%20We%20then%20performed%20tests%20on%20storing%20BLAST%20DB%20and%20input%2Foutput%20files%20in%20different%20storage%20locations%2C%20including%20Azure%20NetApp%20Files%20and%20Premium%20Disks.%20All%20provide%20similar%20IOPS%20and%20throughput.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3ERecall%20that%20we%20also%20sensed%20that%20the%20IO-bound%20situation%20might%20be%20due%20to%20VM%E2%80%99s%20memory%20not%20big%20enough%20to%20load%20the%201.2TB%20BLAST%20DB%20at%20once.%20Therefor%20we%20run%20the%20same%20query%20on%20M128dsv2%20VM%2C%20which%20has%204TB%20memory%2C%20as%20comparison.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3EBelow%20are%20the%20full%20testing%20results.%20The%20greener%2C%20the%20better%20of%20the%20query%20performance.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%226.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F286185iF7AA9FF9D7E1D59C%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%226.png%22%20alt%3D%226.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3EFirst%2C%20we%20do%20find%20M128dsv2%20VM%20(w%2F%204TB%20memory)%20perform%20much%20better%20than%20others.%20When%20running%20on%20this%20VM%2C%20we%20see%20very%20little%20disks%20IO%20in%20the%201%3CSUP%3Est%3C%2FSUP%3E%20phase%20of%20run%2C%20and%20CPU%20utilization%20is%20nearly%20100%25%20all%20the%20time.%20Which%20validate%20the%20assumption%20that%20the%20IO-bound%20is%20due%20to%20VM%20memory%20size%E2%80%99s%20not%20large%20enough%20to%20load%20all%20BLAST%20DB.%20In%20fact%2C%20you%20will%20see%20the%20same%20pattern%20on%20a%20small%20BLAST%20size%20scenario%20later.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3ESecond%2C%20for%20VMs%20like%20E64dsv4%2C%20HB120rsv3%20or%20FX-48%20(currently%20in%20private%20preview)%2C%20having%20both%20BLAST%20DB%20and%20input%2Foutput%20files%20in%20Local%20Temp%20or%20NVMe%20Disk%20can%20provide%20the%20best%20performance%2C%20which%20indicates%20that%20the%20IO%20is%20very%20latency%20sensitive.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%3CSTRONG%3EPerformance%20Tuning%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3EWe%20also%20noticed%20that%20applying%20proper%20VM%20tuning%20profile%20can%20further%20optimize%20the%20performance.%20The%20%E2%80%9Centerprise-storage%E2%80%9D%20or%20%E2%80%9Cthroughput-performance%E2%80%9D%20provide%20slightly%20better%20than%20others.%20Below%20the%20commands%20you%20can%20practice%20on%20your%20own.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%23%20check%20active%20tuned-adm%20profile%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%24%20sudo%20tuned-adm%20active%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%23%20apply%20tuning%20profile%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%24%20sudo%20tuned-adm%20profile%20throughput-performance%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%24%20sudo%20tuned-adm%20profile%20enterprise-storage%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3EFinally%2C%20VM%20SKUs%20matters%20the%20most%20when%20considering%20performance%3A%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3EHB120v3%20%3D%20M128dsv2%20%26gt%3B%20FX48%20%26gt%3B%20E64dsv4%20%26gt%3B%20HC44rs%20%26gt%3B%20L64dsv2%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%3CSTRONG%3ECost%20Effective%20Analysis%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3ENow%20considering%20the%20cost.%20As%20HB120v3%20is%20much%20cheaper%20than%20others%2C%20it%E2%80%99s%20also%20the%20most%20cost%20effective.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%227.png%22%20style%3D%22width%3A%20597px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F286186iD831F75AAC096AFD%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%227.png%22%20alt%3D%227.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%3CSTRONG%3EDegradation%20of%20performance%20with%20multiple%20queries%2C%20and%20CentOS%20vs.%20Ubuntu%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3ETo%20find%20out%20if%20there%E2%80%99s%20any%20outstanding%20performance%20degradation%20when%20running%20multiple%20queries.%20We%20first%20run%2010-threads-job%20and%20record%20the%20elapsed%20time%20as%20baseline.%20And%20then%20we%20run%20multiple%20(6%20or%2012%2C%20based%20on%20%23%20of%20CPU%20of%20the%20VM)%20queries%20at%20the%20same%20time%20and%20also%20record%20the%20end-to-end%20elapsed%20time%20as%20shown%20in%20below%20table.%20The%20total%20elapsed%20time%20increase%20~130%25%2C%20as%20shown%20in%20red%20rectangle.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3EWe%20also%20see%20that%20CentOS%20runs%20faster%20than%20Ubuntu.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%228.png%22%20style%3D%22width%3A%20969px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F286187i54868842AF47A838%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%228.png%22%20alt%3D%228.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3ENow%20let%E2%80%99s%20move%20on%20to%20examine%20next%20BLAST%20dataset.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%3CSTRONG%3ERunning%20Docker%20BLAST%20with%20a%20small%20size%20of%20BLAST%20DB%20and%20much%20complicated%20query%20strings%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3ENCBI%20perform%20a%20BLAST%20analysis%20similar%20to%20the%20approach%20described%20in%20this%20%3CA%20title%3D%22A%20Comparison%20of%20Three%20Different%20Bioinformatics%20Analyses%20of%20the%2016S-23S%20rRNA%20Encoding%20Region%20for%20Bacterial%20Identification%22%20href%3D%22https%3A%2F%2Fpubmed.ncbi.nlm.nih.gov%2F31040829%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Epublication%3C%2FA%3E%20to%20compare%20de%20novo%20aligned%20contigs%20from%20bacterial%2016S-23S%20sequencing%20against%20the%20nucleotide%20collection%20(nt)%20database%2C%20using%20the%20latest%20version%20of%20the%20BLAST%2B%20Docker%20image.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CFONT%20size%3D%224%22%3EDatabase%3A%20Pre-formatted%20BLAST%20nucleotide%20collection%20database%20(nt)%3A%20~122%20GB%3C%2FFONT%3E%3C%2FLI%3E%0A%3CLI%3E%3CFONT%20size%3D%224%22%3EInput%20file%3A%2028%20samples%20(multi-FASTA%20files)%20containing%20de%20novo%20aligned%20contigs%20from%20the%20publication.%3C%2FFONT%3E%3C%2FLI%3E%0A%3CLI%3E%3CFONT%20size%3D%224%22%3EQuery%20string%3A%20%3CSPAN%3E%E2%80%9Cblastn%20-query%20%2Fblast%2Fqueries%2Fquery1.fa%20-db%20nt%20-num_threads%2016%20%E2%80%93out%20%2Fblast%2Fresults%2Fblastn.query1.out%E2%80%9D%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3EPlease%20note%20that%20we%20are%20using%20%E2%80%9C-num_threads%2016%E2%80%9D%20to%20utilize%2016%20CPUs%2Fcores.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3EWe%20tested%203%20different%20queries%2C%20from%20the%20simplest%20(Analysis%201)%20to%20the%20complicated%20(Analysis%203)%3A%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%229.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F286188i37012F72604E66C6%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%229.png%22%20alt%3D%229.png%22%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%2210.png%22%20style%3D%22width%3A%20940px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F286189i06075DE735FC3658%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%2210.png%22%20alt%3D%2210.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3ENOTE%3A%20you%20can%20follow%20process%20on%20%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fncbi%2Fblast_plus_docs%23section-3---using-the-blast-docker-image-at-production-scale%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Encbi%2Fblast_plus_docs%20(github.com)%3C%2FA%3E%20to%20run%20the%20same%20test%20on%20your%20own.%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%3CSTRONG%3EObservations%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3EBelow%20the%20Azure%20Insights%20screenshots%20when%20running%20the%20BLAST%20queries%20on%20HB120v3%20VM%2C%20which%20has%20120%20cores%20of%20CPU.%20Again%2C%20there%20are%202%20patterns%20of%20phases%20during%20the%20execution%20like%20what%20we%20found%20in%20previous%20test.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CFONT%20size%3D%224%22%3E16%20CPUs%20and%201%20CPU%20are%20utilized%20in%201%3CSUP%3Est%3C%2FSUP%3E%20phase%202%3CSUP%3End%3C%2FSUP%3E%20phase%2C%20respectively.%20And%20all%20those%20CPUs%20are%20running%20~100%25%20utilization%20all%20the%20time%20during%20the%20execution%2C%20which%20indicate%20it%E2%80%99s%20a%20fully%20CPU-bound%20task%2C%20and%20no%20significant%20performance%20blocker%20on%20IO%20nor%20network.%3C%2FFONT%3E%3C%2FLI%3E%0A%3CLI%3E%3CFONT%20size%3D%224%22%3EOn%202%3CSUP%3End%3C%2FSUP%3E%20phase%2C%20additional%20~100%20GB%20memory%20are%20used%2C%20which%20indicates%20BLAST%20loads%20the%20database%20into%20memory.%3C%2FFONT%3E%3C%2FLI%3E%0A%3CLI%3E%3CFONT%20size%3D%224%22%3EVery%20little%20usage%20on%20Disk%20I%2FO%20and%20networking%20during%20the%20whole%20execution%20of%20the%20run.%3C%2FFONT%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E16%20CPUs%20~100%25%20usage%20in%201st%20phase%20(%22htop%22%20screenshot)%3A%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%2211.png%22%20style%3D%22width%3A%20602px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F286190i3362BC142EEF9AC9%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%2211.png%22%20alt%3D%2211.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3EVery%20little%20I%2FO%20%26amp%3B%20networking%20usage%20during%20the%20whole%20run%20(Azure%20Insights%20screnthos)%3A%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%2212.png%22%20style%3D%22width%3A%20602px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F286191i0BCE9E90CE75E61C%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%2212.png%22%20alt%3D%2212.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%3CSTRONG%3EPerformance%20Tuning%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3EBased%20on%20the%20observations%2C%20we%20found%20that%20when%20VM%E2%80%99s%20memory%20size%20is%20larger%20than%20BLAST%20DB%20(~122GB).%20The%20program%20loads%20the%20database%20into%20memory%20and%20doing%20query%20algorithm%20for%20all%20subsequent%20sequences.%20Along%20with%20the%20fact%20that%20CPU%20are%20fully%20utilized%2C%20selection%20of%20VM%20SKUs%20would%20play%20bigger%20role%20as%20performance%20differentiator.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3EWe%20also%20tested%20several%20performance%20tuning%20practices%20including%3A%3C%2FFONT%3E%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3E%3CFONT%20size%3D%224%22%3E%3CSPAN%3E%E2%80%9Csudo%20systemctl%20enable%20--now%20tuned%20%26amp%3B%26amp%3B%20sudo%20tuned-adm%E2%80%9D%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FLI%3E%0A%3CLI%3E%3CFONT%20size%3D%224%22%3E%3CSPAN%3EANF%20mount%20option%20to%20include%3A%20%E2%80%9Cnconnect%3D16%2Cnocto%2Cactimeo%3D600%E2%80%9D%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FLI%3E%0A%3CLI%3E%3CFONT%20size%3D%224%22%3E%3CSPAN%3EProcess%20pinning%20(HC44rs%3A%20%E2%80%9Cnumactl%20--cpuset-cpus%200-15%E2%80%9D)%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3EBelow%20the%20testing%20results%20on%20different%20VM%20SKUs.%20The%20greener%2C%20the%20better%20of%20the%20query%20performance.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%2213.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F286192iBA2C070BFFB88E30%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%2213.png%22%20alt%3D%2213.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3EAs%20you%20see%20that%3A%3C%2FFONT%3E%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3E%3CFONT%20size%3D%224%22%3EVM%20SKUs%20play%20the%20biggest%20performance%20differentiator%20in%20this%20case%20as%20we%20expected%2C%20and%20the%20order%20is%20the%20same%20as%20in%20previous%20scenario%3A%3C%2FFONT%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3BHB120v3%20%26gt%3B%20FX48%20%26gt%3B%20E64dsv4%20%26gt%3B%20HC44rs%3C%2FFONT%3E%3C%2FP%3E%0A%3COL%20start%3D%222%22%3E%0A%3CLI%3E%3CFONT%20size%3D%224%22%3EThere%20is%20minor%20or%20no%20impact%20on%20performance%20for%20any%20kind%20of%20tuning%2C%20including%20%E2%80%9Ctuned-adm%E2%80%9D%2C%20mount%20options%2C%20or%20Process%20pinning.%3C%2FFONT%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%3CSTRONG%3EScalability%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3EOne%20of%20the%20promises%20of%20public%20cloud%20is%20scalability.%20So%2C%20we%20examine%20how%20is%20the%20level%20of%20complexity%20of%20query%20strings%20impact%20scalability.%20Below%20the%20results%20of%20elapsed%20time%20(mins)%20when%20we%20run%203%20different%20kinds%20of%20query%20strings%20(Analysis%201%2C%20Analysis%202%2C%20%26amp%3B%20Analysis%203)%20on%20the%20same%20VM%2C%20with%20different%20%E2%80%9Cnum_threads(%3D1%2C%202%2C%204%2C%208%2C%20%26amp%3B%2016)%E2%80%9D%20specified.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%2214.png%22%20style%3D%22width%3A%20706px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F286193iBCDBBF57F9235969%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%2214.png%22%20alt%3D%2214.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3EFindings%3A%3C%2FFONT%3E%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3E%3CFONT%20size%3D%224%22%3EThe%20more%20complicated%20of%20the%20query%2C%20the%20better%20performance%20gain%20when%20%23%20of%20threads%20increase.%20(The%20concrete-line%20rectangle)%3C%2FFONT%3E%3C%2FLI%3E%0A%3CLI%3E%3CFONT%20size%3D%224%22%3EWith%20simple%20query%2C%20only%20needs%20small%20%23%20of%20threads%20to%20maximize%20performance.%20(The%20dot-line%20rectangle)%3C%2FFONT%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%3CSTRONG%3ESummary%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3ENow%20we%20have%20walked%20you%20through%20the%20process%20to%20analyze%20the%20pattern%20of%202%20kinds%20of%20BLAST%20query%20scenarios%2C%20and%20how%20to%20determine%20performance%20bottleneck.%20We%20also%20suggest%20several%20performance%20tuning%20practices%20and%20verify%20their%20effectiveness.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3EWe%20also%20covered%20many%20other%20related%20topics%20like%20multi-threading%20scalability%2C%20degradation%20of%20performance%20with%20multiple%20queries%2C%20and%20cost-effective%20analysis.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3EBelow%20the%20key%20suggestions%20when%20running%20BLAST%20queries%20on%20Azure.%3C%2FFONT%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CFONT%20size%3D%224%22%3EIn%20overall%2C%20VM%20SKUs%20play%20a%20critical%20role%20on%20performance.%20Considering%20both%20performance%20and%20cost%20effectiveness.%3C%2FFONT%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%3CSTRONG%3EHB120v3%20%26gt%3B%26gt%3B%20FX48(cost%20TBD)%20%26gt%3B%20E64dsv4%20%26gt%3B%20L64ds2%20%26gt%3B%20HC44rs%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CFONT%20size%3D%224%22%3EBLAST%20DB%20size%20matters.%3C%2FFONT%3E%3C%2FLI%3E%0A%3CLI%3E%3CFONT%20size%3D%224%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%2215.png%22%20style%3D%22width%3A%20940px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F286194iC1BA6FD4E28A9C15%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%2215.png%22%20alt%3D%2215.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3CUL%3E%0A%3CLI%3E%3CFONT%20size%3D%224%22%3EWhen%20BLAST%20DB%20size%20is%20larger%20than%20VM%20memory%20(left-hand%20side)%2C%20massive%20READ%20IOPS%20is%20expected.%20You%20can%20consider%20storing%20both%20BLAST%20DB%20and%20input%2Foutput%20files%20on%20Local%20Temp%20or%20NVMe%20disk%20for%20best%20query%20performance.%20Of%20course%2C%20you%20will%20need%20to%20also%20consider%20files%20transfer%20efforts%20and%20working%20flow%20in%20production%20for%20best%20productivity.%3C%2FFONT%3E%3C%2FLI%3E%0A%3CLI%3E%3CFONT%20size%3D%224%22%3EWhen%20BLAST%20DB%20size%20is%20smaller%20than%20VM%20memory%20(right-hand%20side).%20The%20whole%20DB%20will%20be%20loaded%20into%20memory.%20It%20becomes%20CPU-bound%20and%20VM%20SKUs%20matters%20the%20most.%20Many%20tuning%20options%20like%20%E2%80%9Ctuned-adm%E2%80%9D%2C%20mount%20options%2C%20or%20Process%20pinning%20all%20provide%20very%20little%20improvement.%3C%2FFONT%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3E%3CFONT%20size%3D%224%22%3EThe%20more%20complicated%20of%20the%20BLAST%20query%2C%20the%20better%20performance%20gain%20when%20%23%20of%20threads%20increase.%3C%2FFONT%3E%3C%2FLI%3E%0A%3CLI%3E%3CFONT%20size%3D%224%22%3ECentOS%20performs%20better%20than%20Ubuntu.%3C%2FFONT%3E%3C%2FLI%3E%0A%3C%2FUL%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2410483%22%20slang%3D%22en-US%22%3E%3CP%3E%3CFONT%20size%3D%224%22%3ECovid-19%20pandemic%2C%20along%20with%20recent%20years%E2%80%99%20breakthrough%20in%20molecular%20biology%2C%20have%20led%20to%20the%20exemptional%20use%20of%20the%20sequence%20databases.%20Researchers%20use%20BLAST%20to%20compare%20nucleotide%20or%20protein%20sequences.%26nbsp%3BElapsed%20time%20of%20a%20query%20is%20critical%20in%20this%20task.%20%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2410483%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EHPC%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Version history
Last update:
‎Jun 09 2021 08:53 PM
Updated by: