Hi!
How can I retrive system infos under linux/unix? I want to know CPU
frequency, CPU usage, RAM, RAM usage.
THX
Mr. S 5 6528
"Mr. S" <Ma******@gmx.de> wrote in message
news:e3**************************@posting.google.c om... Hi!
How can I retrive system infos under linux/unix? I want to know CPU frequency, CPU usage, RAM, RAM usage.
Probably ask in a linux programming newsgroup.
- JFA1
Mr. S wrote: Hi!
How can I retrive system infos under linux/unix? I want to know CPU frequency, CPU usage, RAM, RAM usage.
THX Mr. S
Open the files in /proc and parse for the info.
e.g. cpuinfo: /proc/cpuinfo
Mr. S wrote: How can I retrive system infos under linux/unix? I want to know CPU frequency, CPU usage, RAM, RAM usage.
cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Pentium(R) 4 CPU 3.00GHz
stepping : 9
cpu MHz : 2994.945
cache size : 512 KB
physical id : 0
siblings : 1
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce \
cx8 apic sep mtrr pge mca cmov pat pse36 clflush \
dts acpi mmx fxsr sse sse2 ss ht tm
bogomips : 5976.88
cat /proc/meminfo
total: used: free: shared: buffers: cached:
Mem: 3169955840 2455195648 714760192 0 77500416
2259369984
Swap: 6440329216 8298496 6432030720
MemTotal: 3095660 kB
MemFree: 698008 kB
MemShared: 0 kB
Buffers: 75684 kB
Cached: 2204828 kB
SwapCached: 1588 kB
Active: 1527844 kB
ActiveAnon: 6020 kB
ActiveCache: 1521824 kB
Inact_dirty: 200812 kB
Inact_laundry: 232080 kB
Inact_clean: 324152 kB
Inact_target: 456976 kB
HighTotal: 2228160 kB
HighFree: 683172 kB
LowTotal: 867500 kB
LowFree: 14836 kB
SwapTotal: 6289384 kB
SwapFree: 6281280 kB
Le Mon, 28 Mar 2005 15:18:27 -0800, Mr. S a écrit*: Hi!
How can I retrive system infos under linux/unix? I want to know CPU frequency, CPU usage, RAM, RAM usage.
you can use a library such as libgtop.
"E. Robert Tisdale" <E.**************@jpl.nasa.gov> wrote in message news:<d2**********@nntp1.jpl.nasa.gov>... Mr. S wrote:
How can I retrive system infos under linux/unix? I want to know CPU frequency, CPU usage, RAM, RAM usage.
> cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 2 model name : Intel(R) Pentium(R) 4 CPU 3.00GHz stepping : 9 cpu MHz : 2994.945 cache size : 512 KB physical id : 0 siblings : 1 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce \ cx8 apic sep mtrr pge mca cmov pat pse36 clflush \ dts acpi mmx fxsr sse sse2 ss ht tm bogomips : 5976.88
> cat /proc/meminfo total: used: free: shared: buffers: cached: Mem: 3169955840 2455195648 714760192 0 77500416 2259369984 Swap: 6440329216 8298496 6432030720 MemTotal: 3095660 kB MemFree: 698008 kB MemShared: 0 kB Buffers: 75684 kB Cached: 2204828 kB SwapCached: 1588 kB Active: 1527844 kB ActiveAnon: 6020 kB ActiveCache: 1521824 kB Inact_dirty: 200812 kB Inact_laundry: 232080 kB Inact_clean: 324152 kB Inact_target: 456976 kB HighTotal: 2228160 kB HighFree: 683172 kB LowTotal: 867500 kB LowFree: 14836 kB SwapTotal: 6289384 kB SwapFree: 6281280 kB
Thanks a lot Mr. Tisdale! That's the right information!
THX
Mr. S This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Ayesha Ahsan |
last post by:
Hi,
I use Runtime.getRuntime().exec(command) to make my system call.
For Windows based Dos, i add "cmd /c" before I type in my system
call. So for example make the system call "dir":
String...
|
by: Scott |
last post by:
Not sure if this is the right place to post this or not, but I am in the
process of trying to find a Web Hosting/Isp Billing system that is
reasonable in price and uses Access or SQL Server for a...
|
by: Zorba.GR |
last post by:
IBM DB2 Connect Enterprise Edition v8.2, other IBM DB2 (32 bit, 64
bit) (MULTiOS, Windows, Linux, Solaris), IBM iSoft Commerce Suite
Server Enterprise v3.2.01, IBM Tivoli Storage Resource Manager...
|
by: SR |
last post by:
Hi,
I need to read the output from a system( ) function within a C program.
The function however only returns the exit status.
How can I read what system( ) sends to stdout ?
(is there a simpler...
|
by: markus |
last post by:
Hi,
There are more than 1000 defined system calls in the Unix standard
specification, however, a majority of them are optional and the
availability of system calls are dependent on the OS...
|
by: ulyses |
last post by:
Let's assume I have following file:
2938929384902491233.....
923949919199191919112....
File contains INTs only. What is more they are huge. For example first
row in file may contain integer...
|
by: Marco |
last post by:
Hello,every one, I meet a question:
in my old script, I usually use os.popen2() to get info from standard
unix(LinuX) program like ps,ifconfig...
Now, I write a OO-based programme, I still use...
|
by: Concepts Systems |
last post by:
Hello All,
With a growing demand for Linux System Professionals, we are pleased
to announce a new weekend batch of "Advance C" and "Linux System
Programming" for working professionals and...
|
by: Richard Nixon |
last post by:
I'll just be in and out with a quick question.
If you have an unzip32.exe and a.zip in the same directory as the ensuing
executable, what source in c++ imitates the following pseudo-source:
...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |