Results 1 to 3 of 3

Thread: Turn OFF swap partition usage

  1. #1
    Join Date
    2013-Aug
    Location
    lost in space
    Posts
    580

    Turn OFF swap partition usage

    I have 8Gb of ram, and I believe that it is enough to write temporary data without writing on HDD. How do I instruct Kali to:

    1. not use the swap partition?

    2. use swap only when the rams are full?

    Sorry in advance if it is already the way Kali's mechanics operate (only use rams, and then use the swap partition as the last resort), but I have no way to know that it is the case.
    Kali Linux USB Installation using LinuxLive USB Creator
    Howto Install HDD Kali on a USB Key
    Clean your laptop fan | basic knowledge

  2. #2
    Name Taken Guest
    Code:
    swapoff -a
    Code:
    cat /proc/sys/vm/swappiness
    Code:
    echo "vm.swappiness=0" >> /etc/sysctl.conf

  3. #3
    Join Date
    2013-Aug
    Location
    lost in space
    Posts
    580
    that worked like a magic trick.

    Thank you!
    Kali Linux USB Installation using LinuxLive USB Creator
    Howto Install HDD Kali on a USB Key
    Clean your laptop fan | basic knowledge

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •