init_smp.run: limit spawned init's for x86_32

This commit is contained in:
Alexander Boettcher 2017-10-24 14:08:05 +02:00 committed by Christian Helmuth
parent 2eef27fca4
commit 5e5c705fbc
1 changed files with 10 additions and 2 deletions

View File

@ -20,7 +20,9 @@ if { [get_cmd_switch --autopilot] } {
assert_spec nova assert_spec nova
# set specifically for our nightly test hardware */ # set specifically for our nightly test hardware */
set cpus 8 if {[have_spec x86_64]} {
set cpus 8
}
set children 3 set children 3
} }
@ -43,6 +45,9 @@ append config {
<default-route><any-service><parent/><any-child/></any-service></default-route> <default-route><any-service><parent/><any-child/></any-service></default-route>
<default caps="100"/> <default caps="100"/>
<resource name="RAM" preserve="2M"/>
<resource name="CAP" preserve="100"/>
<start name="timer"> <start name="timer">
<resource name="CPU" quantum="10"/> <resource name="CPU" quantum="10"/>
<resource name="RAM" quantum="1M"/> <resource name="RAM" quantum="1M"/>
@ -72,6 +77,9 @@ for { set i 0} { $i < ${cpus} } { incr i} {
</default-route> </default-route>
<default caps="1000"/> <default caps="1000"/>
<resource name="RAM" preserve="2M"/>
<resource name="CAP" preserve="100"/>
<start name="bomb-master"> <start name="bomb-master">
<binary name="bomb"/> <binary name="bomb"/>
<resource name="CPU" quantum="90"/> <resource name="CPU" quantum="90"/>
@ -94,7 +102,7 @@ install_config $config
build_boot_image "core ld.lib.so init bomb timer" build_boot_image "core ld.lib.so init bomb timer"
append qemu_args " [expr 128 + $init_ram*$cpus] -nographic -smp $cpus" append qemu_args " -m [expr 128 + $init_ram*$cpus]M -nographic -smp $cpus"
if { [get_cmd_switch --autopilot] } { if { [get_cmd_switch --autopilot] } {