Performance issues with swap?

Loren Tedford

New Member
May 30, 2017
3
0
1
38
Olney, IL
lorentedford.com
I think i am having performance issues because swap is enabled.. However it is only using 6% of swap so my question is.. Is their a way to disable swap and test it over a bit of time and if it does nothing replace the swap with out causing issues or crashes on my current version of proxmox..

root@ns510721:~# uname -a
Linux ns510721 4.4.15-1-pve #1 SMP Thu Jul 28 10:54:13 CEST 2016 x86_64 GNU/Linux

root@ns510721:~# dmidecode -t memory
# dmidecode 2.12
SMBIOS 2.7 present.

Handle 0x0026, DMI type 16, 23 bytes
Physical Memory Array
Location: System Board Or Motherboard
Use: System Memory
Error Correction Type: None
Maximum Capacity: 32 GB
Error Information Handle: No Error
Number Of Devices: 4

Handle 0x0029, DMI type 17, 34 bytes
Memory Device
Array Handle: 0x0026
Error Information Handle: No Error
Total Width: 64 bits
Data Width: 64 bits
Size: 8192 MB
Form Factor: DIMM
Set: None
Locator: DIMM3
Bank Locator: CHANNEL A DIMM0
Type: DDR3
Type Detail: Synchronous
Speed: 1600 MHz
Manufacturer: Samsung
Serial Number: 14D4AB17
Asset Tag: A1_AssetTagNum0
Part Number: M378B1G73DB0-CK0
Rank: 2
Configured Clock Speed: Unknown

Handle 0x002C, DMI type 17, 34 bytes
Memory Device
Array Handle: 0x0026
Error Information Handle: No Error
Total Width: 64 bits
Data Width: 64 bits
Size: 8192 MB
Form Factor: DIMM
Set: None
Locator: DIMM1
Bank Locator: CHANNEL A DIMM1
Type: DDR3
Type Detail: Synchronous
Speed: 1600 MHz
Manufacturer: Samsung
Serial Number: 14D4AB16
Asset Tag: A1_AssetTagNum1
Part Number: M378B1G73DB0-CK0
Rank: 2
Configured Clock Speed: Unknown

Handle 0x002F, DMI type 17, 34 bytes
Memory Device
Array Handle: 0x0026
Error Information Handle: No Error
Total Width: 64 bits
Data Width: 64 bits
Size: 8192 MB
Form Factor: DIMM
Set: None
Locator: DIMM4
Bank Locator: CHANNEL B DIMM0
Type: DDR3
Type Detail: Synchronous
Speed: 1600 MHz
Manufacturer: Samsung
Serial Number: 14D4B5AE
Asset Tag: A1_AssetTagNum2
Part Number: M378B1G73DB0-CK0
Rank: 2
Configured Clock Speed: Unknown

Handle 0x0032, DMI type 17, 34 bytes
Memory Device
Array Handle: 0x0026
Error Information Handle: No Error
Total Width: 64 bits
Data Width: 64 bits
Size: 8192 MB
Form Factor: DIMM
Set: None
Locator: DIMM2
Bank Locator: CHANNEL B DIMM1
Type: DDR3
Type Detail: Synchronous
Speed: 1600 MHz
Manufacturer: Samsung
Serial Number: 14D4B33A
Asset Tag: A1_AssetTagNum3
Part Number: M378B1G73DB0-CK0
Rank: 2
Configured Clock Speed: Unknown

root@ns510721:~#


Server information
It has 32 GB of ram..
root@ns510721:~# lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 8
On-line CPU(s) list: 0-7
Thread(s) per core: 2
Core(s) per socket: 4
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 58
Model name: Intel(R) Xeon(R) CPU E3-1245 V2 @ 3.40GHz
Stepping: 9
CPU MHz: 3680.898
CPU max MHz: 3800.0000
CPU min MHz: 1600.0000
BogoMIPS: 6784.29
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 8192K
NUMA node0 CPU(s): 0-7

Proxmox Version information

