I need help in truning on swap memory....
I load down my system with apps and then I use Htop along with KSysGuard and they both show no swap memory being used. The swap memory partition is 53gb.
I load down the system to a crawl, meaning a mouse click or typing in an editor it may take 20 to 30 seconds before it responds. I have a quad-core processor and during the time the system is loaded down all 4 processors are doing 99 to 100%,and Swap is at "0", doing nothing!!.
I have checked out:: "Enabling swap on debian based system". At
https://debian-administration.org/ar...n_based_system
problem is, when I run "swapon -s" like it sayse to do, it comes back with "bash: swapon: command not found"!
I'm ruining Debian Stretch 8.5, and 8gb of ram.
My hard drive is 1Tb, divided into three partitions on average of 320Gb, with a Swap partition of 53gb. Over the years I've used several different Swap sizes from 30 to 100Gbs, and I have not been able to tell any performance gains on any of the different sizes that I've used. I always partition Swap to have 3 times my ram and that has worked so far for the last 3 or 4 months, then the slow down crepe in and without me being able to nailing the actual problem(s).
Here's the results of the swapon command:
:~$ swapon -s
Filename Type Size Used Priority
/dev/sda4 partition 55891964 0 -1
fireboy:~$ sudo fdisk -l /dev/sda
Disk /dev/sda: 931.5 GiB, 1000170586112 bytes, 1953458176 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0e059c0d
Copy of my fstab:
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 671991807 671989760 320.4G 83 Linux
/dev/sda2 671991808 1358858239 686866432 327.5G 83 Linux
/dev/sda3 1358858240 1841674239 482816000 230.2G 83 Linux
/dev/sda4 1841674240 1953458175 111783936 53.3G 82 Linux swap / Solaris
fireboy:~$ sudo mkswap /dev/sda4
mkswap: error: /dev/sda4 is mounted; will not make swapspace
fireboy:~$ sudo swapon /dev/sda4
swapon: /dev/sda4: swapon failed: Device or resource busy
fireboy:~$ swapon -s
bash: swapon: command not found
I was unable to find anything in the Man pages (fstab , mount, SWAPON) to shed any light on my problem.
A copy of my /fstab file:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sdb1 during installation
UUID=33b9c933-9485-49c6-924f-3cd4bd869dd0 / ext4 errors=remount-ro 0 1
# swap was on /dev/sdb4 during installation
UUID=06e4796f-e298-408f-83f1-5280fbe88c2f none swap sw 0 0
/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/disk/by-path/pci-0000:00:0b.1-usb-0:10:1.0-scsi-0:0:0:0 /mnt/pci-0000:00:0b.1-usb-0:10:1.0-scsi-0:0:0:0 auto nosuid,nodev,nofail,x-gvfs-show 0 0
Thanks again for letting me post to ask for help!sh