Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Characterizing the Energy Efficiency of Java’s ...

Characterizing the Energy Efficiency of Java’s Thread-Safe Collections in a Multi-Core Environment

Gustavo Pinto

January 15, 2018
Tweet

More Decks by Gustavo Pinto

Other Decks in Research

Transcript

  1. Motivation (1/3) • First, energy consumption is a concern for

    unwired devices and also for data centers • Second, there is a large body of work in hardware/architecture, OS, runtime systems • However, little is known about the application level 2
  2. Motivation (2/3) 3 • First, multicore CPUs are ubiquitous •

    Second, more cores used more power consumed • However, little is known about the energy-efficiency of multicore programs
  3. 20 • ArrayList • LinkedList • …. • Vector •

    Collections.synchronizedList() • CopyOnWriteArrayList • …. List<Object> lists = …;
  4. Research Questions 23 • RQ1: Do different implementations of the

    same collection have different impacts on energy consumption? • RQ2: Do different operations in the same implementation of a collection consume energy differently?
  5. 24 List Set Map ArrayList LinkedHashSet LinkedHashMap Vector ——— Hashtable

    Collections.syncList() Collections.syncSet() Collections.syncMap() CopyOnWriteArrayList CopyOnWriteArraySet ——— ——— ConcurrentSkipListSet ConcurrentSkipListMap ——— ConcurrentHashSet ConcurrentHashMap ——— ConcurrentHashSetV8 ConcurrentHashMapV8 16 Benchmarks
  6. 25 List Set Map ArrayList LinkedHashSet LinkedHashMap Vector ——— Hashtable

    Collections.syncList() Collections.syncSet() Collections.syncMap() CopyOnWriteArrayList CopyOnWriteArraySet ——— ——— ConcurrentSkipListSet ConcurrentSkipListMap ——— ConcurrentHashSet ConcurrentHashMap ——— ConcurrentHashSetV8 ConcurrentHashMapV8 16 Benchmarks Not-thread safe Thread safe
  7. 26 List Set Map ArrayList LinkedHashSet LinkedHashMap Vector ——— Hashtable

    Collections.syncList() Collections.syncSet() Collections.syncMap() CopyOnWriteArrayList CopyOnWriteArraySet ——— ——— ConcurrentSkipListSet ConcurrentSkipListMap ——— ConcurrentHashSet ConcurrentHashMap ——— ConcurrentHashSetV8 ConcurrentHashMapV8 16 Benchmarks x 3 Operations Traversal Insertion Removal
  8. 27 Experimental Environment A 2×16-core AMD CPUs, running Debian Linux,

    64GB of memory, JDK version 1.7.0 11, build 21.
  9. 28 Experimental Environment A 2×16-core AMD CPUs, running Debian Linux,

    64GB of memory, JDK version 1.7.0 11, build 21.
  10. 29 Experimental Environment A 2×16-core AMD CPUs, running Debian Linux,

    64GB of memory, JDK version 1.7.0 11, build 21.
  11. 30 Experimental Environment A 2×16-core AMD CPUs, running Debian Linux,

    64GB of DDR3 1600 memory, and JDK version 1.7.0 11, build 21.
  12. 46

  13. Future Work 47 • Perform the “removal” operations on Lists

    • Vary the number of threads accessing the data structure • Perform the experiments in another machine