<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Henry Gabb on Medium]]></title>
        <description><![CDATA[Stories by Henry Gabb on Medium]]></description>
        <link>https://medium.com/@HenryGabb?source=rss-6775f48a84e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*GsRdNWuGmRHABMj5</url>
            <title>Stories by Henry Gabb on Medium</title>
            <link>https://medium.com/@HenryGabb?source=rss-6775f48a84e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 22:43:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@HenryGabb/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[End-to-End Data Analytics Performance]]></title>
            <link>https://medium.com/intel-analytics-software/end-to-end-data-analytics-performance-7375000bc13e?source=rss-6775f48a84e------2</link>
            <guid isPermaLink="false">https://medium.com/p/7375000bc13e</guid>
            <category><![CDATA[apache-hadoop]]></category>
            <category><![CDATA[graph-analytics]]></category>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[benchmarking]]></category>
            <dc:creator><![CDATA[Henry Gabb]]></dc:creator>
            <pubDate>Fri, 25 Sep 2020 14:39:59 GMT</pubDate>
            <atom:updated>2020-09-25T14:39:59.629Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sCJ2WwIlV8IY-6Gf" /><figcaption>Photo by <a href="https://unsplash.com/@sortino?utm_source=medium&amp;utm_medium=referral">Joshua Sortino</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>The End-to-End Data Analytics Workflow Requires Generality</h4><p>I came across an <a href="https://blogs.nvidia.com/blog/2020/06/22/big-data-analytics-tpcx-bb/">article</a> from NVIDIA talking about their TPCx-BB benchmark results on A100. As a data scientist, I was immediately intrigued because I’m a big fan of the Transaction Processing Performance Council (TPC) benchmarks, which provide reasonable and objective performance metrics. Also, the TPC has clear rules about how their benchmarks are used and how results are reported to ensure that results from different vendors can be directly compared. I’ll say more about this later, but first let’s talk about the end-to-end data analytics workflow.</p><p>I’ve drawn a rough sketch of the end-to-end data analytics workflow based on my experience as a data scientist (Figure 1). Not all of my data science projects pass through every stage of this workflow, but it represents the sum total of my projects. Consequently, my computing environment must be able to handle all stages, especially the early stages: OLTP (online transactional processing) and OLAP (online analytical processing). As every data scientist knows, by the time you get to modeling, the hard work is already done. OLTP deals with managing data stores, while OLAP deals mainly with information retrieval. TPCx-BB is mainly an OLAP benchmark.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-kGqvKiojvc_lQ7jPaOVGw.png" /><figcaption>Figure 1. Rough breakdown of stages in the end-to-end data analytics workflow</figcaption></figure><p>It’s always best to assess a computing environment using your specific workflows, but data science is highly variable. Analytics workflows change from one project to the next. A system architecture that performs well in one stage of the end-to-end workflow may perform poorly in another. Therefore, data analytics requires generality. This is why standard, off-the-shelf benchmarks like TPCx-BB are valuable.</p><p>The benchmarks shown in Table 1 were created by experts to objectively assess different stages of the end-to-end data analytics workflow. They’re easy to evaluate (i.e., most have built-in correctness evaluators), their performance metrics are clearly defined, and most offer auditing. To quote TPC, this helps “<em>…protect users from misleading or false performance claims…</em>” With that in mind, let’s return to NVIDIA’s TPCx-BB results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bFmiiqmk69qwKr8ew4iSgQ.png" /><figcaption>Table 1. Standard benchmarks for the end-to-end data analytics workflow</figcaption></figure><p>TPCx-BB is a big data benchmark that contains elements of OLAP and data modeling. It is designed to measure the performance of Apache Hadoop systems using a mix of 30 SQL queries, user-defined functions, and machine learning functions. NVIDIA posted their code on <a href="https://github.com/rapidsai/tpcx-bb">GitHub</a>, so I took a look at their query implementations to see if they actually ran TPCx-BB. They didn’t.</p><p>First, they replaced Spark with Dask, which defeats the purpose of a Hadoop-based benchmark. Dask is a nice technology but Spark is far more common in data analytics workflows. Second, some of their query implementations ignored the user-defined and/or machine learning functions. Finally, they do not report the required TPCx-BB performance metrics: BBQpm (queries per minute throughput) and Price/BBQpm. The former is critical for a true assessment of overall performance because TPCx-BB models a system under load rather than the performance of isolated queries. The NVIDIA measurements ignore load and throughput, which isn’t realistic.</p><p>The current, audited TPCx-BB results (as of September 25, 2020) from several major hardware vendors are shown in Figure 2. All of their benchmarking systems used Intel Xeon processors at various scale factors and price points. There is no current or historical data for NVIDIA processors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UYiZYmnkKEYqnyQVwqeIWQ.png" /><figcaption>Figure 2. Audited TPCx-BB benchmark results as of September 25, 2020. (Source: <a href="http://www.tpc.org/tpcx-bb/results/tpcxbb_perf_results5.asp">http://www.tpc.org/tpcx-bb/results/tpcxbb_perf_results5.asp</a>, used with permission from TPC)</figcaption></figure><p>While I applaud NVIDIA’s attempt to use a standard, off-the-shelf benchmark like TPCx-BB, please run the actual benchmark suite and report the primary metrics — if you can. As I said above, the TPC has strict rules about how their benchmarks are used:</p><blockquote>“…it should be noted that the TPC benchmark specifications and policies require the submittal of complete documentation on these tests, which are then reviewed by the TPC Council. If a vendor’s TPC benchmark test is determined to be executed improperly or unfairly, a vendor will have to withdraw the result and can no longer use that result publicly. These rules protect users from misleading or false performance claims and preserves the credibility of TPC benchmark results.” (Source: <a href="http://www.tpc.org/information/about/faq-generic5.asp#run">Running a TPC Benchmark</a>)</blockquote><p>I’ve taken NVIDIA to task once before for using contrived tests to represent an entire stage of the end-to-end workflow:</p><p><a href="https://medium.com/intel-analytics-software/you-dont-have-to-spend-800-000-to-compute-pagerank-fa6799133402">You Don’t Have to Spend $800,000 to Compute PageRank</a></p><p>Don’t be fooled. Generality is critical in data science. Xeon-based systems scale better and provide best performance and TCO for the end-to-end data analytics workflow.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7375000bc13e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/intel-analytics-software/end-to-end-data-analytics-performance-7375000bc13e">End-to-End Data Analytics Performance</a> was originally published in <a href="https://medium.com/intel-analytics-software">Intel Analytics Software</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[You Don’t Have to Spend $800,000 to Compute PageRank]]></title>
            <link>https://medium.com/intel-analytics-software/you-dont-have-to-spend-800-000-to-compute-pagerank-fa6799133402?source=rss-6775f48a84e------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa6799133402</guid>
            <category><![CDATA[pagerank]]></category>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[graph-analytics]]></category>
            <category><![CDATA[xeon]]></category>
            <category><![CDATA[benchmarking]]></category>
            <dc:creator><![CDATA[Henry Gabb]]></dc:creator>
            <pubDate>Tue, 07 Jul 2020 20:49:39 GMT</pubDate>
            <atom:updated>2020-07-07T20:49:39.126Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GIBbGzG7_4Od4CVk" /><figcaption>Photo by <a href="https://unsplash.com/@artnok?utm_source=medium&amp;utm_medium=referral">Nicolas Picard</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>There’s a Better Way to Do Large-Scale Graph Analytics</h4><p>Benchmarking isn’t my favorite topic, but I have a passing interest in graph analytics benchmarking:</p><p><a href="https://medium.com/intel-analytics-software/measuring-graph-analytics-performance-2ab1a4052ca4">Measuring Graph Analytics Performance</a></p><p>I’ll occasionally dissect benchmarks that I think are inaccurate or misleading:</p><ul><li><a href="https://medium.com/intel-analytics-software/adventures-in-graph-analytics-benchmarking-3f90e969c10e">Adventures in Graph Analytics Benchmarking</a></li><li><a href="https://medium.com/intel-analytics-software/more-adventures-in-graph-analytics-benchmarking-90b6ef868d74">More Adventures in Graph Analytics Benchmarking</a></li></ul><p>And I’ll also dissect benchmarks that only tell part of the story. I was half-listening to Jensen Huang’s NVIDIA GTC 2020 Keynote from May 14, 2020 when one of his performance claims caught my attention. At about the 19:30 minute mark of <a href="https://www.youtube.com/watch?v=onbnb_D1wC8">Part 6</a>, the presentation turns to large-scale graph analytics, and claims that a DGX A100 rack can compute PageRank (PR) on a 128-billion-edge web graph at 688 billion edges per second. I don’t have access to a DGX A100 rack, but if we assume for the sake of argument that this is true, is it really necessary to spend $800,000 to compute PR on this graph? I don’t think so, but let’s dissect this benchmark so you can decide.</p><p>Some of my Intel and academic colleagues published PR results for a 128-billion-edge web graph: <a href="https://dl.acm.org/doi/10.14778/3389133.3389145">Single machine graph analytics on massive datasets using Intel Optane DC persistent memory</a>. This article was published in April 2020, but it was <a href="https://arxiv.org/abs/1904.07162">originally posted</a> on arXiv.org back in April 2019 — a year before the GTC keynote. They achieved 75 billion edges per second using a single 2U server with two 2nd-generation 2.2 GHz Intel Xeon Scalable processors, 384GB DDR4 memory, and 6TB Intel Optane DC persistent memory. Note that the server in this study contained 6TB of Optane memory, but only used 2TB:</p><blockquote>“When we evaluated explicit Huge Pages allocation, we reserved 2TB and 360GB for Optane PMM and DRAM experiments, respectively.”</blockquote><p>This was sufficient to load the graph. There isn’t enough source information to confirm that the web crawl graphs are identical, but I’m pretty sure they’re the same or at least very similar.</p><p>If we compare the system characteristics for the respective PR computations, it becomes clear that performance alone doesn’t tell the whole story. The table below shows that while the 2U Xeon-based server achieves only 10.9% of the DGX A100 rack performance, it does so at 6.3% of the price, 3.3% of the power, and 8.3% of the space. Put another way, the Xeon-based system has 1.7x higher performance per dollar, 3.3x higher performance per watt, and 1.3x higher performance per rack unit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XFO6bPxx8c1QhMg46yOjGA.png" /></figure><p>If this wasn’t enough, PR is just one of many graph analytics algorithms. It’s also easy to parallelize, which is why it was chosen to showcase the DGX A100. Other graph analytics algorithms are not as easy to parallelize efficiently, and don’t scale to the level of PR, which is why they weren’t chosen. I doubt that scalable parallel implementations of other graph algorithms are even available for the DGX A100. In contrast, the year-old article cited above performs computations on the same 128-billion-edge web graph for PR and many other common algorithms: breadth-first search, betweenness centrality, connected components, k-core decomposition, and single-source shortest paths.</p><p>If PR performance is all that matters to you, and you have $800,000 to spare, a 22-kW power plant, and plenty of cooling capacity, then by all means use a rack of DGX A100s. Otherwise, a single Xeon-based server with sufficient memory is a much better choice for large-scale, general-purpose graph analytics.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa6799133402" width="1" height="1" alt=""><hr><p><a href="https://medium.com/intel-analytics-software/you-dont-have-to-spend-800-000-to-compute-pagerank-fa6799133402">You Don’t Have to Spend $800,000 to Compute PageRank</a> was originally published in <a href="https://medium.com/intel-analytics-software">Intel Analytics Software</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[More Adventures in Graph Analytics Benchmarking]]></title>
            <link>https://medium.com/intel-analytics-software/more-adventures-in-graph-analytics-benchmarking-90b6ef868d74?source=rss-6775f48a84e------2</link>
            <guid isPermaLink="false">https://medium.com/p/90b6ef868d74</guid>
            <category><![CDATA[intel]]></category>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[graph-analytics]]></category>
            <category><![CDATA[benchmarking]]></category>
            <category><![CDATA[xeon]]></category>
            <dc:creator><![CDATA[Henry Gabb]]></dc:creator>
            <pubDate>Tue, 18 Feb 2020 17:12:33 GMT</pubDate>
            <atom:updated>2020-07-07T20:58:06.732Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DXPhEkSvekF2MMVn" /><figcaption>Photo by <a href="https://unsplash.com/@alinnnaaaa?utm_source=medium&amp;utm_medium=referral">Alina Grubnyak</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Or, Why Benchmark Reproducibility Matters</h4><h4>Benchmarking the Louvain Algorithm</h4><p>If you’ve read my last two articles, <a href="https://medium.com/intel-analytics-software/measuring-graph-analytics-performance-2ab1a4052ca4">Measuring Graph Analytics Performance</a> and <a href="https://medium.com/intel-analytics-software/adventures-in-graph-analytics-benchmarking-3f90e969c10e">Adventures in Graph Analytics Benchmarking</a>, you know that I’ve been harping on graph analytics benchmarking a lot lately. You also know that I use the <a href="http://gap.cs.berkeley.edu/benchmark.html">GAP Benchmark Suite</a> from the University of California, Berkeley, because it’s easy to run, tests multiple graph algorithms and topologies, provides good coverage of the graph analytics landscape — and, most important — gives comprehensive, objective, and reproducible results. However, GAP doesn’t cover community detection in social networks.</p><ul><li><a href="https://medium.com/intel-analytics-software/measuring-graph-analytics-performance-2ab1a4052ca4">Measuring Graph Analytics Performance</a></li><li><a href="https://medium.com/intel-analytics-software/adventures-in-graph-analytics-benchmarking-3f90e969c10e">Adventures in Graph Analytics Benchmarking</a></li></ul><p>The Louvain algorithm [1] for finding communities in large networks is a possible candidate to close this gap (pun intended). First, it’s a well-studied approach. According to Google Scholar, the article describing this algorithm has over 10,000 citations as of November 2019. Second, it’s designed for large graphs. The original article analyzed a web graph with 118 million vertices and over one billion edges. So, let’s take a look at benchmarking the Louvain algorithm.</p><p>I recently came across a Louvain performance comparison of RAPIDS cuGraph and NetworkX (<strong>Figure 1</strong>). NetworkX is a comprehensive library for network analysis. It covers even the most obscure areas of network research. Need a triadic census? NetworkX has you covered. It’s a good library, if you’re working with very small graphs. NetworkX is a pure Python library, so its performance isn’t great. Why compare an optimized library like cuGraph to an unoptimized library, unless the goal is to report inflated speedups? But there’s an even bigger flaw: the <a href="https://medium.com/rapids-ai/rapids-cugraph-1ab2d9a39ec6">source article</a> for <strong>Figure 1 </strong>didn’t say if cuGraph and NetworkX gave the same output. So, I decided to do my own comparisons.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*k3KD8DpKhNxxRsAw.jpg" /><figcaption>Figure 1. Comparison of Louvain clustering performance for cuGraph vs. NetworkX for several small graphs. (Source: <a href="https://medium.com/rapids-ai/rapids-cugraph-1ab2d9a39ec6">https://medium.com/rapids-ai/rapids-cugraph-1ab2d9a39ec6</a>)</figcaption></figure><p>I used the <a href="https://sourceforge.net/projects/louvain/">reference implementation</a> of the Louvain algorithm (downloaded November 2019) [2] because it’s written in C++ and should give better performance than Python. I compiled this package as follows:</p><pre>$ tar -xzf louvain-generic.tar.gz<br>$ cd gen-louvain<br>$ make</pre><p>This creates the three executables that I need: convert (converts a raw edge list into a more efficient binary format), louvain (partitions the graph into communities using modularity optimization [3]), and hierarchy (displays the community structure). I used the standard build with the GNU C++ compiler, as I did in my previous GAP experiments. The source code was not modified, and I did not change the compiler options in the original Makefile.</p><p>I followed the instructions in the README.txt file (included in louvain-generic.tar.gz) to prepare the input data and run the Louvain reference implementation:</p><pre>$ convert -i graph.txt -o graph.bin<br>$ louvain graph.bin -v -l -1 -e 0.001 &gt; graph.tree<br>$ hierarchy graph.tree -n</pre><p>The graphs listed in <strong>Figure 1</strong> were downloaded from the <a href="https://sparse.tamu.edu/">SuiteSparse Matrix Collection</a> and converted to edge lists. It is worth reiterating that these are small graphs (<strong>Table 1</strong>). The largest has only 1.7 million vertices. By comparison, the smallest and largest graphs in the GAP Benchmark Suite have 23.9M and 134.2M vertices, respectively, and the Louvain algorithm was originally tested on a 118M-vertex graph.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/769/0*ScCyakje_EpNHrut.jpg" /><figcaption>Table 1. Size characteristics of the small graphs used in <strong>Figure 1</strong>.</figcaption></figure><p>The graphs in <strong>Figure 1 </strong>were probably selected for two reasons. First, they must be small enough to fit in the memory of a single NVIDIA Tesla V100 because the Louvain implementation in cuGraph cannot use the aggregate memory of multiple GPUs. Second, <strong>Figure 1 </strong>compares cuGraph to NetworkX, so compute times for larger graphs would have been prohibitively long for a pure Python library.</p><p>Before we consider relative performance, let’s talk about correctness. The <a href="https://medium.com/rapids-ai/rapids-cugraph-1ab2d9a39ec6">source article</a> only showed the performance data in <strong>Figure 1 </strong>without considering whether NetworkX and cuGraph were giving the same output. Is each Louvain implementation detecting the same (or at least similar) communities? A simple count of the communities detected by each Louvain implementation shows significant variations (<strong>Table 2</strong>). Small variations in communities are to be expected because the internal heuristics may be different in each implementation. However, some of the differences are so large that performance comparisons become suspect. For example, is one implementation converging on a set of communities too early? What constitutes correct output for Louvain computations on these graphs? One of the main advantages of GAP or any standard benchmark is that they define the correct output for a given test. Without such definitions, apples-to-apples performance comparisons are difficult or impossible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4o2usxKTxyD1iFoe.jpg" /><figcaption>Table 2. Variation in the number of communities detected by each Louvain implementation. cuGraph [4] tests were run in an AWS EC2 p3.16xlarge instance [5]. cuGraph was run on a single V100. NetworkX and the Louvain reference implementation were run on a single <em>Intel® Xeon® processor [6].</em></figcaption></figure><p>Comparing cuGraph to the sequential C++ reference implementation of the Louvain algorithm significantly closes the performance gap (<strong>Figure 2</strong>). I can probably close the gap even further with a few simple changes. For example, I could switch to the Intel compiler to enable aggressive optimization and vectorization, or I could try parallelizing the reference implementation using OpenMP, but I’m reluctant to do this until I can establish ground truth. For now, I’m satisfied that the 1.4x to 10x speedups for cuGraph are a far cry from the 200x to 2,100x speedups reported in <strong>Figure 1</strong>. However, I’m only satisfied because I know there are problems with these performance comparisons. As with most <em>ad hoc</em>, undefined benchmarks, the results must be taken with a grain of salt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OJ0aDziZ0Je-rBTQ.jpg" /><figcaption>Figure 2. Performance comparison of the Louvain reference implementation vs. cuGraph for several small graphs [7]. Note that only compute time (in seconds, lower is better) is measured. The time to load and setup the graphs is ignored. cuGraph tests were run in an AWS EC2 p3.16xlarge instance. cuGraph was run on a single V100. The Louvain reference implementation was run on a single Intel Xeon processor.</figcaption></figure><h4>Establishing Ground Truth</h4><p>In an attempt to establish ground truth, I ran each Louvain implementation on the famous <a href="https://en.wikipedia.org/wiki/Zachary%27s_karate_club">Zachary Karate Club</a> [8] social network. This graph is small enough (only 34 vertices and 78 edges) to manually check if all implementations produce the same communities. NetworkX, cuGraph, and the Louvain reference implementation each give slightly different results (variations are highlighted).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/0*oCMsengNQiP7tPEF.jpg" /><figcaption>Communities detected by NetworkX</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/0*vR-PVlt8UAslhfTF.jpg" /><figcaption>Communities detected by the Louvain reference implementation</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/0*lM76_hrrLresYEKd.jpg" /><figcaption>Communities detected by cuGraph</figcaption></figure><p>Given the variations in Table 2, it’s not surprising that each package produces different communities. They find communities that are <em>subjectively</em> reasonable, though not identical to those reported by Girvan and Newman (2002) [3]:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1013/0*zh0SMUZ56uGeTUZ8.jpg" /><figcaption>Communities reported by Girvan and Newman (2002, see their Figure 4b)</figcaption></figure><h4>Conclusions</h4><p>My original goal for these experiments was to demonstrate the folly of comparing an optimized library like cuGraph to a pure Python library like NetworkX. The C++ Louvain reference implementation closes the performance gap significantly, but the large variation in the number of communities (<strong>Table 2</strong>) means there’s more to the story than just performance. What are the “correct” communities for each input graph? Is one Louvain implementation right, and the others wrong?</p><p>The difficulty establishing ground truth for even the widely-studied Zachary social network highlights the importance of clearly-defined graph analytics benchmarks. The Louvain algorithm might make a good addition to the GAP Benchmark Suite because it would expand coverage into community detection, which GAP currently lacks, but <em>ad hoc</em> performance measurements are insufficient. An <em>objective </em>and <em>reproducible </em>test must be defined by the graph analytics community. Until then, if community detection performance is important for decision-making, I recommend the <a href="https://dl.acm.org/citation.cfm?id=3007270">LDBC Graphalytics</a> benchmark.</p><h4>References</h4><ol><li>Blondel et al. (2008). “<a href="https://arxiv.org/abs/0803.0476">Fast unfolding of Communities in Large Networks</a>,” J Stat Mech, P10008.</li><li>See “<a href="https://sites.google.com/site/findcommunities/">Louvain method: Finding Communities in Large Networks</a>” for more information about this package. It is worth noting that the reference implementation has not been parallelized.</li><li>Girvan and Newman (2002). “<a href="https://www.pnas.org/content/99/12/7821">Community Structure in Social and Biological Networks</a>,” Proc Natl Acad Sci, 99(12), 7821–7826.</li><li>The cuGraph code was adapted from <a href="https://github.com/rapidsai/notebooks/blob/branch-0.11/cugraph/community/Louvain.ipynb">https://github.com/rapidsai/notebooks/blob/branch-0.11/cugraph/community/Louvain.ipynb</a>.</li><li>GPU: NVIDIA Tesla V100 with 16 GB HBM; System memory: 480 GB; Operating system: Ubuntu Linux release 4.15.0–1054-aws, kernel 56.x86_64; Software: RAPIDS v0.1.0 (downloaded and run November 2019).</li><li>CPU: Intel® Xeon® Gold 6252 (2.1 GHz, 24 cores), HyperThreading enabled (48 virtual cores per socket); Memory: 384 GB Micron DDR4–2666; Operating system: Ubuntu Linux release 4.15.0–29, kernel 31.x86_64; Software: GNU g++ v7.4.0, NetworkX v2.3, community API v0.13, Louvain reference implementation (downloaded and run November 2019).</li><li>For more complete information about performance and benchmark results, visit <a href="http://c/Users/ssams/AppData/Local/Microsoft/Windows/INetCache/Content.Outlook/1OYA5Z8O/www.intel.com/benchmarks">www.intel.com/benchmarks</a>.</li><li>Zachary (1977). “An Information Flow Model for Conflict and Fission in Small Groups,” J Anthropol Res, 33(4), 452–473.</li></ol><p>This article was originally published on <a href="https://software.intel.com/en-us">Intel Developer Zone</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/919/1*fHTu7bFYhTZTKyMghrix5w.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90b6ef868d74" width="1" height="1" alt=""><hr><p><a href="https://medium.com/intel-analytics-software/more-adventures-in-graph-analytics-benchmarking-90b6ef868d74">More Adventures in Graph Analytics Benchmarking</a> was originally published in <a href="https://medium.com/intel-analytics-software">Intel Analytics Software</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Adventures in Graph Analytics Benchmarking]]></title>
            <link>https://medium.com/intel-analytics-software/adventures-in-graph-analytics-benchmarking-3f90e969c10e?source=rss-6775f48a84e------2</link>
            <guid isPermaLink="false">https://medium.com/p/3f90e969c10e</guid>
            <category><![CDATA[graph-analytics]]></category>
            <category><![CDATA[intel]]></category>
            <category><![CDATA[xeon]]></category>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[benchmarking]]></category>
            <dc:creator><![CDATA[Henry Gabb]]></dc:creator>
            <pubDate>Mon, 17 Feb 2020 20:44:04 GMT</pubDate>
            <atom:updated>2020-07-07T20:57:03.669Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KWi0u8pL3z-5SNBy" /><figcaption>Photo by <a href="https://unsplash.com/@clintadair?utm_source=medium&amp;utm_medium=referral">Clint Adair</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>It’s Important to Use a Benchmark for Its Intended Purpose</h4><p>With all the attention graph analytics is getting lately, it’s increasingly important to measure its performance in a comprehensive, objective, and reproducible way. I covered this in a <a href="https://medium.com/intel-analytics-software/measuring-graph-analytics-performance-2ab1a4052ca4">previous article</a>, in which I recommended using an off-the-shelf benchmark like the <a href="http://gap.cs.berkeley.edu/benchmark.html">GAP Benchmark Suite</a> from the University of California, Berkeley. There are other graph benchmarks, of course, like <a href="https://dl.acm.org/citation.cfm?id=3007270">LDBC Graphalytics</a>, but they can’t beat GAP for ease of use. There’s significant overlap between GAP and Graphalytics, but the latter is an industrial-strength benchmark that requires a special software configuration.</p><p><a href="https://medium.com/intel-analytics-software/measuring-graph-analytics-performance-2ab1a4052ca4">Measuring Graph Analytics Performance</a></p><p>Personally, I find benchmarking boring. But it’s unavoidable when I need performance data to make a decision. Obviously, the data has to be accurate. But it also has to be relevant to the decision at hand. It’s important that my use of a particular benchmark is aligned with its intended purpose. That’s why the performance comparison shown in <strong>Figure 1</strong> had me scratching my head. It compares the PageRank performance of RAPIDS cuGraph to <a href="https://github.com/Intel-bigdata/HiBench">HiBench</a>. The latter is a big data benchmark developed by some of my Intel colleagues to measure a wide range of analytics functions — not just PageRank. Both tests in <strong>Figure 1</strong> use the same synthetic graph with only 50 million vertices and two billion edges. The HiBench measurements used Apache Spark, but in my world, a Spark cluster is for big data (i.e., terabytes). A 2B-edge graph (about 8 GB in compressed-sparse format) hardly qualifies as big data if I can load it into the memory of my laptop. Why use a Spark cluster when the dataset easily fits in the memory of a single system?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*J-nGPxTVsvkkPCZz.jpg" /><figcaption>Figure 1. HiBench benchmark. Note that the original figure was mislabeled. The input graph has 2B edges, not 50M. Also, the original figure claims to use Spark GraphX, but the HiBench PageRank benchmark was implemented before GraphX was available, so it actually uses the less efficient MLLib. (Source: <a href="https://medium.com/rapids-ai/rapids-0-9-a-model-built-to-scale-dafbf4c1e1cb">https://medium.com/rapids-ai/rapids-0-9-a-model-built-to-scale-dafbf4c1e1cb</a>)</figcaption></figure><p>I asked my colleagues on the HiBench team to generate a graph with 50M vertices and 2B edges so that I could run my own performance tests. <strong><em>Using the PageRank reference implementation in the GAP benchmark package, the end-to-end computation on this graph took only 12 seconds with 48 threads running on a single, two-socket Intel® Xeon® processor-based system [1].</em></strong> This is much better than the performance reported in <strong>Figure 1</strong>, and I didn’t need three expensive NVIDIA V100 GPUs or a Spark cluster to get it.</p><p>It’s hard to say if this is an apples-to-apples comparison with the cuGraph performance in <strong>Figure 1</strong>. I used the default GAP convergence tolerance and capped iterations at three because that’s the HiBench default. However, there’s no way of knowing if the same parameters were used for the cuGraph test because benchmarking parameters weren’t reported.</p><p>Transparency is crucial for generating believable and reproducible benchmarks. In PageRank, for example, the convergence tolerance and the maximum number of iterations significantly affect run-time, so these parameters should be clearly stated. This is one of the biggest advantages of using an off-the-shelf benchmark like GAP to measure graph analytics performance. If someone reports results for the PageRank test in GAP, I know by definition that the damping factor is 0.85, the tolerance is 0.0001, and the maximum number of iterations is 1,000. I would expect any deviation from the default parameters to be duly noted.</p><p>The HiBench team was also intrigued by <strong>Figure 1</strong> because the original caption for this figure stated, “cuGraph PageRank vs Spark GraphX for [2B] edges across varying n1-standard-8 [Google Cloud Platform] nodes (lower is better).” As mentioned above, the PageRank in HiBench is implemented using MLLib, not GraphX. So, for the sake of experiment, the HiBench team implemented PageRank using GraphX to compare its performance to the original implementation.</p><p>Unfortunately, it’s hard to know what processors were used in the n1-standard-8 nodes, but we do know that each node has 8 vCPUs (a vCPU is a single hardware Hyper-Thread) and 30 GB memory. (That means the 100-node test in <strong>Figure 1</strong> used a whopping 3 TB memory for a graph that only requires a few GB!) This, plus numerous other omissions, makes an exact comparison impossible. But the HiBench team forged ahead with an approximate comparison on one of their available Spark clusters (one master plus four workers with a total of 440 vCPUs) [2]. <strong><em>For the same size graph (50M vertices, 2B edges), the MLLib PageRank took 461 seconds while the GraphX PageRank only took 157 seconds. </em></strong>The closest comparison is to the 50-node (400 vCPUs) Spark cluster in <strong>Figure 1</strong>. While I don’t condone using Spark for such a small problem, the results from the HiBench team are significantly better than those reported in <strong>Figure 1</strong>.</p><p>We’ve now come full circle, which leads back to the opening statement of this article. It’s important to measure performance in a <em>comprehensive</em>, <em>objective</em>, and <em>reproducible</em> way. That’s why we recommend using an off-the-shelf graph analytics benchmark like the GAP Benchmark Suite. As mentioned in my <a href="https://medium.com/intel-analytics-software/measuring-graph-analytics-performance-2ab1a4052ca4">previous article</a> on this subject, the graph analytics landscape is large and varied. No benchmark can cover every aspect of a computational domain, not even GAP. For example, GAP doesn’t cover community detection as well as I’d like. (One could argue that the connected components benchmark in GAP is close enough because its computational patterns overlap with many community detection algorithms.) If community detection is important for my decision-making requirements, I can either switch to the Graphalytics benchmark, or I can propose an update to GAP. Either option is better than creating an entirely new benchmark that has no community support or historical data.</p><h4>System Details</h4><ol><li>Processor: Intel® Xeon® Gold 6252 (2.1 GHz, 24 cores), HyperThreading enabled (48 virtual cores); Memory: 384 GB Micron DDR4–2666; Operating system: Ubuntu Linux release 4.15.0–29, kernel 31.x86_64; Software: GAP Benchmark Suite (downloaded and run September 2019).</li><li>Processor: Intel® Xeon® Platinum 8180 (2.5 GHz, 28 cores), HyperThreading enabled (56 virtual cores); Memory: 384 GB Micron DDR4–2666; Network: Intel® 82599ES 10-Gigabit SFI/SFP+; Operating system: CentOS Linux release 7.6.1810, kernel v3.10.0–862.el7.x86_64; Software: Oracle Java JDK (build 1.8.0_65), Hadoop 2.7.0, Spark 2.4.3, and HiBench 7.0.</li></ol><p>This article was originally published on <a href="https://software.intel.com/en-us">Intel Developer Zone</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/919/1*fHTu7bFYhTZTKyMghrix5w.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3f90e969c10e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/intel-analytics-software/adventures-in-graph-analytics-benchmarking-3f90e969c10e">Adventures in Graph Analytics Benchmarking</a> was originally published in <a href="https://medium.com/intel-analytics-software">Intel Analytics Software</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Measuring Graph Analytics Performance]]></title>
            <link>https://medium.com/intel-analytics-software/measuring-graph-analytics-performance-2ab1a4052ca4?source=rss-6775f48a84e------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ab1a4052ca4</guid>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[benchmarking]]></category>
            <category><![CDATA[graph-analytics]]></category>
            <category><![CDATA[intel]]></category>
            <category><![CDATA[xeon]]></category>
            <dc:creator><![CDATA[Henry Gabb]]></dc:creator>
            <pubDate>Fri, 07 Feb 2020 23:24:39 GMT</pubDate>
            <atom:updated>2020-07-07T20:54:43.699Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FQyk1GZhz1Yrpzji" /><figcaption>Photo by <a href="https://unsplash.com/@alinnnaaaa?utm_source=medium&amp;utm_medium=referral">Alina Grubnyak</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>The Diverse Landscape of Graph Analytics Requires a Comprehensive Benchmark</h4><h4>What Is Graph Analytics And Why Does It Matter?</h4><p>A graph is a good way to represent a set of objects and the relations between them (<strong>Figure 1</strong>). Graph analytics is the set of techniques to extract information from connections between entities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/0*5L8h-0ebft3azyti.jpg" /><figcaption>Figure 1. Graphs are everywhere.</figcaption></figure><p>For example, graphs analytics can be used to:</p><ul><li>Get recommendations among friends in a social network</li><li>Find cut points in a communication network or electrical grid</li><li>Determine drug effects on a biochemical pathway</li><li>Detect robocalls in telecommunications network</li><li>Find optimal routes between locations on a map</li></ul><p>Graph analytics has been getting a lot of attention lately, possibly because Gartner listed it among the top 10 data and analytics technology trends for 2019:</p><blockquote>The application of graph processing and graph DBMSs will grow at 100 percent annually through 2022 to continuously accelerate data preparation and enable more complex adaptive data science.</blockquote><blockquote>(Source: <a href="https://www.gartner.com/en/newsroom/press-releases/2019-02-18-gartner-identifies-top-10-data-and-analytics-technolo">Gartner Identifies Top 10 Data and Analytics Technology Trends for 2019</a>)</blockquote><p>Intel has a long history of leadership in graph analysis. For example, Intel coauthored the <a href="http://graphblas.org/">GraphBLAS</a> specification to formulate graph problems as sparse linear algebra. Though the <a href="https://ieeexplore.ieee.org/document/7965104">GraphBLAS API</a> was just published in 2017, the initial proposal and manifesto were published more than 10 years ago. Today, the same industry and academic partnership is coauthoring the forthcoming <a href="https://ieeexplore.ieee.org/abstract/document/8778338/authors#authors">LAGraph</a> specification for a library of graph algorithms. Intel was also selected by DARPA to develop a new processor to handle large graph datasets (see “<a href="https://www.top500.org/news/darpa-taps-intel-for-graph-analytics-chip-project/">DARPA Taps Intel for Graph Analytics Chip Project</a>”). We will continue to innovate and push the graph analytics envelope.</p><h4>Benchmarking Graph Analytics Performance</h4><p>Graph analytics is a large and varied landscape. Even the simple examples in <strong>Figure 1</strong> show differing characteristics. For example, some networks are highly connected; others are sparser. A network of webpages exhibits different connectivity than a network of Twitter users, where some users have millions of followers while most have only a few. Consequently, no single combination of graph algorithm, graph topology, or graph size can adequately represent the entire landscape.</p><p>Therefore, we use the <a href="http://gap.cs.berkeley.edu/benchmark.html">GAP Benchmark Suite</a> from the University of California, Berkeley to measure graph analytics performance. GAP specifies six widely-used algorithms (<strong>Table 1</strong>) and five small- to medium-sized graphs (<strong>Table 2</strong>). Each graph has different characteristics, which is important because optimizations that work well for one graph topology may not work well for others. For example, the Road graph is relatively small, but its high diameter can cause problems for some algorithms. Consequently, the 30 GAP data points provide good coverage of the graph analytics landscape.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/0*Nu-OJ2zyEbt_Grix.jpg" /><figcaption>Table 1. GAP measures the performance of six common graph analytics algorithms.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/0*_haMispoL4qa7MdX.jpg" /><figcaption>Table 2. GAP uses five graphs of varying size and topology to give a more complete picture of graph analytics performance.</figcaption></figure><p>GAP also has the advantages of being a clearly-defined, objective, off-the-shelf benchmark. It does not require special hardware or software configurations, so it is easy to run.</p><p>Here are the steps that I took to run the benchmark:</p><ol><li>Download the <a href="https://github.com/sbeamer/gapbs">GAP package</a>.</li><li>Run make in the gapbs-master subdirectory to build the reference implementations for the six graph analytics kernels. For now, I’m just using the default GAP build parameters (the GNU C++ compiler with the -std=c++11 -O3 -Wall -fopenmp options). My system had the GNU v7.4.0 compiler installed.</li><li>In the same directory, run make -f benchmark/bench.mk bench-graphs to download or generate the five benchmark graphs and convert them to more efficient input formats.</li><li>The GAP reference implementations are parallelized with OpenMP, so it is important to set the number of threads. Otherwise, GAP will use all available cores, even if this doesn’t give the best parallel efficiency. The export OMP_NUM_THREADS=32 command sets the number of OpenMP threads to 32, for example.</li><li>Finally, run make -f benchmark/bench.mk bench-run to launch the benchmarks and generate results (<strong>Table 3</strong>).</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/0*jt1nNKz05I5vThir.jpg" /><figcaption>Table 3. Compute times (in seconds, lower is better) for GAP running on a two-socket Intel® Xeon® system [1]. GAP was run with 1, 8, 16, 24, 32, 48, 64, and 96 threads. Best performance is shown for each test.</figcaption></figure><p>I tried to generate NVIDIA V100 comparative data, but ran into several technical barriers:</p><ol><li>Only one of the GAP graphs (Road) fits in the memory of a single V100.</li><li>Only one of the GAP algorithms (PR) in RAPIDS cuGraph can use the aggregate memory of multiple V100s.</li><li>The current version of cuGraph (v0.9.0) does not provide a BC implementation.</li><li>The cuGraph APIs and documentation do not expose certain implementation details or algorithm parameters. For example, the multi-V100 PR implementation in cuGraph does not provide a convergence tolerance parameter, which makes an apples-to-apples comparison to the GAP results difficult.</li></ol><p>Consequently, it’s only possible to run nine of the 30 GAP tests (<strong>Table 4</strong>). As you can see, where GAP can run on both architectures, the Intel Xeon processors outperformed the V100 on most tests, even when the graph is small enough to fit in GPU memory (i.e., Road) or when the algorithm can use multiple GPUs (i.e., PageRank). Also, total cost of ownership (TCO) clearly favors Intel Xeon processors for graph analytics (<strong>Table 5</strong>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/0*spUvRCx1FbU2eYCI.jpg" /><figcaption>Figure 4. Compute times (in seconds, lower is better) for cuGraph running on an AWS EC2 p3.16xlarge instance (eight V100 GPUs connected via NVLink) [2]. All Road tests used a single V100. Twitter and Web tests used eight V100s. Note that the multi-V100 PR in cuGraph does not provide a convergence tolerance parameter so the default parameters were used for these tests. Kron and Urand tests failed with a “thrust::system::system_error.” DNR = Does not run because of insufficient memory. NA = Not available in cuGraph v0.9.0.</figcaption></figure><p>These results highlight the advantages of a benchmark suite that tests multiple algorithms on different graph topologies. For example, SSSP implementations typically allow users to specify a delta stepping parameter to improve performance for high-diameter graphs. The cuGraph implementation provides no such option, so its internal defaults may be suboptimal for a high-diameter graph like Road. The same could also be true for the cuGraph CC implementation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/0*BQiNHfMXal0Vuedc.jpg" /><figcaption>Table 5. Relative TCO of the Xeon and V100 benchmark systems. Note that the AWS price comparison is only an approximation because no EC2 instances exactly match the Xeon-based benchmarking system, but the m4.16xlarge instance is similar.</figcaption></figure><h4>Conclusions</h4><p>I can probably improve the GAP results on the Intel Xeon processor platform (<strong>Table 3</strong>) with a few simple changes like using the Intel compiler and aggressive optimization and vectorization, tweaking the thread placement and affinity, experimenting with the numactl utility, adjusting page sizes, etc. [5, 6], but that’s not the purpose of this blog. My goal is to show how easy it is to get <em>comprehensive</em>, <em>objective</em>, and <em>reproducible</em> graph analytics performance data without obfuscation or resorting to benchmarking tricks.</p><h4>References</h4><ol><li>Processor: Intel Xeon Gold 6252 (2.1 GHz, 24 cores), HyperThreading enabled (48 virtual cores per socket); Memory: 384 GB Micron DDR4–2666; Operating system: Ubuntu Linux release 4.15.0–29, kernel 31.x86_64; Software: GAP Benchmark Suite (downloaded and run September 2019).</li><li>Processor: NVIDIA Tesla V100; Memory: 16 GB; Operating system: Ubuntu Linux release 4.15.0–1047-aws, kernel 49.x86_64; Software: RAPIDS v0.9.0 (downloaded and run September 2019).</li><li>Source: <a href="https://www.microway.com/hpc-tech-tips/nvidia-tesla-v100-price-analysis/">https://www.microway.com/hpc-tech-tips/nvidia-tesla-v100-price-analysis/</a> (accessed September 2019) and <a href="https://ark.intel.com/content/www/us/en/ark/products/192447/intel-xeon-gold-6252-processor-35-75m-cache-2-10-ghz.html">https://ark.intel.com/content/www/us/en/ark/products/192447/intel-xeon-gold-6252-processor-35-75m-cache-2-10-ghz.html</a> (accessed September 2019).</li><li>Source: <a href="https://aws.amazon.com/ec2/pricing/on-demand/">https://aws.amazon.com/ec2/pricing/on-demand/</a> (accessed September 2019).</li><li>See <a href="https://techdecoded.intel.io/resources/boosting-the-performance-of-graph-analytics-workloads/">Boosting the Performance of Graph Analytics Workloads</a> if you’re interested in tuning GAP.</li><li>See <a href="https://techdecoded.intel.io/resources/measuring-the-impact-of-numa-migrations-on-performance/">Measuring the Impact of NUMA Migrations on Performance</a> if you’re interested in experimenting with the numactl utility.</li></ol><p>This article was originally published in <a href="https://software.intel.com/en-us/parallel-universe-magazine"><em>The Parallel Universe</em></a> (issue 39).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/919/1*fHTu7bFYhTZTKyMghrix5w.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ab1a4052ca4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/intel-analytics-software/measuring-graph-analytics-performance-2ab1a4052ca4">Measuring Graph Analytics Performance</a> was originally published in <a href="https://medium.com/intel-analytics-software">Intel Analytics Software</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>