multiple CPUs and vmstat

2008-03-05 Thread Steven Friedrich
I'm running 7.0 on i386.

I'd like to see multiple cpu stats in vmstat.
vmstat
 procs  memory  page   disk   faults  cpu
 r b w avmfre   flt  re  pi  pofr  sr ad0   in   sy   cs us sy id
 0 0 0  398000  77144  7298   1   1   0  5686  12   0  117 18938 1758 32 11 58

The formatting got whacked, sorry.

I looked at several man pages and couldn't find any other stat program that 
showed multiple processors.

I have a system monitor running under SuperKaramba, but on a Hyperthreaded 
system, it shows both processors with identical CPU percentages.  I had sent 
a bug report to KDE, but the guy that picked it up couldn't understand my 
point.  Which is, since a hyperthreaded CPU is actually two pipelines sharing 
a common execution unit, the best it could be doing is complementary 
precents, i.e., if one CPU is 60% utilized, then the other CPU couldn't be 
any better than 40 % utilized.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Multiple CPUs

2005-12-13 Thread Robert Fitzpatrick
I guess this means my new server is only using one of my CPUs?

esmtp# grep CPU /var/log/dmesg.today
CPU: Intel(R) Xeon(TM) CPU 2.40GHz (2399.33-MHz 686-class CPU)
  Hyperthreading: 2 logical CPUs
cpu0: ACPI CPU (2 Cx states) on acpi0

Can someone point me to the best doc for enabling use of both CPUs on
the FreeBSD 5.4 server? I assume the kernel needs built with options.

--
Robert

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


RE: Multiple CPUs

2005-12-13 Thread Tamouh H.

 Can someone point me to the best doc for enabling use of both
 CPUs on the FreeBSD 5.4 server? I assume the kernel needs
 built with options.

 --
 Robert

This is what you need in your Kernel:

options SMP # ENABLE MULTI PROCESSOR
device  acpi# COMPILE FOR SMP OPTION

Best,

Tamouh



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


Re: Multiple CPUs

2005-12-13 Thread Sean

Robert Fitzpatrick wrote:

I guess this means my new server is only using one of my CPUs?

esmtp# grep CPU /var/log/dmesg.today
CPU: Intel(R) Xeon(TM) CPU 2.40GHz (2399.33-MHz 686-class CPU)
  Hyperthreading: 2 logical CPUs
cpu0: ACPI CPU (2 Cx states) on acpi0

Can someone point me to the best doc for enabling use of both CPUs on
the FreeBSD 5.4 server? I assume the kernel needs built with options.

--
Robert

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



You need

options SMP # multi processor support

in your kernel config when you build it.
Check here as a start.
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html

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


Re: Multiple CPUs

2005-12-13 Thread Ian Lord

At 14:12 2005-12-13, Robert Fitzpatrick wrote:

I guess this means my new server is only using one of my CPUs?

esmtp# grep CPU /var/log/dmesg.today
CPU: Intel(R) Xeon(TM) CPU 2.40GHz (2399.33-MHz 686-class CPU)
  Hyperthreading: 2 logical CPUs
cpu0: ACPI CPU (2 Cx states) on acpi0

Can someone point me to the best doc for enabling use of both CPUs on
the FreeBSD 5.4 server? I assume the kernel needs built with options.

--
Robert

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



Just add
options SMP

to your kernel configuration file and rebuild your kernel. You should 
go though all the configurations at the same time to do some optimizations...


You can find the infos in the handbook on how to compile your kernel:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html

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


Re: Multiple CPUs

2005-12-13 Thread Charles Swiger

On Dec 13, 2005, at 2:12 PM, Robert Fitzpatrick wrote:

I guess this means my new server is only using one of my CPUs?

esmtp# grep CPU /var/log/dmesg.today
CPU: Intel(R) Xeon(TM) CPU 2.40GHz (2399.33-MHz 686-class CPU)
  Hyperthreading: 2 logical CPUs
cpu0: ACPI CPU (2 Cx states) on acpi0

Can someone point me to the best doc for enabling use of both CPUs on
the FreeBSD 5.4 server? I assume the kernel needs built with options.


