I've seen some sites that display a "Server load" value in percentage. I've
tried to google out the formula they may be using but I couln't find it.
I'd like to implement such a thing in a Linux server but the typical values
returned by "uptime" (number of queued processes) are not as easy to
understand as a simple %.
Any idea? Thank you in advance,
--
-- Álvaro G. Vicario - Burgos, Spain
-- Thank you for not e-mailing me your questions
-- 7 4593
Alvaro G Vicario wrote: I've seen some sites that display a "Server load" value in
percentage. I've tried to google out the formula they may be using but I couln't find it. I'd like to implement such a thing in a Linux server but the typical values returned by "uptime" (number of queued processes) are not as easy to understand as a simple %.
How about this:
$load_info = `top -l 1`;
Now $load_info contains the output of the 'top' command, which
lists CPU and memory usage...
Cheers,
NC
*** NC wrote/escribió (24 Feb 2005 09:24:37 -0800): $load_info = `top -l 1`;
Now $load_info contains the output of the 'top' command, which lists CPU and memory usage...
Not in my version (Red Hat 9). In any case, I don't really want mere CPU
usage but a sort of average of all resources that gives and idea of how
busy the system is. 100% CPU doesn't mean the server is collapsed.
--
-- Álvaro G. Vicario - Burgos, Spain
-- Thank you for not e-mailing me your questions
--
Alvaro G Vicario <al************ ******@telecomp uteronline.com> wrote: $load_info = `top -l 1`;
Now $load_info contains the output of the 'top' command, which lists CPU and memory usage...
Not in my version (Red Hat 9). In any case, I don't really want mere CPU usage but a sort of average of all resources that gives and idea of how busy the system is. 100% CPU doesn't mean the server is collapsed.
IOW tops output?
*** Daniel Tryba wrote/escribió (24 Feb 2005 17:43:34 GMT): Not in my version (Red Hat 9). In any case, I don't really want mere CPU usage but a sort of average of all resources that gives and idea of how busy the system is. 100% CPU doesn't mean the server is collapsed.
IOW tops output?
This is top's output:
6:45pm up 2:32, 1 user, load average: 0,00, 0,00, 0,00
64 processes: 63 sleeping, 1 running, 0 zombie, 0 stopped
CPU states: 0,1% user, 0,3% system, 0,0% nice, 99,4% idle
Mem: 61676K av, 59836K used, 1840K free, 0K shrd, 5560K
buff
Swap: 196520K av, 10552K used, 185968K free 21068K
cached
I'm looking for something like:
0.12%
I don't know the English word, in Spanish we say "numeros indice" (index
numbers?). Like those that summarize the health of stock exchange in one
figure ;-)
--
-- Álvaro G. Vicario - Burgos, Spain
-- Thank you for not e-mailing me your questions
--
Alvaro G Vicario wrote: This is top's output:
6:45pm up 2:32, 1 user, load average: 0,00, 0,00, 0,00 64 processes: 63 sleeping, 1 running, 0 zombie, 0 stopped CPU states: 0,1% user, 0,3% system, 0,0% nice, 99,4% idle Mem: 61676K av, 59836K used, 1840K free, 0K shrd, 5560K
buff Swap: 196520K av, 10552K used, 185968K free 21068K
cached I'm looking for something like: 0.12%
OK, who says you can't make it up? The output above shows that
the server's CPU load is currently 0.6% (100% - 99.4%), memory
load is 97.0% (59836 / 61676), and swap space occupation is 5.4%
(10552 / 196520). If you believe all three resources are
equlally important for your application, you can compute a
simple average of the three:
$load = ($memory_load + $CPU_load + $swap_load) / 3;
If you think some resources are more important than others, you
can weigh them accordingly. Say, you think memory is twice as
important as CPU availability and four times as important as swap
space. So you can compute a weighted average:
$load = (4 * $memory_load + 2 * $CPU_load + $swap_load) / (4 + 2 + 1);
I don't know the English word, in Spanish we say "numeros indice" (index numbers?). Like those that summarize the health of stock exchange in one figure ;-)
Same thing, an index. And, just like a stock index, yours can
be either equally weighted (first example) or capitalization-
weighted (second example)... :)
Cheers,
NC
NC wrote: Alvaro G Vicario wrote: I've seen some sites that display a "Server load" value in
percentage. I've tried to google out the formula they may be using but I couln't find it. I'd like to implement such a thing in a Linux server but the typical values returned by "uptime" (number of queued processes) are not as easy to understand as a simple %.
How about this:
$load_info = `top -l 1`;
Now $load_info contains the output of the 'top' command, which lists CPU and memory usage...
Yes, but:
1) 'top' generates quite a lot of load itself - try `cat /proc/loadavg`
2) load can't be claculated as a % (CPU utilization, disk & network
bandwidth can) but is still a better measure of availability
3) If you've got your webserver properly configured then a useful measure
might be the # of httpd processes/threads - which should have an upper
limit set, and therefore % is calculable.
HTH
C.
*** Colin McKinnon wrote/escribió (Fri, 25 Feb 2005 10:07:40 +0000): 3) If you've got your webserver properly configured then a useful measure might be the # of httpd processes/threads - which should have an upper limit set, and therefore % is calculable.
That's an excelent idea. It'll try to design my own index number based in a
weighed average using, among other, the % of httpd processes. Thank you
everyone.
--
-- Álvaro G. Vicario - Burgos, Spain
-- Thank you for not e-mailing me your questions
-- This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jaime Stuardo |
last post by:
Hi all...
I have a table that will never change. Specifically it's a mortality chart
that I need to use to make some calculations. One column of the table is the
age of the person, and other column is the factor to apply to the
calculation.
Suppose the calculation need to be made for 5000 people. It's inadmissible
to make 5000 SELECT's to get the factor for each person. That calculation
isn't done for only one group of persons, but...
|
by: anaxamandr |
last post by:
Hi.
I have a long loop in ASP that performs a rather lengthy calculation. I would love for my users to be able to stop that calculation, if they so choose, mid way through the process.
I attempted to use a parent window that allows the user to launch the calculation in a seperate window, so that they could still click "stop" to write a value to a database or set a session level variable that the calculation would check to see if it should...
|
by: N |
last post by:
Hi,
I got an error during load on a couple of
the tables. And it seems to be complaining that
I'm running out of tempspace (possibly during
index rebuild). Below is the load command and
error. What I do not understand is why DB2 is
trying to rebuild the index in TBS_STEMP03 even
though I explicitly tell it to use TBS_STEMP01
in the load statement. According to my calculation,
TBS_STEMP01 should have enough space for LOAD
|
by: David W. Fenton |
last post by:
A client is panicking about their large Access application, which
has been running smoothly with 100s of thousands of records for
quite some time. They have a big project in the next year that will
lead to a lot of use of the database and the adding of quite a lot
of new data (though I can't conceive of them adding more than than
10s of thousands of records, which won't change the current
performance profile at all).
If there is a SQL...
|
by: Michiel Alsters |
last post by:
Hello everybody,
I hope anybody can help me. I'll try to give a brief overview of my
problem. I have running a program that performs a heavy calculation.
To give the user feedback what the program is doing I show a window
which contains a progress bar and a label. At some point during the
execution the state of the calculation is changed, so I want to let
the user know this.
I have placed the creation of the form in a seperate thread...
| |
by: dunleav1 |
last post by:
I built a test job that loads data into the database. I get great
performance with Oracle and I'm trying to tune Sql Server to get the
same type of performance.
Based on system monitoring it looks like an I/O issue. So I started
investigating based on sql server perfromance tuning technical
reference.
Here are my system monitor findings:
The system monitor shows during my job:
|
by: rdemyan via AccessMonster.com |
last post by:
My application is calculation intensive and the servers are agonizingly slow.
Administrators of my application only update the backends once a month (twice
a month max). So, my launching program allows the back-end file to be
downloaded to the user's PC. This will provide maximum speed for these
calculations/manipulations of data. Without this, just logging into the main
app connected to the server back-end file can take five minutes...
|
by: fdu.xiaojf |
last post by:
Hi all,
I'm interested in Parallel Python and I learned from the website of
Parallel Python
that it can run on SMP and clusters. But can it run on a our muti-CPU
server ?
We are running an origin3800 server with 128 CPUs.
Thanks.
|
by: =?Utf-8?B?c2F2dmFz?= |
last post by:
Do you know if microsoft has any tools or guidelines to calculate the
hardware requirements for a server with windows server 2003 that will have a
couple of .Net webservices and a couple of aspx pages.
The webservices will be called in the range of 8000 calls per minute. The
aspx pages will be rarely accessed (maybe 1-2 times per week).
The webservices do very little processing in .Net and they execute a couple
of calls to an external...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |