Home Learn Linux Linux Answers Systems Management Swap utilization going over
  • Accepted Answer

    you cannot allocate more memory in your sistem and the kernel will call the OOM killer which tries to kill the latest process or a process with an huge amount of memory allocated (usually the current running one)

    Answered by ben
    4 years ago
    0 0
  • @ Ben : i got one doubt now. Whether kernel remove/kill the recent process or the most unused process in swap ?

    Answered by chekkizhar
    4 years ago
    0 0
  • SWAP partitions are used to support virtual memory. Actually, data takes to swap partition when there is not enough RAM to store it properly specially when system is under process. Generally, it is equal 2x physical RAM for up to 2 GB of physical RAM (specially on Linux distro), but never less than 32 MB.
    Sometimes over utilization makes the system slow and I myself experienced the same problem. I pass the command like: swapoff -a (for over utilization or overcome the slowness) if u make it again pass as: swapon -a
    For more details see man swapoff / swapon
    If u want to see per processor swap utilization then type as :
    ps -ef

    Answered by rechil_colin
    4 years ago
    0 0
  • If you are using swap means your server is running low on resources. And if you are filling up the swap... you desperately need more RAM/SWAP on your system!!!

    dd if=/dev/zero of=/swapfile1 bs=1024 count=524288
    will create you a 512MB file
    mkswap /swapfile1
    swapon /swapfile1

    Will enable that swap for the system :)

    You can of course make bigger or smaller swap files.


    Answered by marc
    4 years ago
    0 2
Similar Questions Found
Questions from category Systems Management

Upcoming Linux Foundation Courses

  1. LFS230 Advanced Linux System Administration and Networking
    14 Dec » 17 Dec - Virtual
  2. LFS220 Linux System Administration
    14 Dec » 17 Dec - N. Reading + Virtual
  3. LFD405 Embedded Linux Development with Yocto Project
    14 Dec » 17 Dec - San Jose

View All Upcoming Courses

Community Answers - Search

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Linux Training / Board