root@ns510721:~# pveversion --verbose
proxmox-ve: 4.4-79 (running kernel: 4.4.15-1-pve)
pve-manager: 4.4-12 (running version: 4.4-12/e71b7a74)
pve-kernel-4.4.35-2-pve: 4.4.35-79
pve-kernel-4.4.15-1-pve: 4.4.15-60
pve-kernel-4.2.8-1-pve: 4.2.8-41
lvm2: 2.02.116-pve3
corosync-pve: 2.4.2-2~pve4+1
libqb0: 1.0.1-1
pve-cluster: 4.0-49
qemu-server: 4.0-110
pve-firmware: 1.1-11
libpve-common-perl: 4.0-94
libpve-access-control: 4.0-23
libpve-storage-perl: 4.0-76
pve-libspice-server1: 0.12.8-2
vncterm: 1.3-2
pve-docs: 4.4-4
pve-qemu-kvm: 2.7.1-4
pve-container: 1.0-97
pve-firewall: 2.0-33
pve-ha-manager: 1.0-40
ksm-control-daemon: 1.2-1
glusterfs-client: 3.5.2-2+deb8u3
lxc-pve: 2.0.7-4
lxcfs: 2.0.6-pve1
criu: 1.6.0-1
novnc-pve: 0.5-9
smartmontools: 6.5+svn4324-1~pve80
zfsutils: 0.6.5.9-pve15~bpo80
 
Hi,

if you have to swap it will always slow you down.
Swapping is a procedure to keep your processes alive.
The alternative would be to kill the process if you ran out of memory.

You can turn swap off with
swapoff [options] [<spec>]

also you can set the swappiness
see
https://pve.proxmox.com/wiki/ZFS_on_Linux#_limit_zfs_memory_usage
 
  • Like
Reactions: Loren Tedford
Proxmox Version information

root@ns510721:~# pveversion --verbose
proxmox-ve: 4.4-79 (running kernel: 4.4.15-1-pve)
pve-manager: 4.4-12 (running version: 4.4-12/e71b7a74)
pve-kernel-4.4.35-2-pve: 4.4.35-79
pve-kernel-4.4.15-1-pve: 4.4.15-60
pve-kernel-4.2.8-1-pve: 4.2.8-41
Hi,
has nothing to do with swap, but your kernel are outdated.
I'm wonder, that proxmox-ve is not so old - do you use "apt dist-upgrade"? which should be used instead of "apt upgrade".

Udo
 
  • Like
Reactions: Loren Tedford
Hi,
has nothing to do with swap, but your kernel are outdated.
I'm wonder, that proxmox-ve is not so old - do you use "apt dist-upgrade"? which should be used instead of "apt upgrade".

Udo
I ran apt dist-upgrade and now using the listed kernel below.. I also transferred to another server that had more ram in hopes that I don't have to use swap.. Was just a thought.. Keep in mind i do not have an Enterprise license I am doing this just for fun to host my little web server and learning experience more less.


By the way i keep getting an error when i try to post getting really annoying..
It says i am not allowed to post any external links or some thing.. Crazy.. I even tried to submit a screen shot and it still made me mad..

Here is the info I have now..


root@ns543457:~# uname -a
Linux ns543457 4.4.67-1-pve #1 SMP PVE 4.4.67-89 (Thu, 8 Jun 2017 15:12:11 +0200) x86_64 GNU/Linux
root@ns543457:~# pveversion --verbose
proxmox-ve: 4.4-89 (running kernel: 4.4.67-1-pve)
pve-manager: 4.4-13 (running version: 4.4-13/7ea56165)
pve-kernel-4.4.44-1-pve: 4.4.44-84
pve-kernel-4.4.67-1-pve: 4.4.67-89
lvm2: 2.02.116-pve3
corosync-pve: 2.4.2-2~pve4+1
libqb0: 1.0.1-1
pve-cluster: 4.0-52
qemu-server: 4.0-110
pve-firmware: 1.1-11
libpve-common-perl: 4.0-95
libpve-access-control: 4.0-23
libpve-storage-perl: 4.0-76
pve-libspice-server1: 0.12.8-2
vncterm: 1.3-2
pve-docs: 4.4-4
pve-qemu-kvm: 2.7.1-4
pve-container: 1.0-100
pve-firewall: 2.0-33
pve-ha-manager: 1.0-41
ksm-control-daemon: 1.2-1
glusterfs-client: 3.5.2-2+deb8u3
lxc-pve: 2.0.7-4
lxcfs: 2.0.6-pve1
criu: 1.6.0-1
novnc-pve: 0.5-9
smartmontools: 6.5+svn4324-1~pve80
 
Hi,

if you have to swap it will always slow you down.
Swapping is a procedure to keep your processes alive.
The alternative would be to kill the process if you ran out of memory.

You can turn swap off with
swapoff [options] [<spec>]

also you can set the swappiness
see
https://pve.proxmox.com/wiki/ZFS_on_Linux#_limit_zfs_memory_usage

Thank you so much this information is very helpful!! By the way can you fix my account so i can post correct information when needed having an issue with the forum for some reason..