You are not logged in.

#1 2008-12-11 15:57:40

hack.augusto
Member
From: Brazil
Registered: 2008-08-28
Posts: 124

[solved]High load average - 11.33, 10.66, 9.32

well, it seem like my load average is kinda high hmm , I'm not that woried because the computer isn't lagged at all, but it is quite annoying a load average bigger than 3 (yesterday I would say 1) when i'm only running opera, emesene, ratpoison, GNU/screen, and i did compile the kernel two or three days ago and got a load average lower than 1.

200812111346351024x768sef4.th.png

oh! and i use a laptop, and don't think the battery like this load average.

Last edited by hack.augusto (2008-12-13 04:44:52)

Offline

#2 2008-12-11 16:15:07

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: [solved]High load average - 11.33, 10.66, 9.32

How many CPU cores?

Offline

#3 2008-12-11 16:28:02

hack.augusto
Member
From: Brazil
Registered: 2008-08-28
Posts: 124

Re: [solved]High load average - 11.33, 10.66, 9.32

2 cores

% uname -p                                                                                                      14:27
Intel(R) Pentium(R) Dual CPU T2370 @ 1.73GHz

Offline

#4 2008-12-11 16:54:59

hack.augusto
Member
From: Brazil
Registered: 2008-08-28
Posts: 124

Re: [solved]High load average - 11.33, 10.66, 9.32

I thinkn it could be a couple scripts that i had running, i just restarted, and my load average felt to 3.98 4.46 3.81, i'm going to modify this scripts and see what hapen ...

Offline

#5 2008-12-11 21:55:00

hack.augusto
Member
From: Brazil
Registered: 2008-08-28
Posts: 124

Re: [solved]High load average - 11.33, 10.66, 9.32

Yep, it is my scripts, I just can't understand how the load average goes so high because of a couple shell scripts, one of them do a ping to my provider every 15sec to check my internet connection, the other one gets the power from my battery.
If i write them in python or C/C++ would help my load average?


battery(){
   bat_full=`cat /proc/acpi/battery/$batname/info | grep design | line | cut -d " " -f 11`
   bat_rcapacity=`cat /proc/acpi/battery/$batname/state | grep remaining | cut -d " " -f 8`
   ((bat_pwr=(bat_rcapacity * 100)/bat_full))
   echo $bat_pwr ;;
}

network(){
   if [[ `cat /sys/class/net/$ethernet/operstate` == "down" ]] then
      echo "down"
   elif [[ `ping -c 1 201.24.94.254 |& grep 'unreachable'` != "" ]] then
      echo "limited"
   else
      echo "web"
   fi
}

Last edited by hack.augusto (2008-12-11 22:22:56)

Offline

#6 2008-12-13 03:34:01

hack.augusto
Member
From: Brazil
Registered: 2008-08-28
Posts: 124

Re: [solved]High load average - 11.33, 10.66, 9.32

Ha! new load average and scripts! Isn't perfect, but better than 11 - once i got to 17, it was kinda fun see my load average skyrock, then i just opened 10 scripts -
I managed to integrate my battery script with acpi, and my network script to reconnect when my connection falls:
200812130126471024x768stm7.th.png

Offline

Board footer

Powered by FluxBB