Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init: ram quota as start-node attribute #5448

Open
nfeske opened this issue Feb 7, 2025 · 1 comment
Open

init: ram quota as start-node attribute #5448

nfeske opened this issue Feb 7, 2025 · 1 comment

Comments

@nfeske
Copy link
Member

nfeske commented Feb 7, 2025

In init's configuraton, the assignment of RAM to a component is expressed as follows:

<start name="report_rom">
  ...
  <resource name="RAM" quantum="2M"/>
  ...
</start>

Let's support a new ram attribute as a shortcut.

<start name="report_rom" ram="2M">
  ...
</start>

This approach is already employed in Sculpt's deploy config. So init should follow suit.

@nfeske nfeske added the feature label Feb 7, 2025
nfeske added a commit that referenced this issue Feb 11, 2025
This patch allows for the assignment of RAM to a start node via a new
'ram' attribute as an alternative to traditional '<resource name="RAM">'
nodes. This makes configurations more concise.

It also adds support for defining a configuration-global default RAM
quota, following the existing pattern of the default caps definition,
e.g. the following <default> node alleviates the need to repeatedly
state reasonable 'ram' and 'caps' values in each single start node.

  <default caps="100" ram="1M"/>

Fixes #5448
nfeske added a commit that referenced this issue Feb 11, 2025
nfeske added a commit to genodelabs/genode-allwinner that referenced this issue Feb 11, 2025
nfeske added a commit to genodelabs/genode-imx that referenced this issue Feb 11, 2025
nfeske added a commit to genodelabs/genode-zynq that referenced this issue Feb 11, 2025
nfeske added a commit to genodelabs/genode-rpi that referenced this issue Feb 11, 2025
nfeske added a commit to genodelabs/genode-riscv that referenced this issue Feb 11, 2025
@nfeske nfeske added the fixed label Feb 11, 2025
@nfeske
Copy link
Member Author

nfeske commented Feb 11, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant