From b4aa0a20dd02acba43e7899c03afd4989d1dfbb8 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Thu, 10 Mar 2022 16:31:40 +0100 Subject: [PATCH] os: refine default USB session quota This commit adjusts the value such that USB sessions requested by VirtualBox6 on Sculpt OS can get established on the first try without invoking the session-retry mechanism. This reduces the number of diagnostic log messages like: Error: Insufficient 'ram_quota',got 6296372 need 6297928 --- repos/os/include/usb_session/connection.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repos/os/include/usb_session/connection.h b/repos/os/include/usb_session/connection.h index 6f1be44189..d10105dd30 100644 --- a/repos/os/include/usb_session/connection.h +++ b/repos/os/include/usb_session/connection.h @@ -1,4 +1,4 @@ -/** +/* * \brief Client connection to USB server * \author Sebastian Sumpf * \date 2014-12-08 @@ -35,7 +35,7 @@ struct Usb::Connection : Genode::Connection, Session_client Genode::Connection(env, session(env.parent(), "ram_quota=%ld, cap_quota=%ld, tx_buf_size=%ld, label=\"%s\"", - 4 * 4096 + tx_buf_size, CAP_QUOTA, tx_buf_size, label)), + 5 * 4096 + tx_buf_size, CAP_QUOTA, tx_buf_size, label)), Session_client(cap(), *tx_block_alloc, env.rm(), sigh_state_changed) { } };