Skip to content

Load

In UNIX computing, the system load is a measure of the amount of computational work that a computer system performs. The load average represents the average system load over a period of time. It conventionally appears in the form of three numbers which represent the system load during the last one-, five-, and fifteen-minute periods.

요약

Load란 처리를 위해 기다리는 프로세스의 상태를 나타낸다. 즉 Load Average는 CPU가 작업(Task; Process) 처리를 대기하는 평균을 나타낸다.

  • Load Average는 Active Task(TASK_RUNNING, TASK_UNINTERRUPTIBLE) 개수의 평균 값이다.
    • R (Running) - CPU에서 수행이되고 있거나 실행가능한 상태를 말합니다.
    • D (Uninterruptible Waiting) - I/O에 대해 대기하는 상태로 다른 어떤일도 할 수 없음을 의미 합니다.
  • 일반적으로 마지막 1분, 5분, 15분 단위 평균 값을 출력한다.
  • 일반적으로 CPU(Core)개수보다 Load Avearge 값이 적으면 문제가 없지만 상황에 따라 다를 수도 있다.
    • CPU 코어당 1을 기준으로, 1 이상이면 프로세스를 처리하는데 대기시간이 있다는 것이고 1 미만이면 여유롭게 처리하고 있다는 뜻.
  • 여타 모니터링 데이터가 그러하듯이 Load Average 만으로 시스템 부하를 판단하지 않는 것이 좋다.

확인 방법

  • uptime
    • e.g. 10:09:52 up 1:19, 3 users, load average: 0.82, 0.64, 0.57
  • top
  • cat /proc/loadavg

참고로 cpu core 전체 개수 확인은

grep -c processor /proc/cpuinfo

See also

Favorite site

References


  1. Lunatine.net_-_Load_Average.pdf 

  2. How-to-check-single-server-load-average.pdf