Note that if you've only got one physical HTT-capable CPU, running in  
single-processor mode is likely to give better performance than  
running SMP just to enable the hyperthreaded virtual CPU.  If you've  
got a dual-CPU box and need to run SMP for that anyway, then using  
HTT seems to sometimes help and sometimes reduce performance.


--
-Chuck

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


Re: Multiple CPUs

2005-12-13 Thread Kris Kennaway
On Tue, Dec 13, 2005 at 02:12:57PM -0500, Robert Fitzpatrick wrote:
 I guess this means my new server is only using one of my CPUs?
 
 esmtp# grep CPU /var/log/dmesg.today
 CPU: Intel(R) Xeon(TM) CPU 2.40GHz (2399.33-MHz 686-class CPU)
   Hyperthreading: 2 logical CPUs
 cpu0: ACPI CPU (2 Cx states) on acpi0
 
 Can someone point me to the best doc for enabling use of both CPUs on
 the FreeBSD 5.4 server? I assume the kernel needs built with options.

FYI, hyperthreading is not a real CPU, and it seems to *really* hurt
performance on most workloads.  You'll probably benefit from not using
it.

Kris


pgpZE0WACT0DX.pgp
Description: PGP signature


Re: Multiple CPUs

2005-12-13 Thread Pietro Cerutti
On 12/13/05, Robert Fitzpatrick [EMAIL PROTECTED] wrote:
 I guess this means my new server is only using one of my CPUs?

 esmtp# grep CPU /var/log/dmesg.today
 CPU: Intel(R) Xeon(TM) CPU 2.40GHz (2399.33-MHz 686-class CPU)
   Hyperthreading: 2 logical CPUs
 cpu0: ACPI CPU (2 Cx states) on acpi0

 Can someone point me to the best doc for enabling use of both CPUs on
 the FreeBSD 5.4 server? I assume the kernel needs built with options.

 --
 Robert


Do you really want to enable Hyperthreading?
Read this before:

http://www.daemonology.net/hyperthreading-considered-harmful/


--
Pietro Cerutti
[EMAIL PROTECTED]

Beansidhe - SwiSS Death / Thrash Metal
www.beansidhe.ch

Windows: Where do you want to go today?
Linux: Where do you want to go tomorrow?
FreeBSD: Are you guys coming or what?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Multiple CPUs

2005-12-13 Thread Robert Fitzpatrick
On Tue, 2005-12-13 at 14:54 -0500, Kris Kennaway wrote:
 On Tue, Dec 13, 2005 at 02:12:57PM -0500, Robert Fitzpatrick wrote:
  I guess this means my new server is only using one of my CPUs?
  
  esmtp# grep CPU /var/log/dmesg.today
  CPU: Intel(R) Xeon(TM) CPU 2.40GHz (2399.33-MHz 686-class CPU)
Hyperthreading: 2 logical CPUs
  cpu0: ACPI CPU (2 Cx states) on acpi0
  
  Can someone point me to the best doc for enabling use of both CPUs on
  the FreeBSD 5.4 server? I assume the kernel needs built with options.
 
 FYI, hyperthreading is not a real CPU, and it seems to *really* hurt
 performance on most workloads.  You'll probably benefit from not using
 it.

Yeah, I got the SMP option built into the kernel and still with less
than 700 messages in the queue, very little else going on beside Postfix
with amavis content filtering, my CPU idle is 0% most the time. This is
on my freshly built FreeBSD 5.4 with dual Xeon 2.4 processors and a GB
RAM. You think that could be related to HT? I will have to make a visit
to the data center to remove in BIOS.

Here's my top procs:

last pid:  2079;  load averages:  8.31,  8.91,  8.43up 0
+00:35:15  20:57:53
149 processes: 13 running, 136 sleeping
CPU states: 54.2% user,  0.0% nice, 21.8% system,  8.3% interrupt, 15.8%
idle
Mem: 747M Active, 85M Inact, 146M Wired, 17M Cache, 111M Buf, 1656K Free
Swap: 2021M Total, 213M Used, 1808M Free, 10% Inuse, 636K In, 1496K Out

  PID USERNAME PRI NICE   SIZERES STATE  C   TIME   WCPUCPU
