Tilted Forum Project Discussion Community  

Go Back   Tilted Forum Project Discussion Community > Interests > Tilted Technology


 
 
LinkBack Thread Tools
Old 10-20-2003, 05:55 PM   #1 (permalink)
is a shoggoth
 
Location: LA
unix "top" load average numbers mean what?

on the first line of output from the program "top" in a unix top there is a stat "load average" followed by 3 numbers. (here is a sample from my box)

top - 18:49:18 up 2 days, 8:25, 13 users, load average: 1.53, 0.77, 0.53

I think that these numbers represent how many threads are waiting in the Que to be scheduled for the CPU, but I'm not even that sure about that. I'm pretty sure that in general its bad for any of them to be much above 1, and represents the system choking on to much work.

I would like to know exactly what each of these numbers represent. Its not in the man page, and I'm having a bit of trouble googleing for it because "top" isn't a very good search word.

any answers would be quite welcome. Its something that I have used for a long time with a vague intuitive knowledge for a while and never really thought about until recently. I asked a few of my more knowledgeable flesh-friends, and they didn't seen to know either.
__________________
Use the star one and you'll be fighting off the old ones with your bare hands
-A Shoggoth on the Roof
giblfiz is offline  
Old 10-20-2003, 06:27 PM   #2 (permalink)
Crazy
 
Location: Bit Bucket
*cough* read the man *cough* With that said...

uptime
This line displays the time the system has been up, and the three load averages for the system. The load averages are the average number of process ready to run during the last 1, 5 and 15 minutes. This line is just like the output of uptime(1). The uptime display may be toggled by the inter-active l command.
devnull is offline  
Old 10-20-2003, 06:31 PM   #3 (permalink)
Crazy
 
Location: Bit Bucket
For future questions about that kind of stuff too, if there is a specific thing you are looking for in a man file but you can't find, it may be easier to do a search. You can do this by hitting '/' (the forward slash key) and typing what word or phrase you want to search for. In this case, I typed '/load' and hit enter and it highlighted the word load throughout the entire man file, making it very easy to find that specific part.
devnull is offline  
Old 10-21-2003, 06:22 AM   #4 (permalink)
Quadrature Amplitude Modulator
 
oberon's Avatar
 
Location: Denver
Also, I find that "load average" can vary from flavor to flavor (e.g. Solaris, Linux, FreeBSD) under similar conditions. This is, I believe, mostly due to differences in process scheduling and memory management.

Load average isn't really a great performance metric.

It is, however, relatively useful for determining if a system is overloaded and something needs an upgrade. But there are better ways to determine such things (vmstat, systat -vm, etc.). Unfortunately, such tools vary widely in availability on different flavors.
__________________
"There are finer fish in the sea than have ever been caught." -- Irish proverb
oberon is offline  
Old 10-21-2003, 08:06 AM   #5 (permalink)
Vanishing, like I do..
 
Location: Austin, TX
Simply put, anything over '1' means things are queueing for processor time.. In top on Linux the higher processor eaters are on the top by default, so find it and fix/kill it..
__________________
Toy-like people make me boy-like.
meff is offline  
Old 10-21-2003, 08:08 AM   #6 (permalink)
Vanishing, like I do..
 
Location: Austin, TX
I forget to mention something else in top that may confuse you: memory usage. To get a semi-accurate image of how much memory you have free add the 'cached' amount to your mem free, and there you have it, Linux isn't really using that much memory for *applications*. Cached stuff drops immediately for application memory, but Linux is smart and uses unused memory for caching things to make them faster.
__________________
Toy-like people make me boy-like.
meff is offline  
Old 10-21-2003, 04:11 PM   #7 (permalink)
is a shoggoth
 
Location: LA
Thanks all you have been most helpfull.



Quote:
Originally posted by devnull
*cough* read the man *cough* With that said...
you know, it may be in the uptime manpage, but its not the top manpage. I would like to point out that the *first* thing I did was read the manpage.
__________________
Use the star one and you'll be fighting off the old ones with your bare hands
-A Shoggoth on the Roof
giblfiz is offline  
 

Tags
average, load, numbers, top, unix


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 11:46 PM.

Tilted Forum Project

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360