----- Original Message ----- 
From: "horio shoichi" <[EMAIL PROTECTED]>
To: "Vahric MUHTARYAN" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, December 25, 2003 7:32 PM
Subject: Re: FreeBSD 4.9 Can't find second CPU ...


> On Thu, 25 Dec 2003 18:54:26 +0200
> "Vahric MUHTARYAN" <[EMAIL PROTECTED]> wrote:
> > Hi ,
> >
> > I checked LINT it said that I have to disabke I386 AND I486 from
> > kernel .. I marked those values from GENERIC and LINT too and recompile
it .
> >
> > But I can't see any changes ....
> >
> > Then I checked my messages file ....
> >
> >
> > Dec 25 20:30:33 freebsdcgp /kernel: FreeBSD/SMP: Multiprocessor
motherboard:
> > 2 CPUs
> > Dec 25 20:30:33 freebsdcgp /kernel: cpu0 (BSP): apic id:  3, version:
> > 0x00040011, at 0xfee00000
> > Dec 25 20:30:33 freebsdcgp /kernel: cpu1 (AP):  apic id:  0, version:
> > 0x00040011, at 0xfee00000
> > Dec 25 20:30:33 freebsdcgp /kernel: io0 (APIC): apic id:  4, version:
> > 0x000f0011, at 0xfec00000
> > Dec 25 20:30:33 freebsdcgp /kernel: io1 (APIC): apic id:  5, version:
> > 0x000f0011, at 0xfec01000
> >
> > Dec 25 20:30:33 freebsdcgp /kernel: SMP: AP CPU #1 Launched!
> >
> > And this is my sysctl out ....
> >
> > freebsdcgp# sysctl hw.ncpu
> > hw.ncpu: 2
> >
> >
> > But when I run top utulity there is only one CPU there ..
> >
> > Now I will try cvsup RELENG_4 ... Maybe I can handle it ...
> > Does anybody have advise ?!
> >
> > Vahri__...
> >

Top on a Dual CPU system looks like this:

last pid: 97678;  load averages:  0.00,  0.07,  0.06            up
13+13:04:44  21:40:15
62 processes:  1 running, 61 sleeping
CPU states:  0.2% user,  0.0% nice,  0.4% system,  0.4% interrupt, 99.0%
idle
Mem: 126M Active, 528M Inact, 138M Wired, 46M Cache, 112M Buf, 165M Free
Swap: 2048M Total, 140K Used, 2048M Free

PID  USERNAME      PRI NICE  SIZE    RES STATE  C   TIME   WCPU    CPU
COMMAND
2594 mailman              2   0  7032K  5680K poll   1   3:20  0.00%  0.00%
python
2590 mailman              2   0  7044K  5684K poll   0   3:13  0.00%  0.00%
python

There will be a 0 or 1 in the C column. That indicates the CPU the process
is on. The "CPU states" is a combination of both cpu's if I recall
correctly. Also, if you watch your STATE column while running Top, you can
see after some time that Top is handed back and forth between the CPU's.  In
the above list, I have one mailman process running on cpu0 and one on cpu1.

--

Micheal Patterson
Network Administration
TSG Incorporated
405-917-0600

_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to