# Presto Experiment with Graviton Processor

DevFeed: [Presto Experiment with Graviton Processor](<https://devfeed.tech/articles/presto-experiment-with-graviton-processor-8630.md>)

Original publisher: [Read original article](<https://trino.io/blog/2019/12/23/Presto-Experiment-with-Graivton-Processor.html>)

Author: Kai Sasaki, Arm Treasure Data

Published: 2019-12-23T00:00:00Z

Content type: tutorial

Language: en

Sources: [Trino](<https://devfeed.tech/sources/trino-blog.md>)

Topics: [presto](<https://devfeed.tech/topics/presto.md>), [Graviton](<https://devfeed.tech/topics/graviton.md>), [Benchmark](<https://devfeed.tech/topics/benchmark.md>)

Tags: [2](<https://devfeed.tech/tags/2.md>), [about](<https://devfeed.tech/tags/about.md>), [accelerate](<https://devfeed.tech/tags/accelerate.md>), [anchor](<https://devfeed.tech/tags/anchor.md>), [application](<https://devfeed.tech/tags/application.md>), [arm](<https://devfeed.tech/tags/arm.md>), [article](<https://devfeed.tech/tags/article.md>), [aws](<https://devfeed.tech/tags/aws.md>), [based](<https://devfeed.tech/tags/based.md>), [benefit](<https://devfeed.tech/tags/benefit.md>), [but](<https://devfeed.tech/tags/but.md>), [can](<https://devfeed.tech/tags/can.md>), [cost](<https://devfeed.tech/tags/cost.md>), [development](<https://devfeed.tech/tags/development.md>), [effective](<https://devfeed.tech/tags/effective.md>), [experiment](<https://devfeed.tech/tags/experiment.md>), [graviton](<https://devfeed.tech/tags/graviton.md>), [presto](<https://devfeed.tech/tags/presto.md>), [processor](<https://devfeed.tech/tags/processor.md>), [with](<https://devfeed.tech/tags/with.md>)

## AI overview

Presto ran on Arm after a small change: the experiment removed the architecture check in `PrestoSystemRequirements` to allow `aarch64`. The article says most cases should work without application-code changes, but the Hive connector may fail because its native code was unavailable for Arm. Building Arm Docker images required `buildx` and a separate Arm OpenJDK image; on A1, the authors installed `docker-compose` with pip. With OpenJDK 11, they also enabled the Attach API using `-Djdk.attach.allowAttachSelf=true`. In TPCH tests on one instance, c5.4xlarge was fastest and most stable. A1.4xlarge was competitive with m5.2xlarge, especially on the smaller dataset, and cost 40% less than c5.4xlarge. OpenJDK 11 generally performed best across JVMs tested, while Corretto 11 was faster in some sf1 cases. The authors caution that results depend on workload and recommend careful production benchmarking; the tests used the first-generation Graviton A1, not Graviton2.

## Source excerpt

This December, AWS announced new instance types powered by Arm-based AWS Graviton2 Processor. M6g, C6g, and R6g are designed to deliver up to 40% improved price/performance compared with the current generation instance types. We can achieve cost-effectiveness by using these instance type series. Presto is just a Java application, so that we should be able to run the workload with this type of cost-effective instance type without any modification. But is it true? Initially, we do not have a clear answer to how much effort we need to bring Presto into the world of the different processors. No care about the underlying platform is generally beneficial for development. But if using different processors enables us to accelerate the performance and stability of Presto, we must care about it. We must prove anything unclear by the experiment. This article is the report to clarify what we need to do to run Presto on the Arm-based platform and see how much benefit we can potentially obtain with Graviton Processor. As the Graviton 2 based instance types are preview state, we tried to run Presto on A1 instance that has the first generation of Graviton processor inside. It still would be a helpful anchor to understand the potential benefit of the Graviton 2 processor.