Skip to content
Tutorial emka
Menu
  • Home
  • Debian Linux
  • Ubuntu Linux
  • Red Hat Linux
Menu

Tutorial Cara Memaksimalkan Performa Server Linux dengan Swappiness

Posted on October 30, 2024

Sistem operasi Linux, dikenal dengan fleksibilitasnya dalam mengatur penggunaan memori. Linux menggunakan dua jenis penyimpanan untuk mengelola data: RAM dan swap space. RAM, singkatan dari Random Access Memory, merupakan memori fisik yang langsung diakses oleh CPU. Swap space, di sisi lain, adalah ruang di hard drive yang digunakan ketika RAM penuh.

Untuk mengoptimalkan performa, Anda dapat mengatur nilai swappiness. Nilai swappiness menentukan prioritas penggunaan RAM dan swap space. Nilai swappiness berkisar antara 0 hingga 100, dengan nilai 0 menunjukkan prioritas penuh pada RAM dan 100 menunjukkan prioritas penuh pada swap space.

Jika Anda menginginkan sistem Anda untuk menggunakan swap space hanya ketika RAM hampir penuh, Anda harus mengatur nilai swappiness menjadi 1.

    Buka terminal:

  1. Ketik perintah berikut di terminal untuk mengatur swappiness menjadi 1 secara sementara:

          sudo sysctl vm.swappiness=1
        

  2. Untuk membuat perubahan ini permanen, ikuti langkah-langkah berikut:

      Buka file konfigurasi:/etc/sysctl.conf

            sudo nano /etc/sysctl.conf
          

    • Tambahkan baris berikut ke dalam file, atau modifikasi jika baris tersebut sudah ada:

            vm.swappiness=1
          

    • Simpan perubahan dan keluar dari editor teks.

      Terapkan perubahan:

            sudo sysctl -p
          

    Pengaturan swappiness merupakan salah satu cara untuk memaksimalkan performa sistem Linux dengan menyesuaikan penggunaan RAM dan swap space. Dengan memahami cara kerja swappiness dan mengaturnya dengan tepat, Anda dapat membuat sistem Linux Anda lebih efisien dan responsif. Ingat, pengaturan swappiness yang optimal mungkin berbeda tergantung pada kebutuhan dan konfigurasi sistem Anda.

Recent Posts

  •  How to Fix Windows 11 ISO Download Blocked and Error Messages
  • How to Make Your Website Vibrate with Web Haptics
  • Measuring LLM Bullshit Benchmark
  • A Step-by-Step Guide to ZITADEL Identity Infrastructure
  • How NVIDIA G-SYNC Pulsar is Finally Fixing Motion Blur Forever
  • How Multipathing Keeps Your Linux Systems Running Smoothly!
  • Forgejo: A Self-hosted Github Alternative You Should Try
  • Introducing Zo Computer, How it Will Changing Personal Data Science Forever
  • Which AI Brain Should Your Coding Agent Use? A Deep Dive into the OpenHands Index
  • Hoppscotch, The Postman Killer: Why You Should Switch from Postman to Hoppscotch Right Now
  • Nitrux 6.0 Released with Linux Kernel 6.19: What’s New?
  • How to Upgrade Pop!_OS 22.04 LTS to 24.04 LTS: A Step-by-Step Guide
  • KDE Plasma 6.6.2 Released: Key Bug Fixes and Enhancements Explained
  • Meet the Huawei NetEngine 8000: The Router Powering the Next Generation of AI-Driven Networks!
  • LLM Settings That Every AI Developer Must Know
  • Is Your Second Monitor a Mess? Kubuntu 26.04 Resolute Raccoon Finally Fixes Multi-Display Woes!
  • How to Run Massive AI Models on Your Mac: Unlocking Your Hidden VRAM Secrets
  • How to Create Gemini CLI Agent Skills
  • WTF? Ubuntu Planning Mandatory Age Verification
  • Why This Retro PC is Actually a Modern Beast: Maingear Retro98
  •  Windows 11 Taskbar Update: How to Move and Resize Your Taskbar Again
  • Does KDE Plasma Require Systemd? Debunking the Mandatory Dependency Myths
  •  How to Fix ‘docs.google.com Refused to Connect’ Error in Windows 10/11
  • Aerynos Feb 2026 Update: Faster Desktops and Moss Performance Boost
  • Pangolin 1.16 Adds SSH Auth Daemon: What You Need to Know
  • Belum Tahu Cara Masuk Simpatika Terbaru? Ini Cara Login PTK EMIS GTK IMP 2026 Supaya Cek TPG Jadi Lebih Gampang!
  • Inilah Cara Bikin Konten Animasi AI Cuma Modal HP Supaya Bisa Gajian Rutin dari YouTube
  • Inilah Alasan Kenapa Zakat ke Ormas yang Belum Diakui Negara Nggak Bisa Dipakai Buat Ngurangin Pajak!
  • Inilah Cara Belanja di Indomaret Pakai Shopee PayLater yang Praktis dan Bikin Hemat!
  • Inilah 10 Jurusan Terfavorit di Universitas Negeri Semarang Buat SNBT 2026, Saingannya Ketat Banget!
  • The Secret Reason Seedance 2.0 is Realistic
  • Exploring Microsoft Phi-4 Reasoning Vision 15B
  • Gemini 3.1 Flash-Lite Released: How to Master Google’s Fastest AI Model for Real-World Projects
  • Qwen Is Ruined! Why the Masterminds Behind Qwen 3.5 Left Alibaba Cloud
  • GPT-5.3 Instant Revealed: How the New OpenAI Update Changes Everything for AI Users
  • Apa itu Spear-Phishing via npm? Ini Pengertian dan Cara Kerjanya yang Makin Licin
  • Apa Itu Predator Spyware? Ini Pengertian dan Kontroversi Penghapusan Sanksinya
  • Mengenal Apa itu TONESHELL: Backdoor Berbahaya dari Kelompok Mustang Panda
  • Siapa itu Kelompok Hacker Silver Fox?
  • Apa itu CVE-2025-52691 SmarterMail? Celah Keamanan Paling Berbahaya Tahun 2025
©2026 Tutorial emka | Design: Newspaperly WordPress Theme