To apply the new env vars, log out of the server and back in, or type the following:
su - ${USER}
Check whether go is installed properly or not
go version
Configure performance
Enable jumbo frames with mtu set to 9000 on capable interfaces
Disable hyperthreading on BIOS settings or only temporary:
Disable power management states of CPU
Set CPU Governor to performance
Check:
Stop Ubuntu iscsi services
iscsd process uses configfs which is normally mounted at /sys/kernel/config to store discovered targets information, on centos/rhel type of systems this special file system gets mounted automatically, which is not the case on debian/ubuntu. Since iscsid container runs on every nova compute node, the following steps must be completed on every Ubuntu server targeted for nova compute role.
Stop open-iscsi system service due to its conflicts with iscsid container.
Make sure configfs gets mounted during a server boot up process. There are multiple ways to accomplish it, one example:
Start PTP Daemons
Linux PTP is an implementation of Precision Time Protocol (PTP). On Ubuntu, LinuxPTP can be downloaded as installed as follows:
This will install two tools-- ptp4l and phc2sys.
To install ptp4l as a system service, edit '/usr/lib/systemd/system/ptp4l.service' as shown below:
$OPTIONS is located at the following path at '/etc/sysconfig/ptp4l' with the following:
The above method can be used to configure linuxptp as PTP slaves with multicast. In order to enable unicast for PTP slaves the following procedure should be followed.
The steps to install ptp4l as a system service are the same as above.
$OPTIONS is located at the following path at '/etc/sysconfig/ptp4l' with the following:
The content for /etc/ptp4l.cfg are
To start and stop the ptp4l service use:
To enable pt4l to run after every reboot enable it using systemctl:
Similarly, to install phc2sys as a system service, edit '/usr/lib/systemd/system/phc2sys.service' as shown below:
$OPTIONS is located at the following path at '/etc/sysconfig/phc2sys' with the following:
To start and stop the phc2sys service:
To enable phc2sys to run after every reboot enable it using systemctl:
Finally, make sure NTP is not active on the machine.
sudo apt install cpufrequtils
for cpu in $(seq 0 $(($(nproc) -1))) ; do sudo cpufreq-set -c $cpu -g performance ; done
sudo cpufreq-info
...
analyzing CPU 31:
driver: intel_pstate
CPUs which run at the same hardware frequency: 31
CPUs which need to have their frequency coordinated by software: 31
maximum transition latency: 4294.55 ms.
hardware limits: 800 MHz - 3.40 GHz
available cpufreq governors: performance, powersave
current policy: frequency should be within 800 MHz and 3.40 GHz.
The governor "performance" may decide which speed to use
within this range.
current CPU frequency is 2.90 GHz.
$ mount -t configfs /etc/rc.local /sys/kernel/config
wget https://deac-fra.dl.sourceforge.net/project/linuxptp/v3.1/linuxptp-3.1.1.tgz
tar xvf linuxptp-3.1.1.tgz
cd linuxptp-3.1.1/
make
sudo make install
sudo cp ptp4l phc2sys /usr/sbin/
[Unit]
Description=Precision Time Protocol (PTP) service
Documentation=man:ptp4l
[Service]
Type=simple
EnvironmentFile=-/etc/sysconfig/ptp4l
ExecStart=/usr/sbin/ptp4l $OPTIONS
[Install]
WantedBy=multi-user.target