From owner-freebsd-current@freebsd.org Sun Jan 15 02:12:24 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3AF08CA564B for ; Sun, 15 Jan 2017 02:12:24 +0000 (UTC) (envelope-from jiashiun@gmail.com) Received: from mail-qk0-x231.google.com (mail-qk0-x231.google.com [IPv6:2607:f8b0:400d:c09::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EBD2014D0 for ; Sun, 15 Jan 2017 02:12:23 +0000 (UTC) (envelope-from jiashiun@gmail.com) Received: by mail-qk0-x231.google.com with SMTP id s140so90249996qke.0 for ; Sat, 14 Jan 2017 18:12:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=u4nZ8YOWpw8/ILKawqpqOmPH5JKMP0025uM1afP6MIc=; b=bmJY39mScKMNTNW1pUaqLXKezRkfQsIKgxwx/HADgidtLLuZvEwhJskhxPFyV+FVp+ 7LwarHuwd7hd0h5riaW0d/TC9jy4weUJb/3/onEFxbIMU8EcAnNfDmvLMV1l4H6NLpOE +hri6s0dkjuNXaJ1qr0IzDdzaDmYgqaa1I8U3mwqr8uul802ls0QaA25TZw7Zm8qYJLy HuWqzjQGxS4oUG9XtAQwmNrORYVuq3p8P8KUnSSNV+M1CSwninB7FYFyImSxdsrzjnWh BWv50Y+kJaOIWh0vQSoDVpguFAN+HtXZMpwAUCO/C+XAJ9ynURZgyKwqC6UZemKVoQRm Gb9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=u4nZ8YOWpw8/ILKawqpqOmPH5JKMP0025uM1afP6MIc=; b=AoqgR5Eg1hLKII3e/liiYy/uIpuQWD+tgZzs6De4UWZjg6IaeV/JV6pStjEHuJMj/q e3Ed6EircbfUn2tCX3bkQeNV+COlldNIEXYwSU8GoVJmXBRmRxa+NddsPKsm2xMZEjXU 1rJrlPio7gmhpN3ntHX87m4hBVmhtyio/ytfVKMNo9Sp2Xb1X7aQlQ05h/kBd3QKKbzk eIPnPkXAwt+gA3MYTjE0LEbHJjlnfvkPj6uhOGAjFykyoot93K2M5WUSJZN88pjng6/y /sAV2tI3zE0aB6ljexagYSs37V0Q8PFrXlcBU6+da12q+cjvnInvUIG7/LaUqfoj4HNz NaMQ== X-Gm-Message-State: AIkVDXJgpbgcKJicLPXELdSBknWhx5SenuZ1UvZ8lv0o57yypMXPJAvh/sRRywBusWooGYgbpklgaxStd5kqeg== X-Received: by 10.55.4.19 with SMTP id 19mr27795628qke.320.1484446342953; Sat, 14 Jan 2017 18:12:22 -0800 (PST) MIME-Version: 1.0 Received: by 10.140.104.8 with HTTP; Sat, 14 Jan 2017 18:11:52 -0800 (PST) In-Reply-To: References: From: Jia-Shiun Li Date: Sun, 15 Jan 2017 10:11:52 +0800 Message-ID: Subject: Re: TSC as timecounter makes system lag To: freebsd-current Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Jan 2017 02:12:24 -0000 On Fri, Jan 13, 2017 at 8:26 AM, Jia-Shiun Li wrote: > Hi all, > > since 2 or 3 weeks ago, I noticed that my old Penryn-based Intel Pentium > T4200 notebook lagged a lot. System time was running a lot slower, > sometimes even looked like it freezed. Keystroke repeat rate was slow too. > > Since system time is slow, I tried to change timecounter from default TSC > to HPET. And it resumed normal immediately. > > Did a binary search. Turns out it was caused by r310177 "Enable EARLY_AP_STARTUP on amd64 and i386 kernels by default." r310175 does not have this issue. Removing this option from kernel config also solves it. -Jia-Shiun.