From eb75299dd080e0866d8ba60f2f5a1159cc000ce7 Mon Sep 17 00:00:00 2001 From: bunnie Date: Thu, 6 May 2021 00:44:01 +0800 Subject: [PATCH] Update README.md --- services/README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/services/README.md b/services/README.md index d8999a049..bacf526b3 100644 --- a/services/README.md +++ b/services/README.md @@ -36,6 +36,15 @@ Conceptually, a complete Xous OS implementation would have HALs that claim the p We're trying to track progress on implementing the various servers using [github projects](https://github.com/betrusted-io/xous-core/projects/1). +## Server Limit + +Xous is currently limited to 128 servers. Each potential server reserves 40 bytes of space in the kernel. Xous 0.8 carries about 30 servers, so 128 servers should be reasonably future-proof. Adjusting the limit requires making a change in two places (note the permalink is to an older version of Xous): + +1. https://github.com/betrusted-io/xous-core/blob/68aff967e85847cce98e6ec65384f59c803f18a8/kernel/src/services.rs#L19 +1. https://github.com/betrusted-io/xous-core/blob/68aff967e85847cce98e6ec65384f59c803f18a8/kernel/src/services.rs#L235 + +Process count is adjusted by altering https://github.com/betrusted-io/xous-core/blob/master/kernel/src/arch/riscv/process.rs#L15. Xous 0.8 carries about 10 processes, and the current limit is 63. Each additional process reserves about 16 or so additional bytes for tracking information. + ## Well-Known Servers Here is the list of well-known services: - `ticktimer-server` -- allows processes to know elapsed time since start, and request sleeps. Also manages WDT.