foundry
Foundry OS: the operating system built on the Rustbelt kernel
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | //! `sysinfo`: how many CPUs there are, how busy each one is, and how many
//! threads, processes and memory frames are in use.
//!
//! The load is measured, not guessed: each CPU counts its ~10 ms timer
//! ticks, and how many of them interrupted real work rather than its idle
//! thread. We read those counters twice, a quarter of a second apart; busy ticks
//! divided by all ticks in between is that CPU's load.
extern crate ulib;
entry!;
|