Skip to content

Commit

Permalink
x86: stop punishing VMs with low priority for TSC timecounter
Browse files Browse the repository at this point in the history
I suspect that virtualization techniques improved from the time when we
have to effectively disable TSC use in VM.  For instance, it was reported
(complained) in JuliaLang/julia#38877 that
FreeBSD is groundlessly slow on AWS with some loads.

Remove the check and start watching for complaints.

Reviewed by:	emaste, grehan
Discussed with:	cperciva
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D27629
  • Loading branch information
kostikbel authored and Yamagi committed Apr 9, 2021
1 parent dc554e5 commit db19946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/x86/x86/tsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ test_tsc(int adj_max_count)
uint64_t *data, *tsc;
u_int i, size, adj;

if ((!smp_tsc && !tsc_is_invariant) || vm_guest)
if ((!smp_tsc && !tsc_is_invariant))
return (-100);
size = (mp_maxid + 1) * 3;
data = malloc(sizeof(*data) * size * N, M_TEMP, M_WAITOK);
Expand Down

0 comments on commit db19946

Please sign in to comment.