9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] multi-processor support
@ 2013-02-21  5:25 Deepak Chawla
  2013-02-21  5:27 ` erik quanstrom
  0 siblings, 1 reply; 8+ messages in thread
From: Deepak Chawla @ 2013-02-21  5:25 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 173 bytes --]

My Vbox VM has 2 CPUs, but /dev/sysstat only has one line entry for CPU ID
0. I'm running Erik's 9atom on the VM. Do I need to run anything to start
the other processor?

[-- Attachment #2: Type: text/html, Size: 200 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] multi-processor support
  2013-02-21  5:25 [9fans] multi-processor support Deepak Chawla
@ 2013-02-21  5:27 ` erik quanstrom
  2013-02-21  6:27   ` Deepak Chawla
  0 siblings, 1 reply; 8+ messages in thread
From: erik quanstrom @ 2013-02-21  5:27 UTC (permalink / raw)
  To: 9fans

> My Vbox VM has 2 CPUs, but /dev/sysstat only has one line entry for CPU ID
> 0. I'm running Erik's 9atom on the VM. Do I need to run anything to start
> the other processor?

does your plan9.ini have *nomp=1?

- erik



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] multi-processor support
  2013-02-21  5:27 ` erik quanstrom
@ 2013-02-21  6:27   ` Deepak Chawla
  2013-02-21  6:46     ` cinap_lenrek
  0 siblings, 1 reply; 8+ messages in thread
From: Deepak Chawla @ 2013-02-21  6:27 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 422 bytes --]

I do. I'll set it to 0.

BTW, whats with the * in the beginning of some of the names?


On Wed, Feb 20, 2013 at 11:27 PM, erik quanstrom <quanstro@quanstro.net>wrote:

> > My Vbox VM has 2 CPUs, but /dev/sysstat only has one line entry for CPU
> ID
> > 0. I'm running Erik's 9atom on the VM. Do I need to run anything to start
> > the other processor?
>
> does your plan9.ini have *nomp=1?
>
> - erik
>
>

[-- Attachment #2: Type: text/html, Size: 860 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] multi-processor support
  2013-02-21  6:27   ` Deepak Chawla
@ 2013-02-21  6:46     ` cinap_lenrek
  2013-02-21  8:26       ` Deepak Chawla
  0 siblings, 1 reply; 8+ messages in thread
From: cinap_lenrek @ 2013-02-21  6:46 UTC (permalink / raw)
  To: 9fans

* denotes that the key is for the kernel and will not show
up in the enviroment. sometimes, theres a difference between
a key having the value 0 and a key not being present. often,
the kernel will just check for the presence of a key and ignore
its value. but this is not the case for *nomp :)

--
cinap



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] multi-processor support
  2013-02-21  6:46     ` cinap_lenrek
@ 2013-02-21  8:26       ` Deepak Chawla
  2013-02-21  9:07         ` Gorka Guardiola
                           ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Deepak Chawla @ 2013-02-21  8:26 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs


[-- Attachment #1.1: Type: text/plain, Size: 671 bytes --]

I tried *nomp=0, but still only saw one CPU. I removed the line altogether,
now the kernel panics (see attachment). Any way to override the kernel
params in plan9.ini?

Also, is there a way to mount the plan9 internal partitions (9fat, fossil
etc) on Linux?




On Thu, Feb 21, 2013 at 12:46 AM, <cinap_lenrek@gmx.de> wrote:

> * denotes that the key is for the kernel and will not show
> up in the enviroment. sometimes, theres a difference between
> a key having the value 0 and a key not being present. often,
> the kernel will just check for the presence of a key and ignore
> its value. but this is not the case for *nomp :)
>
> --
> cinap
>
>

[-- Attachment #1.2: Type: text/html, Size: 1048 bytes --]

[-- Attachment #2: Plan9-multiproc-fail.jpg --]
[-- Type: image/jpeg, Size: 101807 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] multi-processor support
  2013-02-21  8:26       ` Deepak Chawla
@ 2013-02-21  9:07         ` Gorka Guardiola
  2013-02-21 11:24         ` David du Colombier
  2013-02-21 13:45         ` erik quanstrom
  2 siblings, 0 replies; 8+ messages in thread
From: Gorka Guardiola @ 2013-02-21  9:07 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 40 bytes --]

Have you ticked?

Enable the IO APIC

[-- Attachment #2: Type: text/html, Size: 66 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] multi-processor support
  2013-02-21  8:26       ` Deepak Chawla
  2013-02-21  9:07         ` Gorka Guardiola
@ 2013-02-21 11:24         ` David du Colombier
  2013-02-21 13:45         ` erik quanstrom
  2 siblings, 0 replies; 8+ messages in thread
From: David du Colombier @ 2013-02-21 11:24 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> Also, is there a way to mount the plan9 internal partitions
> (9fat, fossil etc) on Linux?

You could do it easily, using 9vx:

% disk/partfs plan9.img
% disk/fdisk -p /dev/sdXX/data >/dev/sdXX/ctl
% disk/prep -p /dev/sdXX/plan9 >/dev/sd00/ctl
% fossil/fossil -m 20 -f /dev/sdXX/fossil -c 'srv -AWP fossil' -c 'srv
-p fscons'
% mount /srv/fossil /n/fossil



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] multi-processor support
  2013-02-21  8:26       ` Deepak Chawla
  2013-02-21  9:07         ` Gorka Guardiola
  2013-02-21 11:24         ` David du Colombier
@ 2013-02-21 13:45         ` erik quanstrom
  2 siblings, 0 replies; 8+ messages in thread
From: erik quanstrom @ 2013-02-21 13:45 UTC (permalink / raw)
  To: 9fans

> Also, is there a way to mount the plan9 internal partitions (9fat, fossil
> etc) on Linux?

if you just want to rescue your plan9.ini, then boot the cd in that image
and edit it directly.  you can toss in new kernels that way, too.

if you get one kernel limping along in one vm and set up a nat for your
vms, you can pxe boot test kernels.  it makes life quite a bit nicer.

i know that this works for vmware fusion.  should probablly work for
workstation, too.

> I tried *nomp=0, but still only saw one CPU. I removed the line altogether,
> now the kernel panics (see attachment). Any way to override the kernel
> params in plan9.ini?

it appears that the lapic clock is reasonable, but what is not reasonable is the
cpu clock is 1/10th the frequency printed on the cpu0 line.

i think this may be because the emulation is confusing the 8253
timing.  if this is true, then the solution is to change this line

archmp.c:79: 	if(cpuserver && m->havetsc)

to remove the cpu server bit.  i removed this test from 9atom kernels,
since i didn't understand how the distinction could be helpful, and
it seemed like the seed of a very long debugging session starting with
the puzzle "why does the cpu kernel work on this hardware, but the
terminal not?"

- erik



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-02-21 13:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-21  5:25 [9fans] multi-processor support Deepak Chawla
2013-02-21  5:27 ` erik quanstrom
2013-02-21  6:27   ` Deepak Chawla
2013-02-21  6:46     ` cinap_lenrek
2013-02-21  8:26       ` Deepak Chawla
2013-02-21  9:07         ` Gorka Guardiola
2013-02-21 11:24         ` David du Colombier
2013-02-21 13:45         ` erik quanstrom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).