Proxmox disable swap unless totally out of RAM

The defautl vm.swappiness value for Proxmox 5.2.x is 60

 

Run this command in Shell in order to reduce swappiness to an absolute necessity when the system is out of RAM.

 sysctl -w vm.swappiness=0

 

https://forum.proxmox.com/threads/disable-swap-on-host.25623/

https://forum.proxmox.com/threads/proxmox-is-using-swap-with-lot-of-ram-available.41994/

Other performance tips

Proxmox OpenVZ SWAP and Performance

 

Boost your Cloud Machine Performance

If you’re looking for a way to boost your cloud instance performance this swapiness tip might just be just the tip you’ve been looking for.

You can find in system monitor that Ubuntu is using swap space although you have plenty of free physical RAM.

The value of swappiness is between 0 ~ 100. Lower value means Linux will use swap space less whereas higher value causes Linux to use swap space more often. The default value on Ubuntu is 60 which means when your computer uses up 40% of physical RAM, Linux kernel begins swapping.

You can use the following command to check the current value.

cat /proc/sys/vm/swappiness

It’s recommended to set a low value for swappiness so that Linux kernel will use as much physical RAM as possible. For example, to set swappiness to 10:

sudo sysctl vm.swappiness=10

Do not add space before and after the equal sign. This command tells Linux kernel to use swap space when 90% or more of physical RAM is used up. This setting isn’t persistent.

To make it persistent across reboots, you need to edit a file.

sudo nano /etc/sysctl.d/99-sysctl.conf

At the end of this file, append the following line.

vm.swappiness=10

 

Credits: https://www.linuxbabe.com/ubuntu/4-tips-speed-up-ubuntu-16-04

 

How to fix slow internet performance

 

Are your videos downloading slowing? Webpages not loading?

If you have already cleared your browser cache and have restarted your computer you might want to try this tip.

 

  1. Unplug all your modem, router. Wait 1 minute.
  2. Replug modem, router.
  3. Plug into good quality power bar for best performance.

How to Remove / Uninstall / Nuke Google Chrome Update on Yosemite OSX

 

 

sudo ~/Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/Contents/Resources/GoogleSoftwareUpdateAgent.app/Contents/Resources/ksinstall --nuke

sudo ~/Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/Contents/Resources/GoogleSoftwareUpdateAgent.app/Contents/Resources/ksinstall --uninstall

 

Creds: http://applehelpwriter.com/2014/07/13/how-to-remove-googles-secret-update-software-from-your-mac/

Galera slow node performance

 

 

Is it true that MySQL Galera is as slow as the slowest node?

 

Yes it is. Galera relies on group communication between nodes. For any matters, it will wait for all nodes to return the status of certification test before proceed with committing or rollbacking. At this phase, an overloaded node will surely facing a hard time to reply within the time manner, delaying the rest of the cluster to wait for it. Therefore it is recommended to have uniform servers across the cluster. Also, transaction latency is no shorter than the RTT (round trip time) to the slowest node.

 

http://www.severalnines.com/clustercontrol-mysql-galera-tutorial-new

Improve MAMP local performance and reduce RAM usage

You might have too many httpd processes running on your system during development.

Screenshot of httpd processes haven taken over the machine.

2015 03 03 03 12 40 PM

 

Objective: Reduce the amount of spare httpd servers that apache will maintain in memory.

Purpose: Since this is for local development purposes it’s not likely that the number of users will exceed 256 clients.

Overview:

These are the internal default configuration for Apache sets its configuration. This section will not exist in your httpd.conf file unless you already created it prior.

<IfModule prefork.c>

StartServers 4
MinSpareServers 3
MaxSpareServers 10
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 10000

</IfModule>

 

Insert/replace the following in httpd.conf – File->Edit Template->Apache->httpd.conf

<IfModule prefork.c>

StartServers       2

MinSpareServers    1

MaxSpareServers   2

ServerLimit      256

MaxClients       256

MaxRequestsPerChild  10000

</IfModule>

 

This will reduce the amount of spare httpd processes in memory and reduce the amounts of threads used by the processor. This will improve your overall system performance, reduce energy and battery usage as well.