COMMAND
 1727 postfix  1290  7884K  4016K RUN2   1:14 64.06% 64.06%
cleanup
 1620 postfix  1280  7884K  3684K RUN3   0:52 42.48% 42.48%
cleanup
 2031 vscan1160   227M   125M RUN0   0:44 31.25% 31.20%
perl5.8.6
 1892 vscan1160   230M  2884K RUN0   1:44 629.00% 30.71%
perl5.8.6
 1726 postfix  1110  7884K  4020K RUN0   0:57 18.55% 18.55%
cleanup
 2035 vscan -80   228M   123M piperd 0   0:36 17.57% 17.53%
perl5.8.6
 2042 vscan1110   227M   122M RUN2   0:26 16.86% 16.75%
perl5.8.6
 1889 vscan -80   238M   130M piperd 2   1:41 15.58% 15.58%
perl5.8.6
 1898 vscan1190   229M   125M RUN0   1:38 13.48% 13.48%
perl5.8.6
 2018 vscan1050   226M   121M RUN0   0:36 11.43% 11.43%
perl5.8.6
 2016 vscan1050   226M   122M RUN0   0:35 10.75% 10.74%
perl5.8.6
 1646 vscan1030   232M   129M CPU1   0   3:45  9.42%  9.42%
perl5.8.6
 1894 vscan1070   227M   124M CPU3   0   1:37  7.03%  7.03%
perl5.8.6
 1659 postfix40  7884K 8K select 0   1:02  0.00%  6.35%
cleanup
 1724 postfix  -200  7884K  3908K swread 0   0:47  1.37%  1.37%
cleanup
 2075 postfix   960  7876K  5764K select 0   0:00  1.27%  0.93%
cleanup
 2077 vscan-160  2084K  1024K vmpfw  0   0:00  0.62%  0.34% file
 2078 vscan-160  2084K  1048K spread 0   0:00  3.00%  0.15% file
  565 vscan 200 15432K 11336K kserel 0   0:19  1.00%  0.05%
clamd
 2013 root   40  9220K  1772K select 0   0:00  0.05%  0.05%
smtpd
  488 vscan  40   224M 8K select 0   0:31  0.00%  0.00%
perl5.8.6
  661 root  960  3828K   816K select 0   0:04  0.00%  0.00%
master
  613 mysql 200 57308K  2236K kserel 0   0:02  0.00%  0.00%
mysqld
 1619 postfix   960  4348K   932K select 0   0:02  0.00%  0.00%
trivial-rewrite
  333 root  960  1324K   240K select 0   0:02  0.00%  0.00%
syslogd
  745 root   40  7272K   948K select 0   0:01  0.00%  0.00% perl
 1599 postfix40  5072K 8K select 0   0:01  0.00%  0.00% qmgr
 1882 root  960  2596K  1136K CPU0   0   0:01  0.00%  0.00% top
  558 root   40 26004K   836K select 0   0:01  0.00%  0.00%
httpd
  722 ldap  200 29132K48K kserel 1   0:01  0.00%  0.00%
slapd
 1751 root   40  9288K 8K select 0   0:01  0.00%  0.00%
smtpd
 1716 root  200  9288K   896K lockf  0   0:01  0.00%  0.00%
smtpd
 2039 postfix40  4180K 8K select 0   0:01  0.00%  0.00%
flush
  897 admin  40  6144K   348K select 0   0:01  0.00%  0.00% sshd
 1747 root   40  9276K 8K select 0   0:00  0.00%  0.00%
smtpd
 1612 root   40  9264K  1588K select 0   0:00  0.00%  0.00%
smtpd
 1717 root   40  9396K  1268K kqread 0   0:00  0.00%  0.00%
smtpd
 1737 root  960  9272K  1732K select 0   0:00  0.00%  0.00%
smtpd
 1715 root   40  9252K  1852K select 0   0:00  0.00%  0.00%
smtpd
  442 root   40  1244K 8K select 0   0:00  0.00%  0.00% usbd


--
Robert

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


Re: Multiple CPUs

