DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD General

NetBSD General Other questions regarding NetBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 24th October 2014
philo_neo71 philo_neo71 is offline
Port Guard
 
Join Date: Jul 2009
Posts: 42
Thanked 0 Times in 0 Posts
Default Multi cores

Hi,
I have intalled netBSD 6.1 on Bi quad cores Opteron 2347, when i open the system monitor i see only one cpu, i've 8 cpu, how to activate all cpu on this machine ?
I have compiled an new kernel but not changes !

Regards
Philippe
Reply With Quote
  #2   (View Single Post)  
Old 24th October 2014
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 579
Thanked 14 Times in 13 Posts
Default

system monitor seems to be gnome thing, so I'm not familiar with it, but conceivably there could be a bug with it. Could you post something more basic like the dmesg output?
Reply With Quote
  #3   (View Single Post)  
Old 24th October 2014
philo_neo71 philo_neo71 is offline
Port Guard
 
Join Date: Jul 2009
Posts: 42
Thanked 0 Times in 0 Posts
Default

Ok,
i do the command <dmesg> and i see 8 cpus.
System monitor are bugs !

Thanks
Philippe
Reply With Quote
  #4   (View Single Post)  
Old 24th October 2014
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 579
Thanked 14 Times in 13 Posts
Default

You'e welcome, and too bad about bugs in your preferred program. I'm not sure what would be the best way to report them. Alternatively, there are likely a number of similar programs. I happen to use gkrellm. You could try digging around pkgsrc and experimenting with some.
Reply With Quote
  #5   (View Single Post)  
Old 24th October 2014
Oko's Avatar
Oko Oko is offline
Fsck Surgeon
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 859
Thanked 36 Times in 32 Posts
Default

Quote:
Originally Posted by philo_neo71 View Post
Hi,
I have intalled netBSD 6.1 on Bi quad cores Opteron 2347, when i open the system monitor i see only one cpu, i've 8 cpu, how to activate all cpu on this machine ?
I have compiled an new kernel but not changes !

