diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-09-25 23:13:20 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-09-25 23:15:10 +0300 |
| commit | ef2b77be011e2b4b415d1c5bb4901431d81dfaee (patch) | |
| tree | a724518db2d00b35a73e0a0e62009fd2083ef89e /src/uart/simple_uart.c | |
| parent | 6d0e7c5eba49efc171e63ff2631722a5c7f95460 (diff) | |
| download | gran-ef2b77be011e2b4b415d1c5bb4901431d81dfaee.tar.gz gran-ef2b77be011e2b4b415d1c5bb4901431d81dfaee.zip | |
somewhat working grid
+ Starvation is still an issue, but adding a slight bit of randomness
seems to help a bit. Also, simulating massive systems like 64x64 is a
bit too slow, so scale grid example down to 16x16. 256 cores is still
a fair bit, but I might try to think of some optimization methods.
I wonder at what point threading becomes faster than just running on a
single core?
+ Test now also sets processor nodes to sleep to avoid starvation issue,
seems like an opportunity for a DoS attack if someone can get enough
cores to bombard a single node with enough traffic.
The riscv64 processor has an initial control interface, very messy
code, should probably come up with a more elegant way to deal with
sleep/wakeups
Diffstat (limited to 'src/uart/simple_uart.c')
| -rw-r--r-- | src/uart/simple_uart.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/uart/simple_uart.c b/src/uart/simple_uart.c index e640ae1..1528a70 100644 --- a/src/uart/simple_uart.c +++ b/src/uart/simple_uart.c @@ -38,7 +38,6 @@ static stat simple_uart_receive(struct simple_uart *uart, struct component *from } putchar(packet_convu8(&pkt)); - fflush(stdout); set_flags(&uart->pkt, PACKET_DONE); return OK; } |