2005-12-13 Thread Kris Kennaway
On Tue, Dec 13, 2005 at 09:00:13PM -0500, Robert Fitzpatrick wrote:
 On Tue, 2005-12-13 at 14:54 -0500, Kris Kennaway wrote:
  On Tue, Dec 13, 2005 at 02:12:57PM -0500, Robert Fitzpatrick wrote:
   I guess this means my new server is only using one of my CPUs?
   
   esmtp# grep CPU /var/log/dmesg.today
   CPU: Intel(R) Xeon(TM) CPU 2.40GHz (2399.33-MHz 686-class CPU)
 Hyperthreading: 2 logical CPUs
   cpu0: ACPI CPU (2 Cx states) on acpi0
   
   Can someone point me to the best doc for enabling use of both CPUs on
   the FreeBSD 5.4 server? I assume the kernel needs built with options.
  
  FYI, hyperthreading is not a real CPU, and it seems to *really* hurt
  performance on most workloads.  You'll probably benefit from not using
  it.
 
 Yeah, I got the SMP option built into the kernel and still with less
 than 700 messages in the queue, very little else going on beside Postfix
 with amavis content filtering, my CPU idle is 0% most the time. This is
 on my freshly built FreeBSD 5.4 with dual Xeon 2.4 processors and a GB
 RAM. You think that could be related to HT? I will have to make a visit
 to the data center to remove in BIOS.

CPU idle time doesn't measure how well your system is performing, it
only tells you when it's reaching capacity in its current
configuration.  You need to compare how much work it can do
with/without HTT (e.g. how many messages can it process/hour, if you
have a more or less constant input?)

Kris


pgprBFcrS2nn4.pgp
Description: PGP signature


Re: Multiple CPUs

2005-12-13 Thread Bob Lee
Quoting Robert Fitzpatrick [EMAIL PROTECTED]:
 Here's my top procs:
 
 last pid:  2079;  load averages:  8.31,  8.91,  8.43up 0
 +00:35:15  20:57:53
 149 processes: 13 running, 136 sleeping

Robert,
FWIW, I did some research a short time ago on utilization and other
aspects of watching performance and I found that 'load' provided
better insight FOR ME into what the system is doing. I wasn't able to
find much on load, but if I understand it correctly, part of what it
shows is the queue on the processor(s). 8 seems high, even by today's
standards and real high by the standards of yesteryear when the load
function was originally created. You may want to spend some time
researching load and see what you come up with.

Bob Lee
-- 
  Robert Lee  PGP: D3EE2268 pgp.mit.edu
  I prefer email in plain text


pgpO45qnfikqx.pgp
Description: PGP signature


Re: Multiple CPUs

2005-12-13 Thread Kris Kennaway
On Tue, Dec 13, 2005 at 08:50:39PM -0700, Bob Lee wrote:
 Quoting Robert Fitzpatrick [EMAIL PROTECTED]:
  Here's my top procs:
  
  last pid:  2079;  load averages:  8.31,  8.91,  8.43up 0
  +00:35:15  20:57:53
  149 processes: 13 running, 136 sleeping
 
 Robert,
 FWIW, I did some research a short time ago on utilization and other
 aspects of watching performance and I found that 'load' provided
 better insight FOR ME into what the system is doing. I wasn't able to
 find much on load, but if I understand it correctly, part of what it
 shows is the queue on the processor(s). 8 seems high, even by today's
 standards and real high by the standards of yesteryear when the load
 function was originally created. You may want to spend some time
 researching load and see what you come up with.

Load just measures how many processes want to run, not how fast or
slow they're running.  There is no substitute for actually measuring
how much work your system can get done on your particular workload.

Kris


pgp16akc64L6N.pgp
Description: PGP signature


Multiple CPUs without SMP

2005-10-20 Thread Andrew P.
I'm kinda confused.

Can I use both processors with a non-SMP kernel? I
don't need SMP, I would settle on manually assigning
CPU affinity to each processor, but I gather FreeBSD
can only handle 2+ CPUs with SMP enabled.

On a 5.4 box without SMP mptables show both CPUs
though:

