<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>A Study on Query Energy Consumption in Web Search Engines</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Matteo Catena</string-name>
          <email>matteo.catena@gssi.infn.it</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Nicola Tonellotto</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Gran Sasso Science Institute</institution>
          ,
          <addr-line>INFN Viale F.Crispi 7, 67100 L'Aquila</addr-line>
          ,
          <country country="IT">Italy</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>National Research Council of Italy</institution>
          ,
          <addr-line>Via G. Moruzzi 1, 56124 Pisa</addr-line>
          ,
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Commercial web search engines are usually deployed on data centers, which leverage thousands of servers to e ciently answer queries on a large scale. Thanks to these distributed infrastructures, search engines can quickly serve high query volumes. However, the energy consumed by these many servers poses economical and environmental challenges for the Web search engine companies. To tackle such challenges, we advocate the importance of quantifying the energy consumption of a search engine. Therefore, in this study we experimentally analyze energy consumption on a per query basis. Our aim is to evaluate how much energy is consumed by a search server to answer a single query, i.e, its query energy consumption. To perform such measurements, experiments are conducted using the TREC ClueWeb09 collection and the MSN 2006 query log. Results suggest that solving queries require an amount of energy directly proportional to the query processing time.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        Web search engines are today a fundamental part of the Web due to its enormous
size. In fact, many users will turn to a search engine to look for the information
they need, producing billions of searches every day. Without such a service, the
users would have to personally skim through tons of web pages to nd what they
want. Sur ng the Web would be a far less pleasant activity. In spite of the Web
hugeness, users are not willing to wait long for queries to be served [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
      </p>
      <p>
        In order to satisfy their users, commercial engines continuously crawl and
index large amount of web pages, which are promptly retrieved in response to
users' queries. To do so, Web search companies { e.g., Google, Yahoo!, Microsoft,
Yandex, Baidu, etc. { need computer systems with large computational power
and data storage capabilities. Such systems are reported to be composed by
thousands and thousands of computers organized in clusters [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], which can e ciently
handle big quantities of data. These companies started building large data
centers to house such computer clusters. A data center hosts large computer systems
together with the associated infrastructures, such as: telecommunications, power
supplying, thermal cooling, re suppression, etc [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ].
      </p>
      <p>
        While data centers enable large-scale search, they raise environmental and
economical issues. The ICT sector has been reported to be responsible for roughly
2% of global carbon emissions in 2007, with general purpose data centers
accounting for 14% of the ICT footprint [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. Moreover, power and cooling cost for
15,000 commodity servers could exceed 280,000 $/month in 2003 [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ].
      </p>
      <p>
        For such reasons, improving data centers' energy e ciency has become an
attractive and active research area [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. Nevertheless, little literature exists about
energy e ciency in search engines' data centers. Chowdhury is the rst to
explicitly write about Green Information Retrieval and to propose a research agenda
for evaluating and reducing energy consumption in search services [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ].
      </p>
      <p>
        In line with such research agenda, in this work we evaluate the query energy
consumption, i.e., the energy consumed by a search server to solve a single query.
Such information is important, since energy is costly and commercial Web search
engines have to solve each query within a certain monetary budget. Indeed,
a search engine should spend between 0.5 cent/query and 2 cent/query to be
pro table, including both capital and operational expenditures in this budget [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ].
Moreover, recent works try to reduce search engines expense and carbon footprint
by taking into direct account their energy consumption. Energy cost has been
recently considered for devising energy-saving caching mechanism [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] and to
dynamically shift query workloads between multiple, geographically distant, data
centers [
        <xref ref-type="bibr" rid="ref10 ref9">9, 10</xref>
        ]. Then, precise measurements of query energy consumptions would
be bene cial for such approaches.
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>Experimental Setup &amp; Analysis</title>
      <p>
        Experiments are conducted using the Terrier IR platform [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] on a dedicated
Ubuntu 14.04 server; Linux kernel version is 3.13.0-45-generic. The machine is
equipped with an 8-core Intel i7-4770K processor and 32GB RAM. To represent
the rst tier of a Web search engine, we index the ClueWeb09 (Cat. B)
document collection. The Porter stemmer is applied to every term and stopwords
are removed. Document identi ers and term frequencies are compressed with
Elias-Fano encoding [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]. Finally, the inverted index is kept in main memory.
      </p>
      <sec id="sec-2-1">
        <title>Query terms</title>
        <p>Frequency
1
316
2
329
3
206
4
79
5
46
6+
24</p>
        <p>
          We select 1000 unique queries from the MSN 2006 query log. These queries
are processed sequentially by a single thread, using BM25 to retrieve the top
1000 documents with WAND [
          <xref ref-type="bibr" rid="ref13">13</xref>
          ]. Results are nor stored neither sent over the
network, to avoid energy demanding I/O interactions. Moreover, the operating
system binds the processing thread on a single core. In this way, only a core is
operative while the remaining ones may enter the energy-saving inactive states.
Query statistics are reported in Table 1 and Table 2.
        </p>
        <p>A Study on Query Energy Consumption in Web Search Engines</p>
        <p>For each query, we measure the power consumed by the server. Power
consumption is measured at the power socket, using an Alciom PowerSpy2 wattmeter1.
From each measurement, we remove the power consumed by the server when idle
( 42 Watts), to consider only its dynamic power consumption. Power
measurements are taken every 20 milliseconds and are used to compute the query energy
consumption. Since some queries take less than 20 milliseconds to be solved,
every query is executed 200 times in a row to perform measurements2. Query
energy consumption is then averaged over the number of executions.</p>
      </sec>
      <sec id="sec-2-2">
        <title>Processing time Min 11.46</title>
        <p>Q1
)s 30
e
l
u
o
(Jy 25
g
r
e
n
de 20
e
m
u
s
on 15
c
n
a
e
m10
5</p>
        <p>Results are shown in Figure 1, which strongly suggest that the energy
consumed for solving a query is linear in its processing time. Indeed, the dynamic
power consumed by the server during the experiment is rather stable: the mean
absorbed power is 27.55 Watts, with standard deviation 1.81 Watts. The shortest
running query requires 0.35 Joules to be solved, while the longest one consumes
38.12 Joules. All in all, the cumulative energy consumption is 3,205.61 Joules.
1 http://www.alciom.com/en/products/powerspy2-en-gb-2.html
2 CPU caching e ects are not taken into account and left for future work.</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Conclusions</title>
      <p>
        In this work, we present an experimental setting to measure the energy
consumed by a search server to answer a single query, in line with the research
agenda proposed in [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. The experiments results show the query energy
consumption to be linear in the query processing time. This indicates that short
response times are important for reducing the carbon footprint of search
engines. Indeed, low latencies are necessary not only to achieve user satisfaction,
but also to tackle the economical and environmental challenges posed by large
data centers. Finally, being able to measure the energy consumption of a single
query is important, as recent approaches are taking into direct account the search
engine power consumption to achieve energy and money savings [8{10].
Therefore, future work should also measure the energy consumed by di erent query
processing stages, i.e., query expansion/reformulation, posting list processing,
machine-learned document reordering, snippets generation, etc.
      </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Schurman</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Brutlag</surname>
          </string-name>
          , J.:
          <article-title>Performance related changes and their user impact</article-title>
          .
          <source>In: Proc. Velocity</source>
          ,
          <string-name>
            <given-names>O</given-names>
            <surname>'Reilly</surname>
          </string-name>
          (
          <year>2009</year>
          ) 1{
          <fpage>1</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Barroso</surname>
            ,
            <given-names>L.A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dean</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          , Holzle, U.:
          <article-title>Web Search for a Planet: The Google Cluster Architecture</article-title>
          .
          <source>IEEE Micro 23(2)</source>
          (
          <year>2003</year>
          )
          <volume>22</volume>
          {
          <fpage>28</fpage>
          IEEE.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Hoelzle</surname>
            ,
            <given-names>U.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Barroso</surname>
            ,
            <given-names>L.A.</given-names>
          </string-name>
          :
          <article-title>The Datacenter As a Computer: An Introduction to the Design of Warehouse-Scale Machines</article-title>
          . Morgan&amp;Claypool Publishers (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4. The Climate Group for GeSI:
          <article-title>Smart 2020: Enabling the low carbon economy in the information age</article-title>
          . http://goo.gl/4I3vun, Visited:
          <fpage>2014</fpage>
          -08-14
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Orgerie</surname>
            ,
            <given-names>A.C.</given-names>
          </string-name>
          , de Assunca~o,
          <string-name>
            <given-names>M.D.</given-names>
            ,
            <surname>Lefevre</surname>
          </string-name>
          ,
          <string-name>
            <surname>L.</surname>
          </string-name>
          :
          <article-title>A survey on techniques for improving the energy e ciency of large-scale distributed systems</article-title>
          .
          <source>ACM Computing Surveys</source>
          <volume>46</volume>
          (
          <issue>4</issue>
          ) (
          <year>2013</year>
          )
          <volume>1</volume>
          {
          <fpage>35</fpage>
          ACM.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Chowdhury</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          :
          <article-title>An agenda for green information retrieval research</article-title>
          .
          <source>Information Processing &amp; Management</source>
          <volume>48</volume>
          (
          <issue>6</issue>
          ) (
          <year>2012</year>
          )
          <volume>1067</volume>
          {1077 Pergamon Press, Inc.
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Suel</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          :
          <article-title>Query optimization in search engines: State of the art and open problems</article-title>
          . In: Invited talk at LSDS-IR. (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Sazoglu</surname>
            ,
            <given-names>F.B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cambazoglu</surname>
            ,
            <given-names>B.B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ozcan</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Altingovde</surname>
            ,
            <given-names>I.S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ulusoy</surname>
            ,
            <given-names>O.</given-names>
          </string-name>
          :
          <article-title>A Financial Cost Metric for Result Caching</article-title>
          .
          <source>In: Proc. SIGIR</source>
          ,
          <string-name>
            <surname>ACM</surname>
          </string-name>
          (
          <year>2013</year>
          )
          <volume>873</volume>
          {
          <fpage>876</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Kayaaslan</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cambazoglu</surname>
            ,
            <given-names>B.B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Blanco</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Junqueira</surname>
            ,
            <given-names>F.P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Aykanat</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <article-title>Energy-price-driven Query Processing in Multi-center Web Search Engines</article-title>
          .
          <source>In: Proc. SIGIR</source>
          ,
          <string-name>
            <surname>ACM</surname>
          </string-name>
          (
          <year>2011</year>
          )
          <volume>983</volume>
          {
          <fpage>992</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Teymorian</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Frieder</surname>
            ,
            <given-names>O.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Maloof</surname>
            ,
            <given-names>M.A.</given-names>
          </string-name>
          :
          <article-title>Rank-energy Selective Query Forwarding for Distributed Search Systems</article-title>
          .
          <source>In: Proc. CIKM</source>
          ,
          <string-name>
            <surname>ACM</surname>
          </string-name>
          (
          <year>2013</year>
          )
          <volume>389</volume>
          {
          <fpage>398</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Macdonald</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>McCreadie</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Santos</surname>
            ,
            <given-names>R.L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ounis</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          :
          <article-title>From puppy to maturity: Experiences in developing terrier</article-title>
          .
          <source>In: Proc. of OSIR at SIGIR</source>
          , ACM (
          <year>2012</year>
          )
          <volume>60</volume>
          {
          <fpage>63</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Vigna</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          :
          <article-title>Quasi-succinct indices</article-title>
          .
          <source>In: Proc. of WSDM</source>
          , ACM (
          <year>2013</year>
          )
          <volume>83</volume>
          {
          <fpage>92</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Broder</surname>
            ,
            <given-names>A.Z.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Carmel</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Herscovici</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>So</surname>
            <given-names>er</given-names>
          </string-name>
          , A.,
          <string-name>
            <surname>Zien</surname>
            ,
            <given-names>J.:</given-names>
          </string-name>
          <article-title>E cient query evaluation using a two-level retrieval process</article-title>
          .
          <source>In: Proc. of CIKM</source>
          , ACM (
          <year>2003</year>
          )
          <volume>426</volume>
          {
          <fpage>434</fpage>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>