Discussion:
nic_drv crashes with resource request
Boris Mulder
2017-05-22 08:24:32 UTC
Permalink
Hello,

When I try to run my scenario under the latest master branch, the
nic_drv stops working with the following message:

[init] child "nic_drv" announces service "Nic"
[init -> nic_drv] resource_request: ram_quota=1642496
[init -> nic_drv] used before freeing emergency=2478080
[init -> nic_drv] used after freeing emergency=2461696
[init] child "nic_drv" requests resources: ram_quota=1642496

I've tried giving it and its client (in this case vfs with lxip) more
RAM, but to no avail. Currently the config looks like this:

<start name="vfs">
<resource name="RAM" quantum="36M"/>
<provides> <service name="File_system"/> </provides>
<config ld_verbose="yes">
<vfs>
<lxip ip_addr="$ip_addr" netmask="255.255.255.0"
gateway="$gateway_ip_addr" nameserver="8.8.8.8"/>
</vfs>
<libc/>
<default-policy writeable="yes" />
</config>
<route>
<service name="Nic"> <child name="nic_drv"/> </service>
<any-service> <parent/> <any-child/> </any-service>
</route>
</start>

<start name="nic_drv">
<resource name="RAM" quantum="4M"/>
<provides> <service name="Nic"/></provides>
<config verbose="yes">
<libc stdout="/dev/log" stderr="/dev/log"/>
<vfs>
<dir name="dev"> <log/> </dir>
</vfs>
</config>
</start>

What could I be doing wrong?
--
Met vriendelijke groet / kind regards,

Boris Mulder

Cyber Security Labs B.V. | Gooimeer 6-31 | 1411 DD Naarden | The Netherlands
+31 35 631 3253 (office)
Christian Helmuth
2017-05-22 10:31:30 UTC
Permalink
Hello Boris,
Post by Boris Mulder
When I try to run my scenario under the latest master branch, the
[init] child "nic_drv" announces service "Nic"
[init -> nic_drv] resource_request: ram_quota=1642496
[init -> nic_drv] used before freeing emergency=2478080
[init -> nic_drv] used after freeing emergency=2461696
[init] child "nic_drv" requests resources: ram_quota=1642496
Unfortunately, I can't reproduce this issue with master (f6386c6ce1)
and "make run/lwip KERNEL=nova". Could you please provide a bit more
context about the used test case and hardware configuration? Does any
other component complain about insufficient RAM?

Regards
--
Christian Helmuth
Genode Labs

https://www.genode-labs.com/ · https://genode.org/
https://twitter.com/GenodeLabs · /ˈdʒiː.nəʊd/

Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth
Loading...