...
MP Config Base Table Entries:
--
Processors: APIC ID Version State   Family  Model   StepFlags
 0   0x11BSP, usable 6   11  1
  0x383fbff
 1   0x11AP, usable  6   11  1
  0x383fbff
...

dmesg.boot says only cpu0 is found, top doesn't see
the other one, too.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Multiple CPUs without SMP

2005-10-20 Thread Greg 'groggy' Lehey
On Thursday, 20 October 2005 at 15:15:39 +0400, Andrew P. wrote:
 I'm kinda confused.

Yes, that's possible.

 Can I use both processors with a non-SMP kernel?

No.

 I don't need SMP, I would settle on manually assigning CPU affinity
 to each processor, but I gather FreeBSD can only handle 2+ CPUs with
 SMP enabled.

I'm wondering if you have misunderstood the purpose of SMP
(symmetrical multiprocessors).  That's the architecture of the
motherboard.  If you want to use the second processor, you're
effectively saying that you want to use SMP.  An SMP kernel is one
that supports them.

Possibly you're considering using each processor for different
purposes.  That's conceivable, but FreeBSD doesn't support it.

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipients.
For more information, see http://www.lemis.com/questions.html
See complete headers for address and phone numbers
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Multiple CPUs without SMP

2005-10-20 Thread Andrew P.
On 10/20/05, Greg 'groggy' Lehey [EMAIL PROTECTED] wrote:
 On Thursday, 20 October 2005 at 15:15:39 +0400, Andrew P. wrote:
  I'm kinda confused.

 Yes, that's possible.

  Can I use both processors with a non-SMP kernel?

 No.

  I don't need SMP, I would settle on manually assigning CPU affinity
  to each processor, but I gather FreeBSD can only handle 2+ CPUs with
  SMP enabled.

 I'm wondering if you have misunderstood the purpose of SMP
 (symmetrical multiprocessors).  That's the architecture of the
 motherboard.  If you want to use the second processor, you're
 effectively saying that you want to use SMP.  An SMP kernel is one
 that supports them.

 Possibly you're considering using each processor for different
 purposes.  That's conceivable, but FreeBSD doesn't support it.

 Greg
 --
 When replying to this message, please copy the original recipients.
 If you don't, I may ignore the reply or reply to the original recipients.
 For more information, see http://www.lemis.com/questions.html
 See complete headers for address and phone numbers


Thanks for your answer.

NUMA architecture would fit some of our servers
so much better. But SMP has its own strengths
which we'll try to use.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Multiple CPUs without SMP

2005-10-20 Thread Greg 'groggy' Lehey
On Thursday, 20 October 2005 at 18:06:29 +0400, Andrew P. wrote:
 On 10/20/05, Greg 'groggy' Lehey [EMAIL PROTECTED] wrote:
 On Thursday, 20 October 2005 at 15:15:39 +0400, Andrew P. wrote:
 I don't need SMP, I would settle on manually assigning CPU affinity
 to each processor, but I gather FreeBSD can only handle 2+ CPUs with
 SMP enabled.

 I'm wondering if you have misunderstood the purpose of SMP
 (symmetrical multiprocessors).  That's the architecture of the
 motherboard.  If you want to use the second processor, you're
 effectively saying that you want to use SMP.  An SMP kernel is one
 that supports them.

 Thanks for your answer.

 NUMA architecture would fit some of our servers so much better. But
 SMP has its own strengths which we'll try to use.

Right, but NUMA is different hardware from SMP.  We don't support any
real NUMA hardware.

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipients.
For more information, see http://www.lemis.com/questions.html
See complete headers for address and phone numbers
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Multiple CPUs

2004-05-22 Thread Matthew Seaman
On Fri, May 21, 2004 at 03:55:23PM -0700, Nicholas Bernstein wrote:
 How can one detect if a system is using multiple CPUs? 
 I'm running freebsd 4.9 and I was hoping that either uname or top would
 give some information as to whether or not the second cpu is being used.
 dmegs outputs the following:
 
   CPU: Intel(R) Xeon(TM) CPU 2.40GHz (2399.33-MHz 686-class CPU)
 
 but I want to make sure that this is not just showing it's been
 detected, as opposed to being used. 

% sysctl hw.ncpu

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgpMfgdHc11OX.pgp
Description: PGP signature


Multiple CPUs

2004-05-21 Thread Nicholas Bernstein
How can one detect if a system is using multiple CPUs? 
I'm running freebsd 4.9 and I was hoping that either uname or top would
give some information as to whether or not the second cpu is being used.
dmegs outputs the following:

CPU: Intel(R) Xeon(TM) CPU 2.40GHz (2399.33-MHz 686-class CPU)

but I want to make sure that this is not just showing it's been
detected, as opposed to being used. 

-- 
Nicholas Bernstein, Unix Systems Administrator
Document Systems Inc.
http://docmagic.com
[EMAIL PROTECTED]

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


Re: Multiple CPUs

2004-05-21 Thread Micheal Patterson


- Original Message - 
From: Nicholas Bernstein [EMAIL PROTECTED]
To: freebsd-questions [EMAIL PROTECTED]
Sent: Friday, May 21, 2004 5:55 PM
Subject: Multiple CPUs


 How can one detect if a system is using multiple CPUs?
 I'm running freebsd 4.9 and I was hoping that either uname or top would
 give some information as to whether or not the second cpu is being used.
 dmegs outputs the following:

 CPU: Intel(R) Xeon(TM) CPU 2.40GHz (2399.33-MHz 686-class CPU)

 but I want to make sure that this is not just showing it's been
 detected, as opposed to being used.

 -- 
 Nicholas Bernstein, Unix Systems Administrator
 Document Systems Inc.
 http://docmagic.com
 [EMAIL PROTECTED]


The first line of output from top shows the following information. The C
column indicates that it's a multi-proc system and which CPU a given process
is currently running on.

PID USERNAME  PRI NICE  SIZERES STATE  C   TIME   WCPUCPU
COMMAND

You can also type /var/run/dmesg.boot and it will show you the CPU
information as well.

--

Micheal Patterson
TSG Network Administration
405-917-0600

Confidentiality Notice:  This e-mail message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the original
message.

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


Multiple CPUs...verifying

2003-10-22 Thread Marco Greene (Home)


Does FreeBSD autodetect multiple CPU's or do you specifically have to
configure the kernel and recompile?

I tried downloading the latest code using cvsup..commenting out the
following two lines...and tried to follow the make world procedure as
outline in the handbook.  However, when I try to boot with the new
kernel...it doesn't work.

Also, how do you verify whether or not both CPUs have been configured in the
kernel...and that they are in fact being used?

Other flavours of UNIX have mpstat or prtdiag...

Thanks,
Marco

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


Re: Multiple CPUs...verifying

2003-10-22 Thread Gerald Freymann
On Wed, 22 Oct 2003 22:27:13 -0400
Marco Greene (Home) [EMAIL PROTECTED] wrote:

|O|Does FreeBSD autodetect multiple CPU's or do you specifically have to
|O|configure the kernel and recompile?

 In my experiences with FreeBSD 4-4.8R, you have to uncomment two lines in
the kernel config file.

# To make an SMP kernel, the next two are needed
optionsSMP # Symmetric MultiProcessor Kernel
optionsAPIC_IO # Symmetric (APIC) I/O

 and then rebuildworld and kernel. 

 World because there are programs that will compile differently if there
are multiple CPU's (at least I think that's right!)

 Kernel for obvious reason.

|O|outline in the handbook.  However, when I try to boot with the new
|O|kernel...it doesn't work.

 I think you're going to have to give more information than it doesn't
work if you expect anybody to attempt to offer advice.

|O|Also, how do you verify whether or not both CPUs have been configured
|O|in the kernel...and that they are in fact being used?

 type:   dmesg |more

 and look through the results. When my dual-cpu loads up, I see where
there 2nd CPU is acknowledged. Even doing a 'top' shows me which CPU is in
use for each program.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Scary Gerry -- Senior Systems Manager
 [EMAIL PROTECTED]
 -For web-hosting, Perl, PHP  MySql 
  programming see http://www.interpool.ca
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

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