genode/repos/os/include
Martin Stein 8f9355b360 thread API & CPU session: accounting of CPU quota
In the init configuration one can configure the donation of CPU time via
'resource' tags that have the attribute 'name' set to "CPU" and the
attribute 'quantum' set to the percentage of CPU quota that init shall
donate. The pattern is the same as when donating RAM quota.

! <start name="test">
!   <resource name="CPU" quantum="75"/>
! </start>

This would cause init to try donating 75% of its CPU quota to the child
"test".  Init and core do not preserve CPU quota for their own
requirements by default as it is done with RAM quota.

The CPU quota that a process owns can be applied through the thread
constructor. The constructor has been enhanced by an argument that
indicates the percentage of the programs CPU quota that shall be granted
to the new thread. So 'Thread(33, "test")' would cause the backing CPU
session to try to grant 33% of the programs CPU quota to the thread
"test". By now, the CPU quota of a thread can't be altered after
construction. Constructing a thread with CPU quota 0 doesn't mean the
thread gets never scheduled but that the thread has no guaranty to receive
CPU time. Such threads have to live with excess CPU time.

Threads that already existed in the official repositories of Genode were
adapted in the way that they receive a quota of 0.

This commit also provides a run test 'cpu_quota' in base-hw (the only
kernel that applies the CPU-quota scheme currently). The test basically
runs three threads with different physical CPU quota. The threads simply
count for 30 seconds each and the test then checks wether the counter
values relate to the CPU-quota distribution.

fix #1275
2014-11-28 12:02:37 +01:00
..
arm_v6/trace Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00
arm_v7/trace Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00
audio_out_session Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00
blit Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00
block Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00
block_session Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00
cli_monitor os: make reusable cli_monitor headers public 2014-10-13 15:21:54 +02:00
dde_kit dde_kit: panic does not return 2014-11-12 14:44:16 +01:00
decorator decorator: redraw after disappearing window 2014-08-26 11:00:36 +02:00
drivers/timer Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00
file_system_session Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00
framebuffer_session Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00
gpio Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00
gpio_session Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00
gpu Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00
init thread API & CPU session: accounting of CPU quota 2014-11-28 12:02:37 +01:00
input os: Add Input::Event_queue::reset function 2014-06-27 14:07:03 +02:00
input_session Use signals for delivering input events 2014-06-06 14:54:07 +02:00
ldso Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00
loader_session loader: Adaptation to new nitpicker interface 2014-08-12 13:08:01 +02:00
net Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00
nic Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00
nic_session Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00
nitpicker_gfx Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00
nitpicker_session nitpicker: add 'session_control' RPC function 2014-10-13 15:21:54 +02:00
os thread API & CPU session: accounting of CPU quota 2014-11-28 12:02:37 +01:00
packet_stream_rx Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00
packet_stream_tx Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00
pci_device Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00
pci_session Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00
platform Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00
platform_session Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00
regulator Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00
regulator_session Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00
report_session Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00
rtc_session rtc: document current interface 2014-05-27 13:45:20 +02:00
terminal terminal: fix warning about uninitialized variable 2014-09-11 10:23:39 +02:00
terminal_session Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00
timer_session Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00
trace Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00
uart_session Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00
util os: add 'Xml_node::for_each_sub_node' 2014-10-13 15:21:53 +02:00
vfs vfs: use 256-byte buffer in log file system 2014-11-12 14:44:16 +01:00
x86_32/trace Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00
x86_64/trace Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00
xev_track Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00