banan-os/kernel/include/kernel/FS
Bananymous f8261c60c0 Kernel: Rewrite the whole scheduler and re-architecture SMP handling
Change Semaphore -> ThreadBlocker
  This was not a semaphore, I just named it one because I didn't know
  what semaphore was. I have meant to change this sooner, but it was in
  no way urgent :D

Implement SMP events. Processors can now be sent SMP events through
IPIs. SMP events can be sent either to a single processor or broadcasted
to every processor.

PageTable::{map_page,map_range,unmap_page,unmap_range}() now send SMP
event to invalidate TLB caches for the changed pages.

Scheduler no longer uses a global run queue. Each processor has its own
scheduler that keeps track of the load on the processor. Once every
second schedulers do load balancing. Schedulers have no access to other
processors' schedulers, they just see approximate loads. If scheduler
decides that it has too much load, it will send a thread to another
processor through a SMP event.

Schedulers are currently run using the timer interrupt on BSB. This
should be not the case, and each processor should use its LAPIC timer
for interrupts. There is no reason to broadcast SMP event to all
processors when BSB gets timer interrupt.

Old scheduler only achieved 20% idle load on qemu. That was probably a
very inefficient implementation. This new scheduler seems to average
around 1% idle load. This is much closer to what I would expect. On my
own laptop idle load seems to be only around 0.5% on each processor.
2024-07-22 00:33:50 +03:00
..
DevFS Kernel: Rewrite the whole scheduler and re-architecture SMP handling 2024-07-22 00:33:50 +03:00
Ext2 Kernel: Start work on adding support for new filesystems 2024-06-11 10:50:26 +03:00
FAT All: Fix a lot of compiler warnings from header files 2024-06-18 23:02:10 +03:00
ProcFS Kernel/LibC: Implement super basic select 2024-02-12 17:26:33 +02:00
TmpFS All: Fix a lot of compiler warnings from header files 2024-06-18 23:02:10 +03:00
FileSystem.h Kernel: Start work on adding support for new filesystems 2024-06-11 10:50:26 +03:00
Inode.h Kernel: Fix how socket closing works 2024-06-19 10:39:44 +03:00
Pipe.h Kernel: Rewrite the whole scheduler and re-architecture SMP handling 2024-07-22 00:33:50 +03:00
Socket.h Kernel: Rewrite Sockets to not be TmpInodes 2024-06-27 00:35:19 +03:00
VirtualFileSystem.h Kernel: Start work on adding support for new filesystems 2024-06-11 10:50:26 +03:00