steadily increasing instr/s from mpstat | Member | | Join Date: Oct 2007
Posts: 110
| |
Hi all,
I'm fairly new to Linux and am running CentOS on my web server.
I've been using mpstat to check out the processor utilization, and most of the numbers look good (as far as I can tell).
Here's my mpstat output -
02:31:49 PM CPU %user %nice %sys %iowait %irq %soft %steal %idle intr/s
-
02:31:49 PM all 8.70 0.00 1.68 0.10 0.02 0.02 0.00 89.49 153.21
-
the only thing that I think I am slightly concerened about is intr/s. I'm not sure if 153 is a big number, but I started out around 50 or so about 2 weeks ago, and it seems to be steadily climbing, though I don't have any more services running now than I did then.
Could it be that some threads are not being released or something?
Is this something I should be concerned about?
|  | Moderator | | Join Date: Nov 2006 Location: USA
Posts: 3,929
| | | re: steadily increasing instr/s from mpstat
From an online mpstat manpage it looks like that is an aggregate number over time of the number of interrupts received, so it should be climbing the longer the box is up.
That's just my 15 seconds of Googling, though - I couldn't tell you what a good or bad level of interrupts may be - I'm guessing that would be more for application behavior, but that is just a guess.
| | Member | | Join Date: Oct 2007
Posts: 110
| | | re: steadily increasing instr/s from mpstat
Thanks Sicarie,
I saw that page, but took the meaning to be that is the number of interupts per second, not an aggregate of the total number of interupts as long as the machine was up.
I'm trying to figure out if an aggregate of total number per second makes sense, but you could be right.
If so, I won't worry.
Bit digging deeper, using ps -aux, it shows that mysql is using 153% of cpu. But mpstat shows very little cpu being used.
I'm gonna try to restart mysql and see what happens.
Thanks,
Pete
|  | Moderator | | Join Date: Nov 2006 Location: USA
Posts: 3,929
| | | re: steadily increasing instr/s from mpstat
pedalpete-
Could you post that ps? It's very interesting that over 100% could be utilized, though I don't doubt that it could show that. (I'm really just curious to see it, personally)
Thanks,
sicarie
| | Member | | Join Date: Oct 2007
Posts: 110
| | | re: steadily increasing instr/s from mpstat
Damn, i literally JUST restarted mysql, and it is now showing 1%.
now that I've started running a few processes, mysql has jumped to 20% -
mysql 16157 20.1 0.9 137640 19660 pts/0 Sl 17:58 1:40
-
now 46%,
I'll post here when I get over 100%
mpstat still shows -
06:10:14 PM CPU %user %nice %sys %iowait %irq %soft %steal %idle intr/s
-
06:10:14 PM all 8.88 0.00 1.71 0.10 0.02 0.02 0.00 89.28 156.41
-
| | Member | | Join Date: Oct 2007
Posts: 110
| | | re: steadily increasing instr/s from mpstat
within 20 minutes of restarting mysql, it was showing 102% cpu,
but then it dropped and it seems to be dropping albiet slowly.
currently at 96.5% -
mysql 16157 96.5 1.3 139592 27440 pts/0 Sl 17:58 25:12 /usr/libexec/my
-
if i get a chance to see it above 100% again, i'll be sure to grab a shot and post it here.
| | Member | | Join Date: Oct 2007
Posts: 110
| | | re: steadily increasing instr/s from mpstat
here it is, about 1 hour after restarting and mysql is up above 100% again -
mysql 16157 102 1.3 139604 27492 ? Sl 17:58 96:45 /usr/libexec/my
-
here's the mpstat -
07:35:20 PM CPU %user %nice %sys %iowait %irq %soft %steal %idle intr/s
-
07:35:20 PM all 8.89 0.00 1.71 0.10 0.02 0.02 0.00 89.27 156.58
-
here's the full output of my ps -aux | | Member | | Join Date: Oct 2007
Posts: 110
| | | re: steadily increasing instr/s from mpstat
just checked again this am, and mysql up to 139% cpu -
mysql 16157 139 1.3 141404 27944 ? Sl Oct14 1445:13 /usr/libexec/m
-
at the same time, queries are running quickly, so could be an error in ps
|  | Moderator | | Join Date: Nov 2006 Location: USA
Posts: 3,929
| | | re: steadily increasing instr/s from mpstat Quote:
Originally Posted by pedalpete just checked again this am, and mysql up to 139% cpu -
mysql 16157 139 1.3 141404 27944 ? Sl Oct14 1445:13 /usr/libexec/m
-
at the same time, queries are running quickly, so could be an error in ps Well, what I'm curious now is the specs on your machine - does this have more than one processor? I'm gonna have to look into ps now - it's interesting to me that a Linux/UNIX programmer would allow something to register as more than 100%.
Thanks for indulging me!
| | Expert | | Join Date: Sep 2007
Posts: 856
| | | re: steadily increasing instr/s from mpstat
I have a dual-core system and I've seen the load go over 1.0 with uptime, so this may be a symptom that it's calculating each processor separately and adding them together.
|  | Moderator | | Join Date: Nov 2006 Location: USA
Posts: 3,929
| | | re: steadily increasing instr/s from mpstat Quote:
Originally Posted by Laharl I have a dual-core system and I've seen the load go over 1.0 with uptime, so this may be a symptom that it's calculating each processor separately and adding them together. That's my guess as well, but I'm extremely curious on this one - now I just have to get some free time... :\
| | Member | | Join Date: Oct 2007
Posts: 110
| | | re: steadily increasing instr/s from mpstat
It is a dual core, single proc machine, as far as I can remember (it's virtual), pretty sure its a xeon 3040.
I highly doubt mysql is using that much cpu as I don't think the server is doing THAT much, but I definitely could be wrong on that.
I would think that if mysql is using that much cpu, mpstat would report it. but mpstat is low.
Something isn't adding up.
Any idea how else I can test this?
|  | Similar Unix / Linux / BSD bytes | | | /bytes/about
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 226,272 network members.
|