USF-OS / FogOS

Other
1 stars 37 forks source link

Adding 'htop' style system monitoring utility #65

Open BNelson986 opened 1 week ago

BNelson986 commented 1 week ago

Creating lscpu to provide user with information regarding cpu architecture and various properties that the OS is being run on.

malensek commented 1 week ago

This is a cool idea. To be honest, I'm not sure how much work this will be -- I imagine most of it's actually going to be happening in kernel space, with the result being copied out to user space. I'm not super familiar with how this info gets retrieved normally. So, definitely do some research and report back if you can figure out how, say, Linux does this!

BNelson986 commented 1 week ago

On linux it seems that 'lscpu' leverages the information from sysfs, /proc/cpuinfo, and other architecture specific libraries. I'm not sure how to find the file system within our FogOS since 'ls' only lists our terminal commands.

BNelson986 commented 1 week ago

After some research it seems that implementing lscpu is going to require much more development than is feasible in the projects timeframe.

Switching to implementing an 'htop' style of system monitor to track mem usage, procs, and more.