From owner-freebsd-current@freebsd.org Sun Jan 15 17:02:39 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 A4CB5CB1643 for ; Sun, 15 Jan 2017 17:02:39 +0000 (UTC) (envelope-from ler@FreeBSD.org) Received: from thebighonker.lerctr.org (thebighonker.lerctr.org [IPv6:2001:470:1f0f:3ad:223:7dff:fe9e:6e8a]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "thebighonker.lerctr.org", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 84B2C1D3A; Sun, 15 Jan 2017 17:02:39 +0000 (UTC) (envelope-from ler@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lerctr.org; s=lerami; h=Message-ID:Subject:Cc:To:From:Date:Content-Transfer-Encoding: Content-Type:MIME-Version:Sender:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=DFjZOq1fCJNGQmNn/x/6F5BehrUuzc62UBdl+1I8L7A=; b=mMs0I7uhcFqGBCYwjznpZoX5JQ KLN+27FKcqIYbP5wScIL5KUEH1HZrR0af3qNuhfCr7t6/cmkfBlLqPRxsGZgrlerlzao7Tlngswoi thqV9xBXF3BMfAF1FEBqAJO7zc4SyQinHTCXhKYeYyH+6G6Hm7juAfo0z/9GLs0hWwxo=; Received: from thebighonker.lerctr.org ([2001:470:1f0f:3ad:223:7dff:fe9e:6e8a]:28019 helo=webmail.lerctr.org) by thebighonker.lerctr.org with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.88 (FreeBSD)) (envelope-from ) id 1cSoCU-000GOI-3Q; Sun, 15 Jan 2017 11:02:38 -0600 Received: from 2001:470:1f0f:42c:31fb:ee59:cf59:f800 by webmail.lerctr.org with HTTP (HTTP/1.1 POST); Sun, 15 Jan 2017 11:02:38 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Sun, 15 Jan 2017 11:02:38 -0600 From: Larry Rosenman To: Julian Elischer Cc: Jia-Shiun Li , freebsd-current , John Baldwin Subject: Re: TSC as timecounter makes system lag [-> jhb] Message-ID: <7f37b40ed5b5329b1a9ff1c53ed4c194@FreeBSD.org> X-Sender: ler@FreeBSD.org User-Agent: Roundcube Webmail/1.2.3 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 17:02:39 -0000 On 2017-01-14 23:03, Julian Elischer wrote: > On 15/01/2017 10:11 AM, Jia-Shiun Li wrote: >> 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. > > making sure jhb notices this. FWIW, I noted similar "slowness", and nooptions EARLY_AP_STARTUP makes it "normal" again. Copyright (c) 1992-2017 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 12.0-CURRENT #13 r311997: Sat Jan 14 22:35:29 CST 2017 root@borg.lerctr.org:/usr/obj/usr/src/sys/VT-LER amd64 FreeBSD clang version 3.9.1 (tags/RELEASE_391/final 289601) (based on LLVM 3.9.1) MEMGUARD DEBUGGING ALLOCATOR INITIALIZED: MEMGUARD map base: 0xfffffe0000400000 MEMGUARD map size: 128600960 KBytes VT(vga): resolution 640x480 CPU: Intel(R) Xeon(R) CPU E5410 @ 2.33GHz (2327.55-MHz K8-class CPU) Origin="GenuineIntel" Id=0x10676 Family=0x6 Model=0x17 Stepping=6 Features=0xbfebfbff Features2=0xce3bd AMD Features=0x20100800 AMD Features2=0x1 VT-x: HLT,PAUSE TSC: P-state invariant, performance statistics real memory = 68719476736 (65536 MB) avail memory = 65353601024 (62326 MB) Event timer "LAPIC" quality 100 ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs -- Larry Rosenman http://people.freebsd.org/~ler Phone: +1 214-642-9640 E-Mail: ler@FreeBSD.org US Mail: 17716 Limpia Crk, Round Rock, TX 78664-7281