-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use tsc as clocksource for all x86 instances #2144
base: main
Are you sure you want to change the base?
Conversation
@@ -27,15 +27,7 @@ function try-set-clocksource() { | |||
fi | |||
} | |||
|
|||
case "$(imds /latest/meta-data/system)" in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can remove this script and the associated systemd unit altogether. On AL2, we add an arg to the kernel cmdline that makes tsc
the default (if it's available).
We do need to check AL2023, I'm not sure if tsc
is baked-in as the default there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah ok, will look into this
Couldn't find docs on it but anecdotally it seems AL2023 also defaults to Xen as the clocksource for instances with a Xen hypervisor. I've moved the |
a522237
to
c72e3f2
Compare
c72e3f2
to
dfcbe65
Compare
/ci |
trying this again :) /ci |
/ci |
@ndbaker1 the workflow that you requested has completed. 🎉
|
Issue #, if available:
Implements the recommendation by https://repost.aws/knowledge-center/manage-ec2-linux-clock-source to use
tsc
as the clocksource for all Intel/AMD instances.Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Testing Done
See this guide for recommended testing for PRs. Some tests may not apply. Completing tests and providing additional validation steps are not required, but it is recommended and may reduce review time and time to merge.
Tested on
t4g.small
,m6i.large
, andc4.large
instances to confirm clocksource across the 3 different cases.t4g.small
is an arm64 instance and showed the clocksource asarch_sys_counter
m6i.large
is nitro based and showed astsc
.c4.large
is xen and showed astsc
.