source: docs/HPCA2012/01-intro.tex @ 1407

Last change on this file since 1407 was 1407, checked in by ashriram, 8 years ago

Minor bug fixes

File size: 8.3 KB
2Classical Dennard voltage scaling enabled us to keep all of transistors
3afforded by Moore's law active. Dennard scaling reached its limits in
42005 and this has resulted in a rethink of the way general-purpose
5processors are built: frequencies have remained stagnant
6over the last 5 years with the capability to boost a core's frequency
7only if other cores on the chip are shut off. Chip makers strive to
8achieve energy efficient computing by operating at more optimal core
9frequencies and aim to increase performance with a larger number of
10cores. Unfortunately, given the limited levels of parallelism that can
11be found in applications~\cite{blake-isca-2010}, it is not certain how
12many cores can be productively used in scaling our
13chips~\cite{esmaeilzadeh-isca-2011}. This is because exploiting
14parallelism across multiple cores tends to require heavy weight
15threads that are difficult to manage and synchronize.
17The desire to improve the overall efficiency of computing is pushing
18designers to explore customized hardware~\cite{venkatesh-asplos-2010,
19  hameed-isca-2010} that accelerate specific parts of an application
20while reducing the overheads present in general-purpose
21processors. They seek to exploit the transistor bounty to provision
22many different accelerators and keep only the accelerators needed for
23an application active while switching off others on the chip to save
24power consumption. While promising, given the fast evolution of
25languages and software, its hard to define a set of fixed-function
26hardware for commodity processors. Furthermore, the toolchain to
27create such customized hardware is itself a hard research
28challenge. We believe that software, applications, and runtime models
29themselves can be refactored to significantly improve the overall
30computing efficiency of commodity processors.
32In this paper we tackle the infamous ``thirteenth dwarf''
33(parsers/finite state machines) that is considered to be the hardest
34application class to parallelize~\cite{Asanovic:EECS-2006-183}. We
35present Parabix, a novel execution framework and software run-time
36environment that can be used to dramatically improve the efficiency of
37text processing and parsing on commodity processors.  Parabix
38transposes byte-oriented character data into parallel bit streams and
39then exploits the SIMD extensions on commodity processors (SSE/AVX on
40x86, Neon on ARM) to process hundreds of character positions in an
41input stream simultaneously. To transform character-oriented data into
42bit streams Parabix exploits sophisticated SIMD instructions that
43enable data elements to be packed into registers. This improves the
44overall cache behavior of the application resulting in significantly
45fewer misses and better utilization.  Parabix also dramatically
46reduces branches in the parsing routines resulting in a more efficient
47pipeline and substantially improves register utilization which
48minimizes energy wasted on data transfers.
50We apply Parabix technology to the problem of XML parsing.  XML is a
51standard of the web consortium that provides a common framework for
52encoding and communicating data.  XML provides critical data storage
53for applications ranging from Office Open XML in Microsoft Office to
54NDFD XML of the NOAA National Weather Service, from KML in Google
55Earth to Castor XML in the Martian Rovers.  XML parsing efficiency is
56important for multiple application areas; in server workloads the key
57focus in on overall transactions per second, while in applications in
58network switches and cell phones, latency and energy are of paramount
59importance.  Conventional software-based XML parsers have many
60inefficiencies including considerable branch misprediction penalties
61due to complex input-dependent branching structures as well as poor
62use of caches and memory bandwidth due to byte-at-a-time
63processing.  XML ASIC chips have been around since early 2003, but typically lag behind CPUs in technology due to
64cost constraints~\cite{xmlchip}. They also focus mainly on speeding up the parser
65computation itself and are limited by the poor memory behavior
66Our focus is how much we can improve performance of
67the XML parser on commodity processors with Parabix technology.
76\caption{XML Parser Technology Energy vs. Performance}
82Figure~\ref{perf-energy} showcases the overall efficiency of our
83framework. The Parabix-XML parser improves the
84performance %by ?$\times$
85and energy efficiency %by ?$\times$
86several-fold compared
87to widely-used software parsers, approaching the
89performance of ASIC XML
91\footnote{The actual energy consumption of the XML
92  ASIC chips is not published by the companies.}
94Overall we make the following contributions in this paper.
961) We outline the Parabix architecture, tool chain and run-time
97environment and describe how it may be used to produce efficient
98XML parser implementations on a variety of commodity processors.
99While studied in the context of XML parsing, the Parabix framework
100can be widely applied to many problems in text processing and
1032) We compare Parabix XML parsers against conventional parsers and
104assess the improvement in overall performance and energy efficiency on
105each platform.  We are the first to compare and contrast SSE/AVX
106extensions across multiple generation of Intel processors and show
107that there are performance challenges when using newer generation SIMD
108extensions. We compare the ARM Neon extensions against the x86 SIMD
109extensions and comment on the latency of SIMD operations across these
1123) Finally, building on the SIMD parallelism of Parabix technology,
113we multithread the Parabix XML parser to to enable the different
114stages in the parser to exploit SIMD units across all the cores.
115This further improves performance while maintaining the energy consumption
116constant with the sequential version.
119The remainder of this paper is organized as follows.
120Section~\ref{section:background} presents background material on XML
121parsing and provides insight into the inefficiency of traditional
122parsers on mainstream processors.  Section~\ref{section:parabix}
123describes the Parabix architecture, tool chain and run-time
124environment.  Section~\ref{section:parser} describes the application
125of the Parabix framework to the construction of an XML parser
126enforcing all the well-formedness rules of the XML specification.
127Section~\ref{section:baseline} presents a detailed performance
128analysis of Parabix on a \CITHREE\ system using hardware performance
129counters and compares it against conventional parsers.
130Section~\ref{section:scalability} compares the performance and energy
131efficiency of 128 bit SIMD extensions across three generations of
132Intel processors and includes a comparison with the ARM Cortex-A8
133processor.  Section~\ref{section:avx} examines the Intel's new 256-bit
134AVX technology and comments on the benefits and challenges compared to
135the 128-bit SSE instructions.  Finally,
136Section~\ref{section:multithread} looks at the multithreading of the
137Parabix XML parser which seeks to exploit the SIMD units scattered
138across multiple cores.
145%One area in which both servers and mobile devices devote considerable
146%computational effort into is in the processing of Extensible Markup
147%Language (XML) documents.  It was predicted that corporate servers
148%would see a ``growth in XML traffic\ldots from 15\% [of overall
149%network traffic] in 2004 to just under 48\% by 2008''
150%\cite{coyle2005}.  Further, ``from the point of view of server
151%efficiency[,] XML\ldots is the closest thing there is to a ubiquitous
152%computing workload'' \cite{leventhal2009}.  In other words, XML is the
153%quickly becoming the backbone of most server/server and client/server
154%%information exchanges.  Similarly, there is growing interest in the
155%use of mobile web services for personalization, context-awareness, and
156%content-adaptation of mobile web sites---most of which rely on XML
157%\cite{canali2009}.  Whether the end user realizes it or not, XML is
158%part of their daily life.
160%Why are XML parsers important ?
161%Talk about XML parsers and what they do in general.
162%Brief few lines about byte-at-time ?
163%What's new with Parabix style approach ?
164%Introduce Parabix1 and Parabix2 ?
165%Present overall quantiative improvements compared to other parsers.
Note: See TracBrowser for help on using the repository browser.