genode/repos/os/run
Norman Feske 9cba459958 base: remove Child::heap
This patch improves the accounting for the backing store of
session-state meta data. Originally, the session state used to be
allocated by a child-local heap partition fed from the child's RAM
session. However, whereas this approach was somehow practical from a
runtime's (parent's) point of view, the child component could not count
on the quota in its own RAM session. I.e., if the Child::heap grew at
the parent side, the child's RAM session would magically diminish. This
caused two problems. First, it violates assumptions of components like
init that carefully manage their RAM resources (and giving most of them
away their children). Second, if a child transfers most of its RAM
session quota to another RAM session (like init does), the child's RAM
session may actually not allow the parent's heap to grow, which is a
very difficult error condition to deal with.

In the new version, there is no Child::heap anymore. Instead, session
states are allocated from the runtime's RAM session. In order to let
children pay for these costs, the parent withdraws the local session
costs from the session quota donated from the child when the child
initiates a new session. Hence, in principle, all components on the
route of the session request take a small bite from the session quota to
pay for their local book keeping

Consequently, the session quota that ends up at the server may become
depleted more or less, depending on the route. In the case where the
remaining quota is insufficient for the server, the server responds with
'QUOTA_EXCEEDED'. Since this behavior must generally be expected, this
patch equips the client-side 'Env::session' implementation with the
ability to re-issue session requests with successively growing quota
donations.

For several of core's services (ROM, IO_MEM, IRQ), the default session
quota has now increased by 2 KiB, which should suffice for session
requests to up to 3 hops as is the common case for most run scripts. For
longer routes, the retry mechanism as described above comes into effect.
For the time being, we give a warning whenever the server-side quota
check triggers the retry mechanism. The warning may eventually be
removed at a later stage.
2017-02-28 12:59:23 +01:00
..
ahci_bench.run Make label prefixing more strict 2016-11-30 13:37:07 +01:00
ahci_blk.run Build dynamically linked executables by default 2016-12-14 11:22:27 +01:00
audio_out_click.run Build dynamically linked executables by default 2016-12-14 11:22:27 +01:00
blk_cache.run Build dynamically linked executables by default 2016-12-14 11:22:27 +01:00
blk.run Build dynamically linked executables by default 2016-12-14 11:22:27 +01:00
bomb.run run: remove vanished kernel/platform specifier 2017-01-13 13:07:01 +01:00
clipboard.run init: apply routing to environment sessions 2017-01-31 12:01:11 +01:00
cpu_quota.run run: remove vanished kernel/platform specifier 2017-01-13 13:07:01 +01:00
cpufreq.run os/test: transition to new base API 2017-01-31 12:01:15 +01:00
demo.run Introduce gpio_drv function in run scripts 2017-02-23 14:54:50 +01:00
dynamic_config_loader.run os/test: transition to new base API 2017-01-31 12:01:15 +01:00
dynamic_config_slave.run Build dynamically linked executables by default 2016-12-14 11:22:27 +01:00
dynamic_config.run Build dynamically linked executables by default 2016-12-14 11:22:27 +01:00
fault_detection.run Build dynamically linked executables by default 2016-12-14 11:22:27 +01:00
fb_bench.run Introduce gpio_drv function in run scripts 2017-02-23 14:54:50 +01:00
framebuffer.run run: remove vanished kernel/platform specifier 2017-01-13 13:07:01 +01:00
fs_log.run Make label prefixing more strict 2016-11-30 13:37:07 +01:00
gpio_drv.run Introduce gpio_drv function in run scripts 2017-02-23 14:54:50 +01:00
gpio_led.run Introduce gpio_drv function in run scripts 2017-02-23 14:54:50 +01:00
gpio_signal.run Introduce gpio_drv function in run scripts 2017-02-23 14:54:50 +01:00
init_smp.run os: add testcase for bomb/init on several CPUs 2017-01-13 13:05:45 +01:00
init.run Automated test for init 2017-02-28 12:59:23 +01:00
input_filter.run os: input_filter implementation and test 2017-02-27 15:37:49 +01:00
input.run input.run: add missing routing rules 2017-01-31 12:01:17 +01:00
kdb_uart_drv.run Build dynamically linked executables by default 2016-12-14 11:22:27 +01:00
loader.run Build dynamically linked executables by default 2016-12-14 11:22:27 +01:00
mixer.run Build dynamically linked executables by default 2016-12-14 11:22:27 +01:00
nic_loopback.run Build dynamically linked executables by default 2016-12-14 11:22:27 +01:00
panda_uart4_echo.run Build dynamically linked executables by default 2016-12-14 11:22:27 +01:00
part_blk.run Build dynamically linked executables by default 2016-12-14 11:22:27 +01:00
pci.run os: adapt pci test to component API 2016-12-23 16:52:09 +01:00
ram_fs_chunk.run os/test: transition to new base API 2017-01-31 12:01:15 +01:00
report_rom.run base: remove Child::heap 2017-02-28 12:59:23 +01:00
resource_request.run Build dynamically linked executables by default 2016-12-14 11:22:27 +01:00
resource_yield.run Build dynamically linked executables by default 2016-12-14 11:22:27 +01:00
rom_blk.run os/test: transition to new base API 2017-01-31 12:01:15 +01:00
rom_filter.run init: apply routing to environment sessions 2017-01-31 12:01:11 +01:00
rom_to_file.run Build dynamically linked executables by default 2016-12-14 11:22:27 +01:00
rtc.run Build dynamically linked executables by default 2016-12-14 11:22:27 +01:00
sd_card_bench.run sd_card_bench: exclude foc+imx_53 and odroid_xu 2017-01-31 12:01:17 +01:00
sd_card.run Build dynamically linked executables by default 2016-12-14 11:22:27 +01:00
signal.run os/test: transition to new base API 2017-01-31 12:01:15 +01:00
tar_rom.run init: apply routing to environment sessions 2017-01-31 12:01:11 +01:00
terminal_crosslink.run Build dynamically linked executables by default 2016-12-14 11:22:27 +01:00
thread_join.run os/test: transition to new base API 2017-01-31 12:01:15 +01:00
timed_semaphore.run os/test: transition to new base API 2017-01-31 12:01:15 +01:00
timeout.run Build dynamically linked executables by default 2016-12-14 11:22:27 +01:00
timer_accuracy.run timer_accuracy: generalize, automate, new base API 2017-01-31 12:01:15 +01:00
timer.run Build dynamically linked executables by default 2016-12-14 11:22:27 +01:00
trace.run Rework trace test and add to autopilot 2017-02-07 11:12:26 +01:00
tz_vmm.run tz_vmm: update to new API and clean up 2017-01-31 12:01:11 +01:00
uart.run Build dynamically linked executables by default 2016-12-14 11:22:27 +01:00
usb_block.run Introduce gpio_drv function in run scripts 2017-02-23 14:54:50 +01:00
vfs_stress_fs.run Ajdust run scenarios for strict policy matching 2016-06-22 12:21:41 +02:00
vfs_stress_ram.run Omit superfluous use of "CAP"/"SIGNAL" services 2016-05-09 13:24:51 +02:00
vmm.run run: remove vanished kernel/platform specifier 2017-01-13 13:07:01 +01:00
weak_ptr.run Build dynamically linked executables by default 2016-12-14 11:22:27 +01:00
xml_generator.run Build dynamically linked executables by default 2016-12-14 11:22:27 +01:00
xml_node.run init: apply routing to environment sessions 2017-01-31 12:01:11 +01:00