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?
11 4569
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.
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
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
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
-
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.
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
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
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!
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.
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... :\
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?
Sign in to post your reply or Sign up for a free account.
Similar topics
by: DTB |
last post by:
I am trying to convert a complex function from Oracle to SQL Server
and have come across Oracle's Instr() function. I see SQL Server has
CHARINDEX() which is similar, however it does not provide...
|
by: Chris Calzaretta |
last post by:
Hello Everybody,
Question
instr function will give you the first instance of the finding
so EX:
so your string looks like
string1 = "testing>This is > just a test > testtesttest"...
|
by: Gordon |
last post by:
Hi;
I am trying to extract a substring using a combination of the mid() and
Instr() i.e.
aString = "Jones, Thomas R, Dr."
hold = InStr(1, aString, " ," , 1)
newString = Mid(aString, 1,...
|
by: Mary |
last post by:
MemberID VID
1002 1001
1003 1002
1004 1003
1005 1003
1007 1001...
|
by: fischerspooner |
last post by:
Hi,
I'm banging my head against the desk because I can't find a solution for the following simple problem.
Case: There is a column in a table that has FamilyName and FirstName(s) in one field....
|
by: rodchar |
last post by:
hey all,
i'm getting a result that i don't understand
i have a string "test1, test2"
If InStr("test1") and InStr("test2") Then
'Inside
EndIf
The inside is not running for some reason. Any...
|
by: lstrudeman |
last post by:
Hello;
A friend gave me this syntax and they are unavailable at the moment and I need this asap. I am trying to figure out how SQL figures this out. Below the syntax takes a field in a file and...
|
by: ArtF |
last post by:
Background
UDB 8.2, EEE, Lots of users, runing on AIX with an Switch 2, running
QP, running datastage PX
Here is the behavior we observe. Over time the paging on the AIX box
steadily...
|
by: Alex Pavluck |
last post by:
I have a date stored like this '2004 - 2006' and I use this code to
get startyear and stopyear
StartYear: Trim(Left(,InStr(,"-")-1))
StopYear: Trim(Right(,InStr(,"-")-1))
Is there a way to...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |