From be0897702e77081ce6f1add7b4e98fcfcc020d7e Mon Sep 17 00:00:00 2001 From: howard zhang Date: Fri, 14 May 2021 11:00:36 +0800 Subject: calibrate defaultOverheadCycles for ARM64 Usually ARM counter-timer frequency is range from 1-50Mhz which is much less than that on x86, so we calibrate defaultOverheadCycles for ARM. Signed-off-by: howard zhang --- pkg/sentry/time/sampler.go | 7 ------- 1 file changed, 7 deletions(-) (limited to 'pkg/sentry/time/sampler.go') diff --git a/pkg/sentry/time/sampler.go b/pkg/sentry/time/sampler.go index 4ac9c4474..24a47f5d5 100644 --- a/pkg/sentry/time/sampler.go +++ b/pkg/sentry/time/sampler.go @@ -21,13 +21,6 @@ import ( ) const ( - // defaultOverheadTSC is the default estimated syscall overhead in TSC cycles. - // It is further refined as syscalls are made. - defaultOverheadCycles = 1 * 1000 - - // maxOverheadCycles is the maximum allowed syscall overhead in TSC cycles. - maxOverheadCycles = 100 * defaultOverheadCycles - // maxSampleLoops is the maximum number of times to try to get a clock sample // under the expected overhead. maxSampleLoops = 5 -- cgit v1.2.3