ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How can I get the information of cpu load average by any way.
Use 'top' can see the information on top. But ,how can I get it or make it use programming.
How dose the value of cpu load average make?
Can you help me ? Thanks !
I am sorry , I mean , the program has to run in my computer and I want to get the remote computer's load average.
I can not log on the remote computer, I can just visit it . I know it's IP and I have been got the information of it's MIB.
How can i do ?
And that said: to make any use of netcat in that
scenario you'd still need some sort of server-
process on the remote machine that will output
info on an arbitrary port that nc can listen on.
does killing child processes reduce CPU load average??
Hi,
am using a program that forks child processes to increase CPU load.this seems to work,but when I try killing the child processes the load doesnot seem to decrease.Does killing child processes decrease CPU load average?????
regards,
expeliarmus
Hi,
am using a program that forks child processes to increase CPU load.this seems to work,but when I try killing the child processes the load doesnot seem to decrease.Does killing child processes decrease CPU load average?????
regards,
expeliarmus
There is no general answer. It depends on whether
your applications are:
- CPU bound or
- I/O bound or
- synchronizing with each other is some way
In other words: where is the bottleneck? Is it
CPU or I/O or latency time because the processes
wait for each other (or even deadlock).
Without a clear understanding of these questions
you cannot meaningfully discuss your question.
Also you have a try to use a monitor application.
like zabbix(www.zabbix.com):
when the client is running on a remotely machine, you can use the following command to get when exactly you want, e.g. :
# the avarage CPU load
bin/get -s IP_HERE -p10051 -k system.cpu[load1]
# the avaliable partition volume for '/'
bin/get -s IP_HERE -p10051 -k vfs.fs.size[/,free]
#the inbound transfer
bin/get -s IP_HERE -p10051 -k net.if.in[eth0]
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.