---
title: "Optimizing Amazon Linux 2023 for tiny EC2 instances: t3.nano, t3a.nano, or t4g.nano"
url: https://daily.dev/posts/optimizing-amazon-linux-2023-for-tiny-ec2-instances-t3-nano-t3a-nano-or-t4g-nano-dvyysfmmt
source_url: https://cloudonaut.io/optimizing-amazon-linux-2023-for-tiny-ec2-instances/
type: article
source: "cloudonaut"
published: 2025-08-18T17:11:17.131Z
updated: 2025-08-18T17:11:38.905Z
tags: ["aws", "performance", "linux", "aws-ec2"]
reading_time: 2
upvotes: 0
comments: 1
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Optimizing Amazon Linux 2023 for tiny EC2 instances: t3.nano, t3a.nano, or t4g.nano

**[cloudonaut](https://daily.dev/sources/cloudonaut)** · 2 min read · 0 upvotes · 1 comments

## Summary

Amazon Linux 2023 consumes significantly more memory than Amazon Linux 2, causing severe performance issues on tiny EC2 instances with only 512 MB RAM. Two key optimizations can restore performance: disabling tmpfs for /tmp to move temporary files from RAM to disk, and removing zram-based swap in favor of disk-based swap to reduce memory pressure and CPU overhead from compression.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://cloudonaut.io/optimizing-amazon-linux-2023-for-tiny-ec2-instances/>

## Community discussion

Top comments from developers on daily.dev.

**@d\_b** · 0 upvotes

> yeah but, /tmp cannot be disabled at early boot state to take effect you need to do the steps described and then you need to reboot. It's sad that there isn't a method to disable this at early boot and the reason is that its pinned by system with files super early.

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments
- [CNCF Unveils Schedule for KubeCon \+ CloudNativeCon Europe 2026](https://daily.dev/posts/cncf-unveils-schedule-for-kubecon-cloudnativecon-europe-2026-ikhcoa5cb) · CNCF · 2 upvotes · 0 comments
- [CNCF Debuts KubeCon \+ CloudNativeCon Japan 2026 Schedule](https://daily.dev/posts/cncf-debuts-kubecon-cloudnativecon-japan-2026-schedule-xp5pyudub) · CNCF · 1 upvotes · 0 comments

---

Tags: [#aws](https://daily.dev/tags/aws), [#performance](https://daily.dev/tags/performance), [#linux](https://daily.dev/tags/linux), [#aws-ec2](https://daily.dev/tags/aws-ec2)

[View this post on daily.dev](https://daily.dev/posts/optimizing-amazon-linux-2023-for-tiny-ec2-instances-t3-nano-t3a-nano-or-t4g-nano-dvyysfmmt)
