Add GCC atomic support (-moutline-atomics) for arm64 on Focal

Bug #2024019 reported by Salvatore
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nginx (Ubuntu)
New
Undecided
Fabio Augusto Miranda Martins

Bug Description

Hi,
we recorded more than 30% performance regression on Ubuntu Focal for AWS Graviton instances since Nginx package is not compiled with "-moutline-atomics" cflag for arm64 architecture (337548 rps with default package and 484453 rps using the proposed flag).

As far as I know, only Ubuntu 20.04 is affected by it and we are proposing a fix for it (https://code.launchpad.net/~dipietro-salvatore/ubuntu/+source/nginx/+git/nginx/+merge/434825).

Set up to reproduce the issue:

- AWS instance: m6g.metal
- AWS ami: ami-0aa916c7b0be51092

- lsb_release -rd:
Description: Ubuntu 20.04.6 LTS
Release: 20.04

- apt-cache policy nginx:
nginx:
  Installed: (none)
  Candidate: 1.18.0-0ubuntu1.4
  Version table:
     1.18.0-0ubuntu1.4 500
        500 http://us-west-2.ec2.ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 Packages
        500 http://ports.ubuntu.com/ubuntu-ports focal-security/main arm64 Packages
     1.17.10-0ubuntu1 500
        500 http://us-west-2.ec2.ports.ubuntu.com/ubuntu-ports focal/main arm64 Packages

Related branches

Robie Basak (racb)
tags: added: server-todo
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

I talked with Fabio (now subscribed), he will track and ensure this is done together with all the other "enable -moutline-atomics" cases.

tags: removed: server-todo
Changed in nginx (Ubuntu):
assignee: nobody → Fabio Augusto Miranda Martins (fabio.martins)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.