- 论坛徽章:
- 0
|
手头上有 HP LH 3000 / LH 4R 各一台,都是双CPU 的,现安装FREEBSD 6.0 ,装了许多次了,都没有安装成功SMP ,查了CU,GOOOOGLE,都没门。
特请大家齐来诊断,看是什么问题,先谢谢大家了:
1) mykernle 文件:
machinei386
#cpu I486_CPU
#cpu I586_CPU
#cpu I686_CPU
identmykernel# Modify GENERIC
# To statically compile in device wiring instead of /boot/device.hints
#hints"GENERIC.hints"# Default places to look for devices.
makeoptions DEBUG=-g# Build kernel with gdb(1) debug symbols
optionsSCHED_ULE# ULE scheduler
#options SCHED_4BSD# 4BSD scheduler
options PREEMPTION# Enable kernel thread preemption
options INET# InterNETworking
options INET6# IPv6 communications protocols
options FFS# Berkeley Fast Filesystem
options SOFTUPDATES# Enable FFS soft updates support
options UFS_ACL# Support for access control lists
options UFS_DIRHASH# Improve performance on big directories
options MD_ROOT # MD is a potential root device
options NFSCLIENT # Network Filesystem Client
options NFSSERVER # Network Filesystem Server
.....
.....
# To make an SMP kernel, the next line is needed
options SMP # Symmetric MultiProcessor Kernel
device apic # I/O APIC
......
......
2) 编译内核:
# cd /usr/src
# make buildkernel KERNELCONF=mykernel (没出错)
# make installkernel KERNELCONF=mykernel (没出错)
#sync;sync;reboot
3) 重启下,检验 A) # ps -ax |grep "cpu"
65 ?? DL 0:05.04 [schedcpu]
6323 p0 R+ 0:00.00 grep cpu
B)# sysctl -a |grep "smp"
kern.smp.maxcpus: 1
kern.smp.active: 0
kern.smp.disabled: 0
kern.smp.cpus: 1
# sysctl -a | grep "cpu"
kern.threads.virtual_cpu: 1
kern.ccpu: 1948
kern.smp.maxcpus: 1
kern.smp.cpus: 1
debug.cpufreq.lowest: 0
debug.cpufreq.verbose: 0
hw.ncpu: 1
machdep.cpu_idle_hlt: 1
dev.cpu.0.%driver: cpu
dev.cpu.0.%parent: legacy0
last pid: 6368; load averages:
CPU states: 0.0% user, 0.0% nice, % system, 0.0% interrupt, % idle
Mem: 6800K Active, 142M Inact, 105M Wired, 111M Buf, 742M Free
Swap: 2023M Total, 2023M Free
last pid: 6368; load averages:
CPU states: 0.0% user, 0.0% nice, % system, 0.0% interrupt, % idle
Mem: 6800K Active, 142M Inact, 105M Wired, 111M Buf, 742M Free
Swap: 2023M Total, 2023M Free
last pid: 6368; load averages:
CPU states: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle
Mem: 6800K Active, 142M Inact, 105M Wired, 111M Buf, 742M Free
Swap: 2023M Total, 2023M Free
last pid: 6368; load averages:
CPU states: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle
Mem: 6800K Active, 142M Inact, 105M Wired, 111M Buf, 742M Free
Swap: 2023M Total, 2023M Free
last pid: 6368; load averages:
19 processes: 1 running, 18 sleeping
CPU states: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle
Mem: 6800K Active, 142M Inact, 105M Wired, 111M Buf, 742M Free
Swap: 2023M Total, 2023M Free
PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND
493 root 1 96 0 3152K 2136K select 0:01 0.00% telnetd
419 root 1 8 0 1312K 1032K nanslp 0:01 0.00% cron
291 root 1 96 0 1292K 868K select 0:01 0.00% syslogd
495 root 1 20 0 3732K 2572K pause 0:00 0.00% csh
364 root 1 96 0 1208K 772K select 0:00 0.00% usbd
这是以上的,老是没有发现SMP 下多CPU 运作。
请高手指教。。
万分感谢!
[ 本帖最后由 zspasu 于 2006-1-26 00:45 编辑 ] |
|