Linux.com

Home Learn Linux Linux Answers Systems Management Swap utilization going over
Answers
  • 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
    3 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
    3 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
    3 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.

    Regards

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

Upcoming Linux Foundation Courses

  1. LFD211 Introduction to Linux for Developers
    08 Dec » 09 Dec - Virtual
    Details
  2. LFS220 Linux System Administration
    08 Dec » 11 Dec - Virtual
    Details
  3. LFD331 Developing Linux Device Drivers
    15 Dec » 19 Dec - Virtual
    Details

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

Join / Linux Training / Board