Content deleted Content added
No edit summary Tags: Reverted Mobile edit Mobile web edit |
No edit summary Tags: Reverted nowiki added references removed Visual edit Mobile edit Mobile web edit |
||
Line 2:
== Unix-style load calculation ==
Tüm Unix ve Unix benzeri sistemler, [[kernel (computer science)|çekirdekte]] üç "yük ortalaması" sayısından oluşan boyutsuz [[Software metric|bir metrik]] üretir. Kullanıcılar şu komutu çalıştırarak bir Unix kabuğundan geçerli sonucu kolayca sorgulayabilirommand:
<syntaxhighlight lang="console">
$ uptime
14:34:03 up 10:43, 4 users, load average: 0.06, 0.11, 0.09
</syntaxhighlight>
dyapmakter'ın yük numarası 0'dır (boşta kalma işlemi sayılmaz)[[Central processing unit|İş Dünyası]][[process (computing)|onu]] ''zır kuyruk'' veya ) yükleme numarasını 1 artırır. Sona eren her işlem onu 1 azaltır. Çoğu UNIX sistemi yalnızca ''çalışan'' (CPU'da) veya çalıştırılabilir (CPU için ''bekleyen'') [[Process states|durumlardaki]] işlemleri sayar. Bununla birlikte, Linux ayrıca etkinliğini bekleyen) işlemleri de içerir; bu, meşgul veya durmuş bir G/Ç sistemi nedeniyle birçok işlem [[Input/output|G/Ç'de]] engese belirgin şekilde farklı sonuçlara yol açabilir. Bu, örneğin, NFS sunucusu arızası veya çok yavaş medya (örneğin, USB 1.x depolama aygıtları) nedeniyle engellenen işlemleri içerir. Bu gibi durumlar, CPU kullanımındaki gerçek bir artışı yansıtmayan yüksek bir yük ortalamasına neden olabilir (ancak yine de kullanıcıların ne kadar beklemesi gerektiğine dair bir fikir veririt).
Systems calculate the load ''average'' as the [[Moving average#Exponential moving average|exponentially damped/weighted moving average]] of the load ''number''. The three values of load average refer to the past one, five, and fifteen minutes of system operation.<ref name="drdobbs">{{cite web |url=http://www.linuxjournal.com/article/9001 |title=Examining Load Average |first=Ray |last=Walker |date=1 December 2006 |work=Linux Journal |access-date=13 March 2012 }}</ref>
Line 28:
In a system with four CPUs, a load average of 3.73 would indicate that there were, on average, 3.73 processes ready to run, and each one could be scheduled into a CPU.
On modern UNIX systems, the treatment of [[Thread (computer science)|threading]] with respect to load averages varies. Some systems treat threads as processes for the purposes of load average calculation: each thread waiting to run will add 1 to the load. However, other systems, especially systems implementing so-called [[Thread (computer science)#M:N (hybrid threading)|M:N threading]], use different strategies such as counting the process exactly once for the purpose of load (regardless of the number of threads), or counting only threads currently exposed by the user-thread scheduler to the kernel, which may depend on the level of concurrency set on the process. Linux appears to count each thread separately as adding 1 to the load.
== CPU load vs CPU utilization ==
|