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 Disable Personalized Ads in Copilot on Windows 11
  • What is the Microsoft Teams Error “We Couldn’t Connect the Call” Error?
  • Why Does the VirtualBox System Service Terminate Unexpectedly? Here is the Full Definition
  • Why is Your Laptop Touchpad Overheating? Here are the Causes and Fixes
  • How to Disable All AI Features in Chrome Using Windows 11 Registry
  • How to Avoid Problematic Windows Updates: A Guide to System Stability
  • What is Microsoft Visual C++ Redistributable and How to Fix Common Errors?
  • What is the 99% Deletion Bug? Understanding and Fixing Windows 11 File Errors
  • How to Add a Password to WhatsApp for Extra Security
  • How to Recover Lost Windows Passwords with a Decryptor Tool
  • How to Fix Python Not Working in VS Code Terminal: A Troubleshooting Guide
  • Game File Verification Stuck at 0% or 99%: What is it and How to Fix the Progress Bar?
  • Why Does PowerPoint Underline Hyperlinks? Here is How to Remove Them
  • AI Bug Hunting with Semgrep
  • What is the Excel Power Query 0xc000026f Error?
  • How to Build Your Own Homelab AI Supercomputer 2026
  • How to Enable SSH in Oracle VirtualBox for Beginners
  • How to Intercept Secret IoT Camera Traffic
  • Build Ultra-Fast and Tiny Desktop Apps with Electrobun: A Beginner’s Guide
  • The Ultimate 2026 Coding Roadmap: How to Master Software Engineering with AI Agents
  • How to Master Cloud Infrastructure with Ansible and Terraform
  • How to Fix VirtualBox Stuck on Saving State: A Complete Guide
  • How to Run Windows Apps on Linux: A Complete Guide to WinBoat, WINE, and Beyond
  • Build Your Own AI Development Team: Deploying OpenClaw and Claude Code on a VPS!
  • How to Measure Real Success in the Age of AI: A Guide to Software Metrics That Actually Matter
  • Inilah Rahasia Perbaiki Algoritma Video YouTube yang Mulai Sepi
  • Kenapa Cicilan di Bank Syariah Itu Tetap?
  • Inilah 7 Produk Digital Paling Realistis untuk Kalian yang Mau Jualan Online Tahun Ini!
  • Inilah 4 Strategi Memilih Niche SEO Terbaik Supaya Blog Kalian Cepat Ranking
  • Ini Trik Supaya Pengunjung Toko Online Kalian Jadi Pembeli Setia Pakai Omnisend!
  • How to Use Orbax Checkpointing with Keras and JAX for Robust Training
  • How to Automate Any PDF Form Using the Power of Manus AI
  • How to Training Your Own YOLO26 Object Detection Model!
  • How to Build a Full-Stack Mobile App in Minutes with YouWare AI
  • How to Create Consistent Characters and Cinematic AI Video Production with Seedance
  • 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