genode/repos/os/run
Norman Feske 1f4f119b1e Capability quota accounting and trading
This patch mirrors the accounting and trading scheme that Genode employs
for physical memory to the accounting of capability allocations.

Capability quotas must now be explicitly assigned to subsystems by
specifying a 'caps=<amount>' attribute to init's start nodes.
Analogously to RAM quotas, cap quotas can be traded between clients and
servers as part of the session protocol. The capability budget of each
component is maintained by the component's corresponding PD session at
core.

At the current stage, the accounting is applied to RPC capabilities,
signal-context capabilities, and dataspace capabilities. Capabilities
that are dynamically allocated via core's CPU and TRACE service are not
yet covered. Also, the capabilities allocated by resource multiplexers
outside of core (like nitpicker) must be accounted by the respective
servers, which is not covered yet.

If a component runs out of capabilities, core's PD service prints a
warning to the log. To observe the consumption of capabilities per
component in detail, the PD service is equipped with a diagnostic
mode, which can be enabled via the 'diag' attribute in the target
node of init's routing rules. E.g., the following route enables the
diagnostic mode for the PD session of the "timer" component:

  <default-route>
    <service name="PD" unscoped_label="timer">
      <parent diag="yes"/>
    </service>
    ...
  </default-route>

For subsystems based on a sub-init instance, init can be configured
to report the capability-quota information of its subsystems by
adding the attribute 'child_caps="yes"' to init's '<report>'
config node. Init's own capability quota can be reported by adding
the attribute 'init_caps="yes"'.

Fixes #2398
2017-05-31 13:16:06 +02:00
..
ahci_bench.run ahci: avoid deprecated warnings 2017-05-02 15:29:03 +02:00
ahci_blk.run ahci: remove disk image after test 2017-03-24 16:20:02 +01:00
audio_out_click.run Rename Linux audio driver to linux_audio_drv 2017-03-15 12:32:27 +01:00
blk_cache.run Assign cap quotas in run scripts and recipes 2017-05-31 13:16:06 +02:00
blk.run Build dynamically linked executables by default 2016-12-14 11:22:27 +01:00
bomb.run Assign cap quotas in run scripts and recipes 2017-05-31 13:16:06 +02:00
clipboard.run Assign cap quotas in run scripts and recipes 2017-05-31 13:16:06 +02:00
cpu_quota.run Assign cap quotas in run scripts and recipes 2017-05-31 13:16:06 +02:00
cpufreq.run os/test: transition to new base API 2017-01-31 12:01:15 +01:00
demo.run Assign cap quotas in run scripts and recipes 2017-05-31 13:16:06 +02: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 Assign cap quotas in run scripts and recipes 2017-05-31 13:16:06 +02:00
fault_detection.run Assign cap quotas in run scripts and recipes 2017-05-31 13:16:06 +02:00
fb_bench.run Assign cap quotas in run scripts and recipes 2017-05-31 13:16:06 +02:00
framebuffer.run Assign cap quotas in run scripts and recipes 2017-05-31 13:16:06 +02:00
fs_log.run Assign cap quotas in run scripts and recipes 2017-05-31 13:16:06 +02:00
fs_rom_update.run File_system: replace per-handle signals with notification packets 2017-05-31 13:16:01 +02: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 Assign cap quotas in run scripts and recipes 2017-05-31 13:16:06 +02:00
init.run Assign cap quotas in run scripts and recipes 2017-05-31 13:16:06 +02:00
input_filter.run Assign cap quotas in run scripts and recipes 2017-05-31 13:16:06 +02:00
input.run Assign cap quotas in run scripts and recipes 2017-05-31 13:16:06 +02:00
kdb_uart_drv.run Build dynamically linked executables by default 2016-12-14 11:22:27 +01:00
loader.run Assign cap quotas in run scripts and recipes 2017-05-31 13:16:06 +02:00
mixer.run Rename Linux audio driver to linux_audio_drv 2017-03-15 12:32:27 +01:00
nic_loopback.run Assign cap quotas in run scripts and recipes 2017-05-31 13:16:06 +02:00
panda_uart4_echo.run Build dynamically linked executables by default 2016-12-14 11:22:27 +01:00
part_blk.run Assign cap quotas in run scripts and recipes 2017-05-31 13:16:06 +02:00
pci.run Assign cap quotas in run scripts and recipes 2017-05-31 13:16:06 +02:00
ram_fs_chunk.run Assign cap quotas in run scripts and recipes 2017-05-31 13:16:06 +02:00
report_rom.run Capability quota accounting and trading 2017-05-31 13:16:06 +02:00
resource_request.run Assign cap quotas in run scripts and recipes 2017-05-31 13:16:06 +02:00
resource_yield.run Assign cap quotas in run scripts and recipes 2017-05-31 13:16:06 +02:00
rom_blk.run Assign cap quotas in run scripts and recipes 2017-05-31 13:16:06 +02:00
rom_filter.run Assign cap quotas in run scripts and recipes 2017-05-31 13:16:06 +02:00
rom_to_file.run os: fix session routes in rom_to_file.run 2017-02-28 12:59:28 +01:00
rtc.run Build dynamically linked executables by default 2016-12-14 11:22:27 +01:00
sd_card_bench.run Assign cap quotas in run scripts and recipes 2017-05-31 13:16:06 +02:00
sd_card.run sd_card: remove disk image after test 2017-03-24 16:20:01 +01:00
signal.run Assign cap quotas in run scripts and recipes 2017-05-31 13:16:06 +02:00
tar_rom.run Assign cap quotas in run scripts and recipes 2017-05-31 13:16:06 +02:00
terminal_crosslink.run Build dynamically linked executables by default 2016-12-14 11:22:27 +01:00
thread_join.run Assign cap quotas in run scripts and recipes 2017-05-31 13:16:06 +02:00
timed_semaphore.run Assign cap quotas in run scripts and recipes 2017-05-31 13:16:06 +02:00
timeout.run Assign cap quotas in run scripts and recipes 2017-05-31 13:16:06 +02:00
timer_accuracy.run Assign cap quotas in run scripts and recipes 2017-05-31 13:16:06 +02:00
timer.run Assign cap quotas in run scripts and recipes 2017-05-31 13:16:06 +02:00
trace.run Assign cap quotas in run scripts and recipes 2017-05-31 13:16:06 +02:00
tz_vmm.run Assign cap quotas in run scripts and recipes 2017-05-31 13:16:06 +02:00
uart.run Build dynamically linked executables by default 2016-12-14 11:22:27 +01:00
usb_block.run Re-enable usb_block test 2017-05-31 13:15:54 +02:00
vfs_stress_fs.run Assign cap quotas in run scripts and recipes 2017-05-31 13:16:06 +02:00
vfs_stress_ram.run Assign cap quotas in run scripts and recipes 2017-05-31 13:16:06 +02:00
vmm.run Assign cap quotas in run scripts and recipes 2017-05-31 13:16:06 +02:00
weak_ptr.run Build dynamically linked executables by default 2016-12-14 11:22:27 +01:00
xml_generator.run Assign cap quotas in run scripts and recipes 2017-05-31 13:16:06 +02:00
xml_node.run Assign cap quotas in run scripts and recipes 2017-05-31 13:16:06 +02:00