genode/repos/os/include
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
..
audio_in_session base: remove Child::heap 2017-02-28 12:59:23 +01:00
audio_out_session base: remove Child::heap 2017-02-28 12:59:23 +01:00
blit Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00
block os/include/block: API transition (fix 'deprecated' warnings) 2017-01-20 16:46:57 +01:00
block_session base: remove Child::heap 2017-02-28 12:59:23 +01:00
cli_monitor cli_monitor: API transition 2017-02-28 12:59:20 +01:00
decorator base: avoid use of deprecated base/printf.h 2016-08-29 17:27:10 +02:00
file_system base: avoid use of deprecated base/printf.h 2016-08-29 17:27:10 +02:00
file_system_session Add READ_READY support to file-system session 2017-02-23 14:54:51 +01:00
framebuffer_session Warn about the use of deprecated env() function 2017-01-13 13:07:13 +01:00
gpio Define Genode::size_t as unsigned long 2016-10-21 12:39:29 +02:00
gpio_session Warn about the use of deprecated env() function 2017-01-13 13:07:13 +01:00
gpu Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00
init base: remove Child::heap 2017-02-28 12:59:23 +01:00
input os: introduce Input::Event::CHARACTER type 2017-02-23 15:03:29 +01:00
input_session base: remove Child::heap 2017-02-28 12:59:23 +01:00
ldso Revised API documentation 2015-04-09 16:04:46 +02:00
loader_session Warn about the use of deprecated env() function 2017-01-13 13:07:13 +01:00
mixer audio_mixer: use bool for mute XML report parsing 2016-10-21 12:39:36 +02:00
net IPv4: fix buggy ascii_to implementations 2017-01-13 13:05:47 +01:00
nic nic: remove usage of deprecated env() 2017-02-28 12:59:18 +01:00
nic_bridge nic_router: new user interface and optimizations 2016-11-30 13:38:05 +01:00
nic_session Warn about the use of deprecated env() function 2017-01-13 13:07:13 +01:00
nitpicker_gfx Remove inconsistent use of 'is_' prefix 2016-05-23 15:52:39 +02:00
nitpicker_session Warn about the use of deprecated headers 2017-01-31 12:01:18 +01:00
os base: remove Child::heap 2017-02-28 12:59:23 +01:00
packet_stream_rx os/packet_stream: avoid global env 2017-01-13 13:07:02 +01:00
packet_stream_tx os/packet_stream: avoid global env 2017-01-13 13:07:02 +01:00
platform_device x86: extend io_mem call of platform_drv 2015-11-04 14:09:25 +01:00
platform_session base: remove Child::heap 2017-02-28 12:59:23 +01:00
ram_fs base: avoid use of deprecated base/printf.h 2016-08-29 17:27:10 +02:00
regulator os: platform_drv (arm) API transition (ref #1987) 2017-01-13 13:07:03 +01:00
regulator_session Warn about the use of deprecated env() function 2017-01-13 13:07:13 +01:00
report_rom report_rom/clipboard: API transition 2017-01-13 13:07:14 +01:00
report_session base: remove Child::heap 2017-02-28 12:59:23 +01:00
rtc_session base: remove Child::heap 2017-02-28 12:59:23 +01:00
spec Warn about the use of deprecated env() function 2017-01-13 13:07:13 +01:00
terminal gems/terminal: support 'CHARACTER' events 2017-02-27 15:37:49 +01:00
terminal_session base: remove Child::heap 2017-02-28 12:59:23 +01:00
timer_session base: remove Child::heap 2017-02-28 12:59:23 +01:00
trace Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00
uart_session Warn about the use of deprecated env() function 2017-01-13 13:07:13 +01:00
usb usb_drv: raw session fixes 2016-10-21 12:39:37 +02:00
usb_session usb_session: pass Region_map explicitly 2017-02-28 12:59:17 +01:00
util gems: extend dither_painter to be used with vbox5 2016-08-29 17:29:32 +02:00
vfs Queued read/write/read_ready in VFS and servers 2017-02-23 15:03:28 +01:00
xev_track Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00