Regards
Philippe
What is a system monitor? I have never heard of it. To see the number of CPUs something like this should work (I don't use NetBSD so not 100%)
Code:
# sysctl hw.ncpu
On OpenBSD this shows you the number of CPUs seeing by kernel. Have you tried using top? On some BSDs like OpenBSD top will immediately display separately all CPUs. On some systems like OpenBSD top will display per-cpu CPU usage statistics. On some systems like FreeBSD and DragonFly BSD you will need to use switch -P

Code:
# top -P
Reply With Quote
  #6   (View Single Post)  
Old 1 Week Ago
muflon muflon is offline
Fdisk Soldier
 
Join Date: Jul 2013
Location: Poland
Posts: 48
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by philo_neo71 View Post
Hi,
I have intalled netBSD 6.1 on Bi quad cores Opteron 2347, when i open the system monitor i see only one cpu, i've 8 cpu, how to activate all cpu on this machine ?
I have compiled an new kernel but not changes !
First of all; in NetBSD there is fine tool called: cpuctl [man (8) cpuctl] to control and inspect the state of CPUs in the system.

Example [1]
To list the current processors/cores;
Code:
argus# cpuctl list
Num  HwId Unbound LWPs Interrupts Last change              #Intr
---- ---- ------------ ---------- ------------------------ -----
0    0    online       intr       Fri Dec 12 10:22:27 2014 12
1    1    online       intr       Fri Dec 12 10:22:27 2014 0
Example [2]
Identification of the cpu info printed on the list of example [1]
Code:
argus# cpuctl identify 0
cpu0: Intel (686-class), 2800.22 MHz, id 0xf34
cpu0: features  0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features  0xbfebfbff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR>
cpu0: features  0xbfebfbff<SSE,SSE2,SS,HTT,TM,SBF>
cpu0: features2 0x441d<SSE3,DTES64,MONITOR,DS-CPL,CID,xTPR>
cpu0: "Intel(R) Pentium(R) 4 CPU 2.80GHz"
cpu0: I-cache 12K uOp cache 8-way, D-cache 16KB 64B/line 8-way
cpu0: L2 cache 1MB 64B/line 8-way
cpu0: ITLB 4K/4M: 64 entries
cpu0: DTLB 4K/4M: 64 entries
cpu0: Initial APIC ID 0
cpu0: Cluster/Package ID 0
cpu0: SMT ID 0
cpu0: family 0f model 03 extfamily 00 extmodel 00 stepping 04
cpu0: UCode version: ?
Example [3]
Turning ON or OFF exact cpu/core:

Code:
argus# cpuctl list
Num  HwId Unbound LWPs Interrupts Last change              #Intr
---- ---- ------------ ---------- ------------------------ -----
0    0    online       intr       Fri Dec 12 10:22:27 2014 12
1    1    online       intr       Fri Dec 12 10:22:27 2014 0

argus# cpuctl offline 0

argus# cpuctl list

Num  HwId Unbound LWPs Interrupts Last change              #Intr
---- ---- ------------ ---------- ------------------------ -----
0    0    offline      intr       Fri Dec 12 12:37:32 2014 12
1    1    online       intr       Fri Dec 12 10:22:27 2014 0
Code:
76 processes: 1 runnable, 60 sleeping, 13 stopped, 2 on CPU
CPU0 states:  0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt,  100% idle
CPU1 states: 89.4% user,  0.0% nice, 10.2% system,  0.0% interrupt,  0.4% idle
Memory: 2227M Act, 111M Inact, 6188K Wired, 16M Exec, 2279M File, 486M Free
Swap: 3073M Total, 3073M Free

  PID USERNAME PRI NICE   SIZE   RES STATE      TIME   WCPU    CPU COMMAND
  966 root      85    0  4452K 3376K kqueue/1   1:57  0.44%  0.44% tmux
    0 root       0    0     0K   19M CPU/0      2:05  0.00%  0.00% [system]
 2415 root      43    0  3368K 1652K CPU/1      0:00  0.00%  0.00% top
24632 root      35    0    15M   10M RUN/1      0:00  0.00%  0.00% cc1
  252 root      85    0  6036K 6208K pause/1    0:00  0.00%  0.00% ntpd
18263 root      85    0    10M 4432K select/1   0:00  0.00%  0.00% sshd
 4377 root      85    0  5156K 3440K wait/1     0:00  0.00%  0.00% make
Above presentation was done on my Dell PowerEdge 750; with Pentium 4 Prescott with HT Enable, running on NetBSD 6.1_CURRENT; during compilation of qemu from pkgsrc. You can see the TOP listing; that the cpu Nr 0 is offline and it's state is 100% idle.


And; last but not least; recommendation to read an article about the Thread scheduling and related interfaces in NetBSD 5.0 written by Mindaugas Rasiukevicius.

Salute,
Marcin

Last edited by muflon; 1 Week Ago at 11:54 AM.
Reply With Quote
  #7   (View Single Post)  
Old 1 Week Ago
Oko's Avatar
Oko Oko is offline
Fsck Surgeon
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 859
Thanked 36 Times in 32 Posts
Default

Quote:
Originally Posted by muflon View Post
First of all; in NetBSD there is fine tool called: cpuctl [man (8) cpuctl] to control and inspect the state of CPUs in the system.

Example [1]
To list the current processors/cores;
Code:
argus# cpuctl list
Num  HwId Unbound LWPs Interrupts Last change              #Intr
---- ---- ------------ ---------- ------------------------ -----
0    0    online       intr       Fri Dec 12 10:22:27 2014 12
1    1    online       intr       Fri Dec 12 10:22:27 2014 0
Example [2]
Identification of the cpu info printed on the list of example [1]
Code:
argus# cpuctl identify 0
cpu0: Intel (686-class), 2800.22 MHz, id 0xf34
cpu0: features  0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features  0xbfebfbff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR>
cpu0: features  0xbfebfbff<SSE,SSE2,SS,HTT,TM,SBF>
cpu0: features2 0x441d<SSE3,DTES64,MONITOR,DS-CPL,CID,xTPR>
cpu0: "Intel(R) Pentium(R) 4 CPU 2.80GHz"
cpu0: I-cache 12K uOp cache 8-way, D-cache 16KB 64B/line 8-way
cpu0: L2 cache 1MB 64B/line 8-way
cpu0: ITLB 4K/4M: 64 entries
cpu0: DTLB 4K/4M: 64 entries
cpu0: Initial APIC ID 0
cpu0: Cluster/Package ID 0
cpu0: SMT ID 0
cpu0: family 0f model 03 extfamily 00 extmodel 00 stepping 04
cpu0: UCode version: ?
Example [3]
Turning ON or OFF exact cpu/core:

Code:
argus# cpuctl list
Num  HwId Unbound LWPs Interrupts Last change              #Intr
---- ---- ------------ ---------- ------------------------ -----
0    0    online       intr       Fri Dec 12 10:22:27 2014 12
1    1    online       intr       Fri Dec 12 10:22:27 2014 0

argus# cpuctl offline 0

argus# cpuctl list

Num  HwId Unbound LWPs Interrupts Last change              #Intr
---- ---- ------------ ---------- ------------------------ -----
0    0    offline      intr       Fri Dec 12 12:37:32 2014 12
1    1    online       intr       Fri Dec 12 10:22:27 2014 0
Code:
76 processes: 1 runnable, 60 sleeping, 13 stopped, 2 on CPU
CPU0 states:  0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt,  100% idle
CPU1 states: 89.4% user,  0.0% nice, 10.2% system,  0.0% interrupt,  0.4% idle
Memory: 2227M Act, 111M Inact, 6188K Wired, 16M Exec, 2279M File, 486M Free
Swap: 3073M Total, 3073M Free

  PID USERNAME PRI NICE   SIZE   RES STATE      TIME   WCPU    CPU COMMAND
  966 root      85    0  4452K 3376K kqueue/1   1:57  0.44%  0.44% tmux
    0 root       0    0     0K   19M CPU/0      2:05  0.00%  0.00% [system]
 2415 root      43    0  3368K 1652K CPU/1      0:00  0.00%  0.00% top
24632 root      35    0    15M   10M RUN/1      0:00  0.00%  0.00% cc1
  252 root      85    0  6036K 6208K pause/1    0:00  0.00%  0.00% ntpd
18263 root      85    0    10M 4432K select/1   0:00  0.00%  0.00% sshd
 4377 root      85    0  5156K 3440K wait/1     0:00  0.00%  0.00% make
Above presentation was done on my Dell PowerEdge 750; with Pentium 4 Prescott with HT Enable, running on NetBSD 6.1_CURRENT; during compilation of qemu from pkgsrc. You can see the TOP listing; that the cpu Nr 0 is offline and it's state is 100% idle.


And; last but not least; recommendation to read an article about the Thread scheduling and related interfaces in NetBSD 5.0 written by Mindaugas Rasiukevicius.

Salute,
Marcin
Really cool post!!! I personally was not aware of this work.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
dump cores in custom folder ? hert OpenBSD General 1 3rd April 2013 03:39 AM
Altq on multi wan and multi zone environment apsaras OpenBSD Security 0 26th May 2012 11:19 PM
VirtualBox 4.0.6 adds support for up to 256 host cores J65nko News 0 27th April 2011 12:54 AM
Enhanced Speedstep only works for two CPU cores on FreeBSD 7.1 Android1 FreeBSD General 13 19th April 2009 08:59 PM
How to detect the frequency of individual cores in a dual core processor? mc_i2020 FreeBSD General 5 18th July 2008 01:46 AM


All times are GMT. The time now is 03:51 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick