Re: top and multiple CPU's
On 7/14/06, Bob [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bob Johnson wrote: I don't have a 6.1 SMP system to test it on. On a brand nwe 6,1 SMP system the first 2 lines of top -S PID USERNAME THR PRI NICE SIZERES STATE C TIME WCPUCOMMAND 11 root1 171 52 0K 8K RUN1 36.8H 90.38% idle:cpu1 12 root1 171 52 0K 8K RUN0 36.1H 90.33% idle:cpu0 [...] 757 bob 1 960 26128K 12340K CPU0 0 27:30 2.05% Xorg 797 bob 1 960 28976K 8424K select 1 46:19 0.73% kdeinit i have 6.1 installed and this is the snippet of top -S PID USERNAME THR PRI NICE SIZERES STATE C TIME WCPU COMMAND 12 root 1 171 52 0K 8K CPU2 2 100.8H 99.02% idle: cpu2 11 root 1 171 52 0K 8K CPU3 0 0:00 99.02% idle: cpu3 13 root 1 171 52 0K 8K CPU1 0 0:00 99.02% idle: cpu1 14 root 1 171 52 0K 8K RUN0 100.0H 98.97% idle: cpu0 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: top and multiple CPU's
use top -S There will be new column with 'C' tag which displays the the cpu id on which the process is running mptables to list the processors available On 7/13/06, stan [EMAIL PROTECTED] wrote: I just installed 6.1 stable (AMD64) on a Sun Ultra 40. This is a dual CPU machine. I have Linux installed on a similar machine. On the Linux box I can fire up top and type 1 to see the load on each CPU. This does not seem to work on the FreeBSD machine. Should it? How can I verify that the machine is using both CPU's ? Thanks. -- U.S. Encouraged by Vietnam Vote - Officials Cite 83% Turnout Despite Vietcong Terror - New York Times 9/3/1967 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: top and multiple CPU's
On Thu, Jul 13, 2006 at 06:08:50PM +0530, Ashok TM wrote: use top -S There will be new column with 'C' tag which displays the the cpu id on which the process is running mptables to list the processors available Hmm, cvsup# mptables mptables: Command not found. cvsup# man -k mptables mptables: nothing appropriate and the man page for top says that _s os: -S Show system processes in the display. Normally, system pro- cesses such as the pager and the swapper are not shown. This option makes them visible. Am I mising something? On 7/13/06, stan [EMAIL PROTECTED] wrote: I just installed 6.1 stable (AMD64) on a Sun Ultra 40. This is a dual CPU machine. I have Linux installed on a similar machine. On the Linux box I can fire up top and type 1 to see the load on each CPU. This does not seem to work on the FreeBSD machine. Should it? How can I verify that the machine is using both CPU's ? Thanks. -- U.S. Encouraged by Vietnam Vote - Officials Cite 83% Turnout Despite Vietcong Terror - New York Times 9/3/1967 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- U.S. Encouraged by Vietnam Vote - Officials Cite 83% Turnout Despite Vietcong Terror - New York Times 9/3/1967 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: top and multiple CPU's
On 7/13/06, stan [EMAIL PROTECTED] wrote: On Thu, Jul 13, 2006 at 06:08:50PM +0530, Ashok TM wrote: use top -S There will be new column with 'C' tag which displays the the cpu id on which the process is running mptables to list the processors available Hmm, cvsup# mptables mptables: Command not found. cvsup# man -k mptables mptables: nothing appropriate and the man page for top says that _s os: -S Show system processes in the display. Normally, system pro- cesses such as the pager and the swapper are not shown. This option makes them visible. Am I mising something? Perhaps you haven't actually tried it to see what happens. On 5.4, there is not an extra column, but top -S includes each CPU's idle percentage as a separate system process, so you can get some idea of how well balanced things are. Perhaps the description above was for 7-CURRENT and 6.1-R acts more like 5.4. I don't have a 6.1 SMP system to test it on. 5.4 also doesn't seem to have mptables. - Bob ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: top and multiple CPU's
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bob Johnson wrote: I don't have a 6.1 SMP system to test it on. On a brand nwe 6,1 SMP system the first 2 lines of top -S PID USERNAME THR PRI NICE SIZERES STATE C TIME WCPUCOMMAND 11 root1 171 52 0K 8K RUN1 36.8H 90.38% idle:cpu1 12 root1 171 52 0K 8K RUN0 36.1H 90.33% idle:cpu0 [...] 757 bob 1 960 26128K 12340K CPU0 0 27:30 2.05% Xorg 797 bob 1 960 28976K 8424K select 1 46:19 0.73% kdeinit Bob -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEttCxAexE5bK/mHkRAqSOAJ9Pfeb9cs/HVK+byS/CGihL6xJCXgCbBdIa VozoH2bkepHAo+mmcN8CFFY= =K9dz -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: top and multiple CPU's
On Thu, Jul 13, 2006 at 07:01:05PM -0400, Bob wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bob Johnson wrote: I don't have a 6.1 SMP system to test it on. On a brand nwe 6,1 SMP system the first 2 lines of top -S PID USERNAME THR PRI NICE SIZERES STATE C TIME WCPUCOMMAND 11 root1 171 52 0K 8K RUN1 36.8H 90.38% idle:cpu1 12 root1 171 52 0K 8K RUN0 36.1H 90.33% idle:cpu0 [...] 757 bob 1 960 26128K 12340K CPU0 0 27:30 2.05% Xorg 797 bob 1 960 28976K 8424K select 1 46:19 0.73% kdeinit Interesting From my machine: PID USERNAME THR PRI NICE SIZERES STATETIME WCPU COMMAND 11 root1 171 52 0K16K RUN 29.9H 99.02% idle 38 root1 200 0K16K syncer 2:01 0.00% syncer 24 root1 -68 -187 0K16K WAIT 1:28 0.00% irq21: nve0 ehci0 13 root1 -32 -151 0K16K WAIT 1:10 0.00% swi4: clock sio This leads me to think I have not gotten SMP working corectly on this machine. Is this a correct assumption? Also, I must admit to some amazement as to how diferntly top presents similar data on differeing OS'es. -- U.S. Encouraged by Vietnam Vote - Officials Cite 83% Turnout Despite Vietcong Terror - New York Times 9/3/1967 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: top and multiple CPU's
On Thu, Jul 13, 2006 at 06:03:49PM -0400, Bob Johnson wrote: On 7/13/06, stan [EMAIL PROTECTED] wrote: On Thu, Jul 13, 2006 at 06:08:50PM +0530, Ashok TM wrote: use top -S There will be new column with 'C' tag which displays the the cpu id on which the process is running mptables to list the processors available Hmm, cvsup# mptables mptables: Command not found. cvsup# man -k mptables mptables: nothing appropriate and the man page for top says that _s os: -S Show system processes in the display. Normally, system pro- cesses such as the pager and the swapper are not shown. This option makes them visible. Am I mising something? Perhaps you haven't actually tried it to see what happens. On 5.4, there is not an extra column, but top -S includes each CPU's idle percentage as a separate system process, so you can get some idea of how well balanced things are. Perhaps the description above was for 7-CURRENT and 6.1-R acts more like 5.4. I don't have a 6.1 SMP system to test it on. See my other reply. It appears that I don't get this, probably because I have not sucesfuly enable SMP on this machine. Which is what I was trying to asertain. -- U.S. Encouraged by Vietnam Vote - Officials Cite 83% Turnout Despite Vietcong Terror - New York Times 9/3/1967 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: top and multiple CPU's
Bob Johnson wrote: I don't have a 6.1 SMP system to test it on. On a brand nwe 6,1 SMP system the first 2 lines of top -S PID USERNAME THR PRI NICE SIZERES STATE C TIME WCPUCOMMAND 11 root1 171 52 0K 8K RUN1 36.8H 90.38% idle:cpu1 12 root1 171 52 0K 8K RUN0 36.1H 90.33% idle:cpu0 I also have a brand new 6.1 SMP system, but the first 2 lines of top -S show something very different: 11 root1 171 52 0K 8K CPU1 0 0:00 99.17% idle: cpu1 12 root1 171 52 0K 8K RUN0 288:46 98.14% idle: cpu0 Any ideas why cpu1 appears to be not doing anything? dmesg says: . CPU: Intel(R) Pentium(R) 4 CPU 3.20GHz (3206.31-MHz 686-class CPU) Origin = GenuineIntel Id = 0xf43 Stepping = 3 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 Features2=0x649dSSE3,RSVD2,MON,DS_CPL,EST,CNTX-ID,CX16,b14 AMD Features=0x2010NX,LM Logical CPUs per core: 2 real memory = 1072087040 (1022 MB) avail memory = 1039990784 (991 MB) FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 Rob Hurle - Rob Hurle Faculty of Asian Studies, ANU Home address and contacts: Tel: +61 2 6247 2397 PO Box 4013Fax: +61 2 6247 2397 AinslieCell phone: 0417 293 603 Australia e-mail: [EMAIL PROTECTED] - ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]