From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 22 15:38:22 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 94A711065673; Mon, 22 Mar 2010 15:38:22 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from mail-fx0-f224.google.com (mail-fx0-f224.google.com [209.85.220.224]) by mx1.freebsd.org (Postfix) with ESMTP id C2A2B8FC0C; Mon, 22 Mar 2010 15:38:21 +0000 (UTC) Received: by fxm24 with SMTP id 24so1774582fxm.3 for ; Mon, 22 Mar 2010 08:38:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:references:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:x-mailer :mime-version:subject:date:cc; bh=fCrxZ4tSd7Sc6Hk/0BIdfYg4tMJt5cy2+r2OUZu44Jc=; b=A5lljl5t1QCDSrM0araAhAtPOwicAWcORDLWb8HjTbEkVsS+GgFOIsL924hePYR/b3 D7v0NatLctYtQtVLgt4I1f12y+Db+zeCdJ9Ynk0ff+C/yKv2lEcVATEthB/m9lPfbs0Z 7dtr7YMprLGO7OEG85ulg5QEJpTSRs5GvzMIw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=references:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:x-mailer:mime-version:subject:date:cc; b=nqI7CdynbFTCQIDJJAJci5EAvjBoXQF4h1kdbExNHwPpKaalWh8YSQm5g5AVptzUek PxOYnNF0IU+T2BRRZSchTZZ4mElsTAK3lS/Sof1HVQLnc/RDRSSR2Vfls11b9aOk53D6 IPNBDZnA51sBhtQEUvbuYy/n6QxeMzyAxsfoE= Received: by 10.223.15.65 with SMTP id j1mr1923274faa.0.1269272300551; Mon, 22 Mar 2010 08:38:20 -0700 (PDT) Received: from [192.168.0.27] (deviant.freebsdgirl.com [173.8.183.73]) by mx.google.com with ESMTPS id 18sm1453722fks.5.2010.03.22.08.38.17 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 22 Mar 2010 08:38:18 -0700 (PDT) References: <7d6fde3d1003211540n30a7041dmd187b57efd0e9242@mail.gmail.com> <201003220947.53722.jhb@freebsd.org> Message-Id: <232074FC-7E18-41BB-AF5A-FDD13D449539@gmail.com> From: Garrett Cooper To: John Baldwin In-Reply-To: <201003220947.53722.jhb@freebsd.org> Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Mailer: iPhone Mail (7E18) Mime-Version: 1.0 (iPhone Mail 7E18) Date: Mon, 22 Mar 2010 08:38:09 -0700 Cc: FreeBSD-Hackers , Colin Percival Subject: Re: Logical CPUs cannot be disabled via W3520 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Mar 2010 15:38:22 -0000 On Mar 22, 2010, at 6:47 AM, John Baldwin wrote: > On Sunday 21 March 2010 6:40:17 pm Garrett Cooper wrote: >> Someone on the forums [1] noticed that machdep.hlt_logical_cpus >> was unavailable on their system, and I did some poking around and >> noticed that it was as well. Should SMT logical CPUs be disable(- >> able) >> via machdep.hlt_logical_cpus as well or is it just classic HTT based >> chips? > > I suspect that it should work for SMT as well. > >> Thanks, >> -Garrett >> >> $ sysctl machdep. >> machdep.acpi_timer_freq: 3579545 >> machdep.enable_panic_key: 0 >> machdep.adjkerntz: 25200 >> machdep.wall_cmos_clock: 1 >> machdep.disable_rtc_set: 0 >> machdep.acpi_root: 1029056 >> machdep.disable_mtrrs: 0 >> machdep.idle: acpi >> machdep.idle_available: spin, mwait, mwait_hlt, hlt, acpi, >> machdep.hlt_cpus: 0 >> machdep.prot_fault_translation: 0 >> machdep.panic_on_nmi: 1 >> machdep.kdb_on_nmi: 1 >> machdep.tsc_freq: 2694121808 >> machdep.i8254_freq: 1193182 >> $ sysctl hw.machine hw.model >> hw.machine: amd64 >> hw.model: Intel(R) Xeon(R) CPU W3520 @ 2.67GHz >> >> dmesg snippet: >> >> CPU: Intel(R) Xeon(R) CPU W3520 @ 2.67GHz (2694.12-MHz >> K8-class > CPU) >> Origin = "GenuineIntel" Id = 0x106a5 Family = 6 Model = 1a >> Stepping = > 5 >> > Features= > 0xbfebfbff< > FPU, > VME, > DE, > PSE, > TSC, > MSR, > PAE, > MCE, > CX8, > APIC, > SEP, > MTRR, > PGE, > MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> >> > Features2= > 0x9ce3bd< > SSE3, > DTES64, > MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,DCA,SSE4.1,SSE4.2,POPCNT> >> AMD Features=0x28100800 >> AMD Features2=0x1 >> TSC: P-state invariant >> real memory = 12884901888 (12288 MB) >> avail memory = 12379992064 (11806 MB) >> ACPI APIC Table: <091109 APIC2100> >> FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs >> FreeBSD/SMP: 1 package(s) x 4 core(s) x 2 SMT threads >> cpu0 (BSP): APIC ID: 0 >> cpu1 (AP): APIC ID: 1 >> cpu2 (AP): APIC ID: 2 >> cpu3 (AP): APIC ID: 3 >> cpu4 (AP): APIC ID: 4 >> cpu5 (AP): APIC ID: 5 >> cpu6 (AP): APIC ID: 6 >> cpu7 (AP): APIC ID: 7 >> >> [1] http://forums.freebsd.org/showthread.php?t=12527 Which means that because the support isn't there it'll need to be added; I'll file a PR so this is tracked and see if I can provide a patch for this. Thanks! -Garrett