Re: Seeing processors induvidually on an SMP system dmesg

2011-08-24 Thread Siju George
On Wed, Aug 24, 2011 at 11:25 AM, Peter Avalos pe...@theshell.com wrote:
 On Wed, Aug 24, 2011 at 10:15:25AM +0530, Siju George wrote:
 On Tue, Aug 23, 2011 at 7:27 PM, Sascha Wildner s...@online.de wrote:
 
  What does 'sysctl hw.ncpu' say?
 

 blk-build# sysctl hw.ncpu
 hw.ncpu: 4


 Try top -M.


Yes it works  :-)

load averages:  0.54,  0.57,  0.41;   up 0+01:56:36

  06:15:39
52 processes: 1 running, 51 active, 1 zombie
CPU states:  1.5% user,  0.0% nice,  9.0% system,  0.8% interrupt, 88.7% idle
CPU states:  2.3% user,  0.0% nice, 14.0% system,  0.0% interrupt, 83.7% idle
CPU states:  2.3% user,  0.0% nice, 10.1% system,  0.0% interrupt, 87.6% idle
CPU states:  9.3% user,  0.0% nice,  8.6% system,  0.0% interrupt, 82.1% idle
Memory: 1115M Active, 1644M Inact, 959M Wired, 145M Cache, 407M Buf, 48M Free
Swap: 64G Total, 832K Used, 64G Free

What about the dmesg?

Thanks

--Siju


Re: Seeing processors induvidually on an SMP system dmesg

2011-08-24 Thread Sascha Wildner
On Wed, 24 Aug 2011 08:16:59 +0200, Siju George sgeorge...@gmail.com  
wrote:



What about the dmesg?


Well, the part you pasted shows the one physical CPU that you have.

Somewhere below you'll find SMP initialization messages, etc. You might  
have to boot verbose to see it.


Sascha


Re: Seeing processors induvidually on an SMP system dmesg

2011-08-24 Thread Siju George
On Wed, Aug 24, 2011 at 11:57 AM, Max Herrgard herrg...@gmail.com wrote:
 On 23 aug 2011, at 14.32, Siju George wrote:
 The kernel boots DragonFly v2.11.0.586.ga700a-DEVELOPMENT

 on an Intel Quadcore box.

 But in dmesg I only see 1 CPU

 =
 DragonFly v2.11.0.586.ga700a-DEVELOPMENT #0: Mon Aug 22 13:26:20 IST 2011
    root@blk-build.hifxnx.local:/usr/obj/usr/src/sys/X86_64_GENERIC
 TSC clock: 2493791010 Hz, i8254 clock: 1193201 Hz
 CPU: Intel(R) Core(TM)2 Quad CPU    Q8300  @ 2.50GHz (2493.76-MHz K8-class 
 CPU)
  Origin = GenuineIntel  Id = 0x1067a  Stepping = 10
  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=0x408e3bdSSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE
  AMD Features=0x20100800SYSCALL,NX,LM
  AMD Features2=0x1LAHF
 real memory  = 4284808192 (4086 MB)
 avail memory = 3991494656 (3806 MB)
 =

 Try looking further down in the dmesg or try 'dmesg | grep -i cpu'



blk-build# dmesg | grep -i cpu
CPU: Intel(R) Core(TM)2 Quad CPUQ8300  @ 2.50GHz (2493.76-MHz K8-class CPU)

This is it

--Siju



Re: Seeing processors induvidually on an SMP system dmesg

2011-08-24 Thread Chris Turner

On 08/23/11 07:32, Siju George wrote:


Is this normal? Shouldn't the cores be listed separately?


You have to use 'top -M' to see the per-cpu usage percentage
instead of the overall average.

Individual processes should still be listed as running on
individual CPU's in the process display without this option,
however.

Cheers,

- Chris



Re: Seeing processors induvidually on an SMP system dmesg

2011-08-24 Thread Siju George
On Wed, Aug 24, 2011 at 2:38 PM, Chris Turner
c.tur...@199technologies.com wrote:
 On 08/23/11 07:32, Siju George wrote:

 Is this normal? Shouldn't the cores be listed separately?

 You have to use 'top -M' to see the per-cpu usage percentage
 instead of the overall average.

 Individual processes should still be listed as running on
 individual CPU's in the process display without this option,
 however.


Yes I noticed that now only thanks :-)

--Siju


Re: Seeing processors induvidually on an SMP system dmesg

2011-08-24 Thread Thomas Nikolajsen
What about the dmesg?

It isn't always shown anymore (only if system have dst/pst support I think);
this is a change from 2.10, I think sephe introduced change with his acpi work.
This work makes many more systems work with DragonFly (interrupt routing),
also with SMP ;-)

Eg. my new (work) laptop (hp 2540p) doesn't have mptable (according to 
mptable(8)),
but it works great with DragonFly master, including SMP
(only catch is built in wlan, but thats another story: bcm43xx; we had bwi(4), 
it will come back ;).

 -thomas



getty repeating too quickly on port /dev/ttyv0

2011-08-24 Thread Siju George
Hi,

I Finally got Xorg and FVWM compiled on v2.11.0.586.ga700a-DEVELOPMENT
from pkgsrc-2011Q2
I changed my shell to /usr/pkg/bin/bash and logged in.
Put exec fvwm into .xinitrc and typed startx. Everything came up fine.

opening up an xterm and trying to type su I got this

$sss

Tried again in another xterm same effect.
Quit Xterm and in the console I tried to type startx but it comes as.

$ssttt

I quit the colsole and there is this message

Aug 24 11:10:28 blk-build init: getty repeating too quickly on port
/dev/ttyv0, sleeping 30 secs

I try to login the console again as sgeorge but

login: s   :-(

How to trouble shoot this?

Thanks

--Siju


Firefox 2011Q2 compile error

2011-08-24 Thread Siju George
Hi,

I get this compiling firefox from pkgsrc-2011Q2 0n
v2.11.0.586.ga700a-DEVELOPMENT :-(


c++ -o jsnativestack.o -c  -I./../../dist/system_wrappers_js -include
./config/gcc_hidden.h -DOSTYPE=\DragonFly2.11-DEVELOPMENT\
-DOSARCH=DragonFly -DEXPORT_JS_API -D__STDC_LIMIT_MACROS
-DJS_HAS_CTYPES -DDLL_PREFIX=\lib\ -DDLL_SUFFIX=\.so\
-Ictypes/libffi/include -I.  -I. -I. -I./../../dist/include
-I./../../dist/include/nsprpub
-I/usr/pkgsrc/devel/xulrunner/work/mozilla-2.0/dist/include/nspr   -I.
-I./assembler -I./yarr  -fPIC -I/usr/include -I/usr/pkg/include
-I/usr/pkg/include/freetype2 -fno-rtti -fno-exceptions -Wall
-Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy
-Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof
-Wno-variadic-macros -Werror=return-type -I/usr/include
-I/usr/pkg/include -I/usr/pkg/include/freetype2 -fno-strict-aliasing
-pthread -pipe  -DNDEBUG -DTRIMMED -O2 -DUSE_SYSTEM_MALLOC=1
-DENABLE_ASSEMBLER=1 -DENABLE_JIT=1  -I/usr/include -I/usr/pkg/include
-I/usr/pkg/include/freetype2 -DMOZILLA_CLIENT -include ./js-confdefs.h
-MD -MF .deps/jsnativestack.pp jsnativestack.cpp
jsnativestack.cpp: In function 'void* js::GetNativeStackBaseImpl()':
jsnativestack.cpp:207: error: 'pthread_getattr_np' was not declared in
this scope
gmake[3]: *** [jsnativestack.o] Error 1
gmake[3]: Leaving directory
`/usr/pkgsrc/devel/xulrunner/work/mozilla-2.0/js/src'
gmake[2]: *** [libs_tier_js] Error 2
gmake[2]: Leaving directory `/usr/pkgsrc/devel/xulrunner/work/mozilla-2.0'
gmake[1]: *** [tier_js] Error 2
gmake[1]: Leaving directory `/usr/pkgsrc/devel/xulrunner/work/mozilla-2.0'
gmake: *** [all] Error 2
*** Error code 2

Stop.
bmake: stopped in /usr/pkgsrc/devel/xulrunner
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/devel/xulrunner
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/www/firefox
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/www/firefox
You have new mail.
blk-build#

Thanks

--Siju


Re: Firefox 2011Q2 compile error

2011-08-24 Thread Alex Hornung
http://gitweb.dragonflybsd.org/dragonfly.git/commit/e7322b09faff75b1298e9bfe444633425d173536

On 24 August 2011 13:46, Siju George sgeorge...@gmail.com wrote:
 Hi,

 I get this compiling firefox from pkgsrc-2011Q2 0n
 v2.11.0.586.ga700a-DEVELOPMENT :-(


 c++ -o jsnativestack.o -c  -I./../../dist/system_wrappers_js -include
 ./config/gcc_hidden.h -DOSTYPE=\DragonFly2.11-DEVELOPMENT\
 -DOSARCH=DragonFly -DEXPORT_JS_API -D__STDC_LIMIT_MACROS
 -DJS_HAS_CTYPES -DDLL_PREFIX=\lib\ -DDLL_SUFFIX=\.so\
 -Ictypes/libffi/include -I.  -I. -I. -I./../../dist/include
 -I./../../dist/include/nsprpub
 -I/usr/pkgsrc/devel/xulrunner/work/mozilla-2.0/dist/include/nspr   -I.
 -I./assembler -I./yarr  -fPIC -I/usr/include -I/usr/pkg/include
 -I/usr/pkg/include/freetype2 -fno-rtti -fno-exceptions -Wall
 -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy
 -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof
 -Wno-variadic-macros -Werror=return-type -I/usr/include
 -I/usr/pkg/include -I/usr/pkg/include/freetype2 -fno-strict-aliasing
 -pthread -pipe  -DNDEBUG -DTRIMMED -O2 -DUSE_SYSTEM_MALLOC=1
 -DENABLE_ASSEMBLER=1 -DENABLE_JIT=1  -I/usr/include -I/usr/pkg/include
 -I/usr/pkg/include/freetype2 -DMOZILLA_CLIENT -include ./js-confdefs.h
 -MD -MF .deps/jsnativestack.pp jsnativestack.cpp
 jsnativestack.cpp: In function 'void* js::GetNativeStackBaseImpl()':
 jsnativestack.cpp:207: error: 'pthread_getattr_np' was not declared in
 this scope
 gmake[3]: *** [jsnativestack.o] Error 1
 gmake[3]: Leaving directory
 `/usr/pkgsrc/devel/xulrunner/work/mozilla-2.0/js/src'
 gmake[2]: *** [libs_tier_js] Error 2
 gmake[2]: Leaving directory `/usr/pkgsrc/devel/xulrunner/work/mozilla-2.0'
 gmake[1]: *** [tier_js] Error 2
 gmake[1]: Leaving directory `/usr/pkgsrc/devel/xulrunner/work/mozilla-2.0'
 gmake: *** [all] Error 2
 *** Error code 2

 Stop.
 bmake: stopped in /usr/pkgsrc/devel/xulrunner
 *** Error code 1

 Stop.
 bmake: stopped in /usr/pkgsrc/devel/xulrunner
 *** Error code 1

 Stop.
 bmake: stopped in /usr/pkgsrc/www/firefox
 *** Error code 1

 Stop.
 bmake: stopped in /usr/pkgsrc/www/firefox
 You have new mail.
 blk-build#

 Thanks

 --Siju




Re: Seeing processors induvidually on an SMP system dmesg

2011-08-24 Thread Siju George
On Wed, Aug 24, 2011 at 12:06 PM, Sascha Wildner s...@online.de wrote:
 On Wed, 24 Aug 2011 08:16:59 +0200, Siju George sgeorge...@gmail.com
 wrote:

 What about the dmesg?

 Well, the part you pasted shows the one physical CPU that you have.

 Somewhere below you'll find SMP initialization messages, etc. You might have
 to boot verbose to see it.


Yes verbose show them.

CPU: Intel(R) Core(TM)2 Quad CPUQ8300  @ 2.50GHz (2493.76-MHz K8-class CPU)
  Origin = GenuineIntel  Id = 0x1067a  Stepping = 10
  
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=0x408e3bdSSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE
  AMD Features=0x20100800SYSCALL,NX,LM
  AMD Features2=0x1LAHF
real memory  = 4284808192 (4086 MB)
Physical memory chunk(s):
0x0002 - 0x0007, 393216 bytes (96 pages)
0x0178 - 0xcf69, 3455188992 bytes (843552 pages)
0x1 - 0x12ffd, 805175296 bytes (196576 pages)
avail memory = 3991494656 (3806 MB)
ACPI MADT: LAPIC address 0xfee0, flags 0x1
ACPI MADT: BSP apic id 0
ACPI MADT: cpu id 1, apic id 0
ACPI MADT: cpu id 2, apic id 1
ACPI MADT: cpu id 3, apic id 2
ACPI MADT: cpu id 4, apic id 3
lapic: divisor index 0, frequency 166250394 Hz
SMP: CPU0 apic_initialize():
 lint0: 0x00010700 lint1: 0x0400 TPR: 0x SVR: 0x01ff
SMP: Waiting APs LAPIC initialization
SMP: CPU2 apic_initialize():
 lint0: 0x0001 lint1: 0x00010400 TPR: 0x SVR: 0x01ff
SMP: CPU1 apic_initialize():
 lint0: 0x0001 lint1: 0x00010400 TPR: 0x SVR: 0x01ff
SMP: CPU3 apic_initialize():
 lint0: 0x0001 lint1: 0x00010400 TPR: 0x SVR: 0x01ff

Thanks :-)

--Siju