Re: Top only showing one active CPU on HTT system
On Tue, May 24, 2005 at 10:53:29AM -0500, Kirk Strauser wrote: I'm running a 5.4-STABLE system (updated as of May 16). My kernel is basically GENERIC with a few small tweaks, like commenting out extraneous cpu lines and adding options SMP. My problem is that although dmesg shows every sign of having launched both logical CPUs: $ dmesg | grep -i cpu CPU: Intel(R) Xeon(TM) CPU 2.40GHz (2392.05-MHz 686-class CPU) Hyperthreading: 2 logical CPUs FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 cpu0: ACPI CPU on acpi0 cpu1: ACPI CPU on acpi0 SMP: AP CPU #1 Launched! ... running top only shows 0 in the CPU column for every task. I don't see anything out of place in sysctl: $ sysctl -a | grep -i hlt machdep.cpu_idle_hlt: 1 machdep.hlt_cpus: 2 machdep.hlt_logical_cpus: 0 and /boot/loader.conf is all but empty. Honestly, I don't really know how long this has been going on. top used to show both 0 and 1 in the C column and I'm not exactly sure when it stopped. Any ideas? Read the security advisories issued for FreeBSD. Kris pgprV15oOyNgd.pgp Description: PGP signature
Re: Top only showing one active CPU on HTT system
Actually, I have a similar issue on a Pentium 4 box that's supposedly HT: CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz (2410.53-MHz 686-class CPU) Origin = GenuineIntel Id = 0xf41 Stepping = 1 Features=0xbfebfbffFPU,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 By the fact that HTT is there in the features, I'm assuming that HT support is actually present. Though when I compile my kernel with SMP support, it doesn't show up. I've had the box checked in the BIOS for HT settings, but apparently there are none. Any ideas? Kirk Strauser wrote: I'm running a 5.4-STABLE system (updated as of May 16). My kernel is basically GENERIC with a few small tweaks, like commenting out extraneous cpu lines and adding options SMP. My problem is that although dmesg shows every sign of having launched both logical CPUs: $ dmesg | grep -i cpu CPU: Intel(R) Xeon(TM) CPU 2.40GHz (2392.05-MHz 686-class CPU) Hyperthreading: 2 logical CPUs FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 cpu0: ACPI CPU on acpi0 cpu1: ACPI CPU on acpi0 SMP: AP CPU #1 Launched! ... running top only shows 0 in the CPU column for every task. I don't see anything out of place in sysctl: $ sysctl -a | grep -i hlt machdep.cpu_idle_hlt: 1 machdep.hlt_cpus: 2 machdep.hlt_logical_cpus: 0 and /boot/loader.conf is all but empty. Honestly, I don't really know how long this has been going on. top used to show both 0 and 1 in the C column and I'm not exactly sure when it stopped. Any ideas? -- Jonathan M. Slivko - [EMAIL PROTECTED] Linux: The Choice for the GNU Generation - http://www.linux.org/ - Don't fear the penguin. .^. /V\ /( )\ ^^-^^ He's here to help. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Top only showing one active CPU on HTT system
On Tuesday 24 May 2005 11:53 am, Kirk Strauser wrote: I'm running a 5.4-STABLE system (updated as of May 16). My kernel is basically GENERIC with a few small tweaks, like commenting out extraneous cpu lines and adding options SMP. My problem is that although dmesg shows every sign of having launched both logical CPUs: $ dmesg | grep -i cpu CPU: Intel(R) Xeon(TM) CPU 2.40GHz (2392.05-MHz 686-class CPU) Hyperthreading: 2 logical CPUs FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 cpu0: ACPI CPU on acpi0 cpu1: ACPI CPU on acpi0 SMP: AP CPU #1 Launched! ... running top only shows 0 in the CPU column for every task. I don't see anything out of place in sysctl: $ sysctl -a | grep -i hlt machdep.cpu_idle_hlt: 1 machdep.hlt_cpus: 2 machdep.hlt_logical_cpus: 0 and /boot/loader.conf is all but empty. Honestly, I don't really know how long this has been going on. top used to show both 0 and 1 in the C column and I'm not exactly sure when it stopped. Any ideas? From my /boot/loader.conf: acpi_load=YES loader_color=yes PID USERNAME PRI NICE SIZERES STATE C TIME WCPUCPU COMMAND 587 root 960 177M 44500K CPU0 0 630:12 10.94% 10.94% Xorg 41019 service 106 10 4680K 2632K RUN0 0:01 0.05% 0.05% stonerview uname -a FreeBSD gilgamesh.maestro 5.4-STABLE FreeBSD 5.4-STABLE #3: Wed May 11 10:38:27 EDT 2005 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GILGAMESH i386 The acpi_load=YES in /boot/loader.conf might do the trick. Tim Kellers CPE/NJIT ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Top only showing one active CPU on HTT system
On Tuesday 24 May 2005 10:59, Kris Kennaway wrote: Read the security advisories issued for FreeBSD. I thought that I had. I missed the we're now disabling HTT by default unless you set a new sysctl part. :-) -- Kirk Strauser pgp5vJSWjc6sa.pgp Description: PGP signature
Re: Top only showing one active CPU on HTT system
On Tuesday 24 May 2005 10:59, Tim Kellers wrote: The acpi_load=YES in /boot/loader.conf might do the trick. Actually, it turns out that I have to set machdep.hyperthreading_allowed=1 for HTT to work now. Speaking of which, is that tunable documented anywhere besides the HTT security PR? It's not in the 5.4-STABLE /usr/src/UPDATING or anyplace else I've looked, so I was more than a bit surprised to find that such an important default was changed without much notice. I imagine a lot of people read the PR much as I did: blah, blah, theoretical, doesn't affect me, next message... -- Kirk Strauser pgp2DHPLutd24.pgp Description: PGP signature
Re: Top only showing one active CPU on HTT system
Where did you actually set that, in /etc/sysctl.conf? Kirk Strauser wrote: On Tuesday 24 May 2005 10:59, Tim Kellers wrote: The acpi_load=YES in /boot/loader.conf might do the trick. Actually, it turns out that I have to set machdep.hyperthreading_allowed=1 for HTT to work now. Speaking of which, is that tunable documented anywhere besides the HTT security PR? It's not in the 5.4-STABLE /usr/src/UPDATING or anyplace else I've looked, so I was more than a bit surprised to find that such an important default was changed without much notice. I imagine a lot of people read the PR much as I did: blah, blah, theoretical, doesn't affect me, next message... -- Jonathan M. Slivko - [EMAIL PROTECTED] Linux: The Choice for the GNU Generation - http://www.linux.org/ - Don't fear the penguin. .^. /V\ /( )\ ^^-^^ He's here to help. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Top only showing one active CPU on HTT system
I'm curious... doesn't enabling ht make your system run slower? That's what I had found searching on google a while ago, and that's why I have never enabled ht on my kernels. 2005/5/24, Kirk Strauser [EMAIL PROTECTED]: On Tuesday 24 May 2005 10:59, Tim Kellers wrote: The acpi_load=YES in /boot/loader.conf might do the trick. Actually, it turns out that I have to set machdep.hyperthreading_allowed=1 for HTT to work now. Speaking of which, is that tunable documented anywhere besides the HTT security PR? It's not in the 5.4-STABLE /usr/src/UPDATING or anyplace else I've looked, so I was more than a bit surprised to find that such an important default was changed without much notice. I imagine a lot of people read the PR much as I did: blah, blah, theoretical, doesn't affect me, next message... -- Kirk Strauser ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Top only showing one active CPU on HTT system
On Tuesday 24 May 2005 01:00 pm, Kirk Strauser wrote: On Tuesday 24 May 2005 10:59, Tim Kellers wrote: The acpi_load=YES in /boot/loader.conf might do the trick. Actually, it turns out that I have to set machdep.hyperthreading_allowed=1 for HTT to work now. Speaking of which, is that tunable documented anywhere besides the HTT security PR? It's not in the 5.4-STABLE /usr/src/UPDATING or anyplace else I've looked, so I was more than a bit surprised to find that such an important default was changed without much notice. I imagine a lot of people read the PR much as I did: blah, blah, theoretical, doesn't affect me, next message... I even read the SA and it managed to completely pass through my head without hitting one brain cell. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Top only showing one active CPU on HTT system
On Tue, May 24, 2005 at 02:20:46PM -0300, Franco Bruno Borghesi wrote: I'm curious... doesn't enabling ht make your system run slower? That's what I had found searching on google a while ago, and that's why I have never enabled ht on my kernels. That's a common experience, but it depends on your specific workload. Kris pgp8xLHMC9OSx.pgp Description: PGP signature
Re: Top only showing one active CPU on HTT system
On Tuesday 24 May 2005 12:13, Jonathan M. Slivko wrote: Where did you actually set that, in /etc/sysctl.conf? Yep. -- Kirk Strauser pgpmtHJuevgL0.pgp Description: PGP signature
Re: Top only showing one active CPU on HTT system
Hmmm I just tried that on my system thats supposedly an HT P4 but it didn't work after recompiling the kernel as well as setting that sysctl call. Kirk Strauser wrote: On Tuesday 24 May 2005 12:13, Jonathan M. Slivko wrote: Where did you actually set that, in /etc/sysctl.conf? Yep. -- Jonathan M. Slivko - [EMAIL PROTECTED] Linux: The Choice for the GNU Generation - http://www.linux.org/ - Don't fear the penguin. .^. /V\ /( )\ ^^-^^ He's here to help. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Top only showing one active CPU on HTT system
On Tue, May 24, 2005 at 02:24:59PM -0400, Jonathan M. Slivko wrote: Hmmm I just tried that on my system thats supposedly an HT P4 but it didn't work after recompiling the kernel as well as setting that sysctl call. Make sure your kernel is compiled with SMP support and your BIOS enables HTT. Kris pgp6Bm0GAzgKN.pgp Description: PGP signature
Re: Top only showing one active CPU on HTT system
Yes, it is. -- Jonathan Kris Kennaway wrote: On Tue, May 24, 2005 at 02:24:59PM -0400, Jonathan M. Slivko wrote: Hmmm I just tried that on my system thats supposedly an HT P4 but it didn't work after recompiling the kernel as well as setting that sysctl call. Make sure your kernel is compiled with SMP support and your BIOS enables HTT. Kris -- Jonathan M. Slivko - [EMAIL PROTECTED] Linux: The Choice for the GNU Generation - http://www.linux.org/ - Don't fear the penguin. .^. /V\ /( )\ ^^-^^ He's here to help. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]