[Tutor] platform info
Einar Th. Einarsson
einarth@decode.is
Fri, 2 Aug 2002 15:57:11 +0000
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hey gang.
In my ongoing quest to write truly portable and dynamic code, I need my=20
application to be able to gather the following system information at runtim=
e:
CPU info:
o - number of cpu's
o - cpu load (per cpu in case of smp systems)
o - cpu speed and type
Memory:
o - total RAM
o - total swap space
o - free ram
o - free swap
Disk:
o - list of partitions/filesystems=20
o - must distinguish between local and networked filesystems
o - Free space per partition
Information as to how to retrieve any of the above without directly using=20
system specific function or system calls would be greatly appreciated.=20
In case anyone needs som background info, my application is a slave daemon =
for=20
an asynchronious clustering system which I originally wrote in perl & C, bu=
t=20
has proved to be a porting nightmare (it must run on Linux and win2k+, and =
preferably *bsd, and mac osX...)
- --=20
E-mail returned to sender -- insufficient voltage.
Yours etc.
Einar Th.
-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8
iQA/AwUBPUqr121/ORZtyd/tEQIB+wCgikWKSb+ulQ9zQcakQ8AxYRiPJ3YAnjuZ
zOu2JU5+qJUNLVUEBIg8b7yY
=3D+LCj
-----END PGP SIGNATURE-----