■開発環境
CentOS 5.10
■ソースコード
■実行結果
$ ./sysinfo uptime: 77616 1 minute load averages: 0 5 minute load averages: 1344 15 minute load averages: 0 totalram: 1059487744 freeram: 61054976 sharedram: 0 bufferram: 300855296 totalswap: 2146787328 freeswap: 2146787328 procs: 153 totalhigh: 134152192 freehigh: 7757824 mem_unit: 1