непонятки с SMP
Добавлено: 2009-07-08 10:54:25
есть 2 сервера:
1.
2.
т.е. в top -S cpu1 на втором серваке никогда не вижу. такое ощущение, что он не работает, хотя
или я ошибаюсь?
1.
Код: Выделить всё
# uname -a
FreeBSD web.brain.lan 7.1-RELEASE-p6 FreeBSD 7.1-RELEASE-p6 #0: Tue Jun 9 16:26:47 UTC 2009 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386
# grep SMP /usr/src/sys/i386/conf/GENERIC
options SMP # Symmetric MultiProcessor Kernel
# dmesg -a| grep [Cc][Pp][Uu]
CPU: Intel(R) Pentium(R) D CPU 2.66GHz (2665.93-MHz 686-class CPU)
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
cpu0 (BSP): APIC ID: 0
cpu1 (AP): APIC ID: 1
cpu0: <ACPI CPU> on acpi0
p4tcc0: <CPU Frequency Thermal Control> on cpu0
cpu1: <ACPI CPU> on acpi0
p4tcc1: <CPU Frequency Thermal Control> on cpu1
SMP: AP CPU #1 Launched!
hw.acpi.cpu.cx_lowest:
# sysctl -a| grep smp
kern.timecounter.smp_tsc: 0
kern.smp.forward_roundrobin_enabled: 1
kern.smp.forward_signal_enabled: 1
kern.smp.cpus: 2
kern.smp.disabled: 0
kern.smp.active: 1
kern.smp.maxcpus: 16
kern.smp.maxid: 15
#top -S
PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
11 root 1 171 ki31 0K 8K RUN 1 48.4H 100.00% idle: cpu1
12 root 1 171 ki31 0K 8K CPU0 0 48.6H 96.68% idle: cpu0
Код: Выделить всё
# uname -a
FreeBSD boomer.brain.lan 6.3-RELEASE-p11 FreeBSD 6.3-RELEASE-p11 #0: Wed Jun 10 02:41:41 UTC 2009 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/SMP i386
# grep SMP /usr/src/sys/i386/conf/SMP
# SMP -- Generic kernel configuration file for FreeBSD/i386 SMP
# $FreeBSD: src/sys/i386/conf/SMP,v 1.5.6.1 2005/09/18 03:37:58 scottl Exp $
ident SMP-GENERIC
# To make an SMP kernel, the next line is needed
options SMP # Symmetric MultiProcessor Kernel
# dmesg -a| grep [Cc][Pp][Uu]
CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz (2394.01-MHz 686-class CPU)
Logical CPUs per core: 2
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
cpu0 (BSP): APIC ID: 0
cpu1 (AP): APIC ID: 1
cpu0: <ACPI CPU> on acpi0
acpi_throttle0: <ACPI CPU Throttling> on cpu0
cpu1: <ACPI CPU> on acpi0
acpi_throttle1: <ACPI CPU Throttling> on cpu1
SMP: AP CPU #1 Launched!
hw.acpi.cpu.cx_lowest:
# sysctl -a| grep smp
kern.timecounter.smp_tsc: 0
kern.smp.maxcpus: 16
kern.smp.active: 1
kern.smp.disabled: 0
kern.smp.cpus: 2
kern.smp.forward_signal_enabled: 1
kern.smp.forward_roundrobin_enabled: 1
#top -S
PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
11 root 1 171 52 0K 8K RUN 0 50.1H 98.63% idle: cpu0
851 nobody 6 20 0 7892K 3008K kserel 0 6:01 0.00% icecast
Код: Выделить всё
# ps -aux| grep cpu
root 11 99,0 0,0 0 8 ?? RL пн08 3005:35,44 [idle: cpu0]
root 10 0,0 0,0 0 8 ?? RL пн08 0:00,00 [idle: cpu1]