This is a discussion topic for the following Common Issue:
You can discuss the problem and its solutions here, but please note that debugging and technical feedback should primarily go to the issue trackers (e.g. Bugzilla) linked in the Common Issue, because that’s the place that developers watch, not here.
If there are any updates/changes/amendments for the Common Issue description, which you believe should be performed, please post it here.
Recently I notice that Amazon Linux (on EC2) uses DNF 4.x as default package manager, but it doesn’t cause problems on even the smallest EC2 instance with 900-ish MB of RAM. However, DNF 4.x causes OOM on Oracle Linux (on OCI), and more than 2GB of swap is needed for the periodic update to work without hanging the instance.
What might be the difference between these two settings? Did Amazon do some magic to the DNF packaged by them?