Skip to content

Commit

Permalink
Making tsc the clock source (#272)
Browse files Browse the repository at this point in the history
* #249 Making tsc the clock source

* Applying changes from review.
  • Loading branch information
Jason Swindle authored and micahhausler committed May 30, 2019
1 parent eccfa3a commit 92e33a8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions install-worker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ sudo yum install -y \
unzip \
wget

################################################################################
### Time #######################################################################
################################################################################

# Make sure Amazon Time Sync Service starts on boot.
sudo chkconfig chronyd on

Expand All @@ -73,6 +77,13 @@ cat <<EOF | sudo tee -a /etc/chrony.conf
rtcsync
EOF

# Make tsc the clock source
if grep --quiet tsc /sys/devices/system/clocksource/clocksource0/available_clocksource; then
echo "tsc" | sudo tee /sys/devices/system/clocksource/clocksource0/current_clocksource
else
echo "tsc as a clock source is not applicable, skipping."
fi

################################################################################
### iptables ###################################################################
################################################################################
Expand Down

0 comments on commit 92e33a8

Please sign in to comment.