CastleCops, Internet Crime Fighters
Need help? Click here to register for free! Absolutely zero advertisements on this site!

$9736.22 of $21422.68
left sidedonated so farneed $11686.46 donated to reach our goalright side, our goal
Help CastleCops serve the community on new servers, Donate Here to reach our goal.

Donation/Premium
spacer
block bottom
Security Central
spacer
· Home
· PIRT/Fried Phish
· MIRT
· SIRT
· Deutsch
· Wiki
· Newsletter
· O16/ActiveX
· CLSID List
· Contest2007
· Downloads
· Feedback (send)
· Forums
· HijackThis
· Hijacktrend
· LSPs
· My Downloads
· O18
· O20
· O21
· O22
· O23
· O9
· Premium
· Private Messages
· Proxomitron
· Reviews
· Search
· StartupList
· Stories Archive
· Submit News
· WsIRT
· Your Account
· Acceptable Use Policy
block bottom
Survey
spacer
Was 2007 a good year?

Yes it was a wonderful year
Yes, but there is always room for improvement
Status quo
It was a challenge
Other (leave comment)



Results
Polls

Votes: 940
Comments: 25
block bottom
spacer spacer

Executive Summary 24 Feb 2008

 
Post new topic   Reply to topic       All -> FavForums -> perf [del.icio.us!] [digg it!] [reddit!]
View previous topic :: View next topic  
Author Message
Paul

CastleCops Founder


Joined: Feb 22, 2002
Posts: 27351

Administrators Firetrust Forums Admin MIRT Moderators MVP Phishing Squad Premium Team CC Committee

PostPosted: Sun Feb 24, 2008 1:55 pm    Post subject: Executive Summary 24 Feb 2008
Reply with quote

Good day, this is an updated topic with respect to CastleCops performance here at the main site. A summary follows:

Initial thread: CastleCops Link/t215785-Optimizing_Performance.html
Initial summary: CastleCops Link/t216007-Executive_summary_21_Feb_2008.html
Second: CastleCops Link/t216034-Exec_Sum_22_Feb_2008.html

Thread view counts were briefly re-routed to another table, and are now back to its original configuration. I have to yet migrate the interim counts to the correct location.

Forum search is re-activated, including new posts updated via index and favorite forums view.

MySQL has been running over 48 hours now. Here are some details:

Quote:
Uptime = 2 days 10 hrs 37 min 25 sec
Avg. qps = 2295
Total Questions = 484490495
Threads Connected = 14


So before the perf issues started, our average SQL queries per second bordered 2,000. Right now we're above that.

Notice now with things running quicker, the number of slow queries have dropped considerably, but we're still in the 0% range:

Quote:
SLOW QUERIES
Current long_query_time = 10 sec.
You have 670 out of 484491078 that take longer than 10 sec. to complete
The slow query log is enabled.
Your long_query_time may be too high, I typically set this under 5 sec.


Seems we can increase our key_buffer_size:

Quote:
KEY BUFFER
Current MyISAM index space = 7 G
Current key_buffer_size = 1 G
Key cache miss rate is 1 : 755
Key buffer fill ratio = 100.00 %
You could increase key_buffer_size
It is safe to raise this up to 1/4 of total system memory;
assuming this is a dedicated database server.


One issue we keep having is qcache_lowmem_prunes. Here is a thread about it:

CastleCops Link/t215943-MySQL_query_cache_size_improvements.html

In our tuning script run, here are some results:

Quote:
QUERY CACHE
Query cache is enabled
Current query_cache_size = 128 M
Current query_cache_used = 76 M
Current query_cache_limit = 2 M
Current Query cache Memory fill ratio = 59.69 %
Current query_cache_min_res_unit = 1 K
Query Cache is 23 % fragmented
Run "FLUSH QUERY CACHE" periodically to defragment the query cache memory
If you have many small queries lower 'query_cache_min_res_unit' to reduce fragmentation.
MySQL won't cache query results that are larger than query_cache_limit in size


Interesting, we're already at the 1K unit size for that value. Now what?

Given the amount of queries run in total, I'm happy with next:

Quote:
JOINS
Current join_buffer_size = 2.00 M
You have had 12 queries where a join could not use an index properly
You should enable "log-queries-not-using-indexes"
Then look for non indexed joins in the slow query log.
If you are unable to optimize your queries you may want to increase your
join_buffer_size to accommodate larger joins in one pass.

Note! This script will still suggest raising the join_buffer_size when
ANY joins not using indexes are found.


And I don't think InnoDB is an option for us:

Quote:
TABLE LOCKING
Current Lock Wait ratio = 1 : 343
You may benefit from selective use of InnoDB.


However, that ratio I think is better than previous under perf issues.

Another tuner script:

Code:
[OK] Query cache efficiency: 97.4%
[!!] Query cache prunes per day: 215138
[!!] Connections aborted: 11%
-------- Recommendations -----------------------------------------------------
General recommendations:
    Your applications are not closing MySQL connections properly
Variables to adjust:
    query_cache_size (> 128M)


An interesting statistic for folks:

[--] Reads / Writes: 70% / 30%

CastleCops is a far greater Read orientied community.

So what is the current status?

I believe we are awaiting the arrival and replacement of our 3Ware 9000 Series controller card for the main system that is the suspect of our performance woes.

There are other options that may be pursued:

- more RAM
- more CPU
- two new custom systems for this site dedicated to MySQL and Apache/PHP

I am unsure as of right now, but as time progresses I'll learn more. I'm just thankful we're up and running and have the support and love of this wonderful community of people.

Thank you for allowing me to be open.

Back to top
View users profile Send private message Send email Visit posters website
Paul

CastleCops Founder


Joined: Feb 22, 2002
Posts: 27351

Administrators Firetrust Forums Admin MIRT Moderators MVP Phishing Squad Premium Team CC Committee

PostPosted: Sun Feb 24, 2008 1:58 pm    Post subject:
Reply with quote

P.S.

The majority of static files have been offloaded to another server and lighttpd. Stuff affected:

- site CSS file
- forum stock gallery avatars
- many site wide images

Not affected:

- user uploaded avatars
- Uploads and Forum attachments

In addition, snapshots for PIRT and SIRT are delivered by another server running thttpd.

For a future update, I'd like to include the various diagnostic tools links, etc to save folks time reading the ten page thread.


_________________
Paul Laudanski - http://www.laudanski.com
http://www.linkedin.com/pub/1/49a/17b
Back to top
View users profile Send private message Send email Visit posters website
Bill_Bright

General
General
Premium Member

Joined: Jan 16, 2004
Posts: 8927
Location: Nebraska, USA
MVP Premium

PostPosted: Sun Feb 24, 2008 3:47 pm    Post subject:
Reply with quote

Quote:
CastleCops is a far greater Read orientied community.
I think that's because there are good answers out there. I suspect improved search capabilities will result in an even higher ratio.
Quote:
I'm just thankful we're up and running and have the support and love of this wonderful community of people.
That works both ways.
Quote:
Thank you for allowing me to be open.
What kept you? I first came to CC because I needed help with a problem I was having with MailWasher and I'm still here because I can pick the brains of trusted experts from all aspects of IT. You don't have to just run these forums - use them too. There's always something new to learn.
******
Quote:
For a future update, I'd like to include the various diagnostic tools links
A little script that we could d/l and run that compiles all the pertinent performance information that you need might be useful, if it creates a report the normal user can understand. I don't know what would go in there, tracert www∙castlecops∙com maybe - so folks don't have to shell out to DOS. More to chew on.


_________________
image Bill (AFE7Ret)
Freedom is NOT Free!

image
Back to top
View users profile Send private message
Ikeb

Special Response Team
Forums Admin

Joined: Apr 20, 2003
Posts: 16509

Forums Admin Moderators MVP Premium SRT Team CC Committee Team F@H

PostPosted: Sun Feb 24, 2008 5:50 pm    Post subject:
Reply with quote

Bill_Bright wrote:
Quote:
Thank you for allowing me to be open.
What kept you?

Well there is the matter of public disclosure revealing something to crackers.... though "security by obscurity" only works for the short term. The discussions in this forum demonstrates that collective knowledge is a much better approach in the long run. Smile

Back to top
View users profile Send private message
Bill_Bright

General
General
Premium Member

Joined: Jan 16, 2004
Posts: 8927
Location: Nebraska, USA
MVP Premium

PostPosted: Sun Feb 24, 2008 6:52 pm    Post subject:
Reply with quote

Quote:
The discussions in this forum demonstrates that collective knowledge is a much better approach in the long run.
The exchange of collective knowledge is the key.


_________________
image Bill (AFE7Ret)
Freedom is NOT Free!

image
Back to top
View users profile Send private message
Ikeb

Special Response Team
Forums Admin

Joined: Apr 20, 2003
Posts: 16509

Forums Admin Moderators MVP Premium SRT Team CC Committee Team F@H

PostPosted: Mon Feb 25, 2008 12:06 am    Post subject:
Reply with quote

Indeed, what I meant to say. Smile You can be my editor OK Bill? Wink

Back to top
View users profile Send private message
Bill_Bright

General
General
Premium Member

Joined: Jan 16, 2004
Posts: 8927
Location: Nebraska, USA
MVP Premium

PostPosted: Mon Feb 25, 2008 3:19 am    Post subject:
Reply with quote

Sure, but it works both ways. Wink


_________________
image Bill (AFE7Ret)
Freedom is NOT Free!

image
Back to top
View users profile Send private message
AlphaCentauri

SIRT Handler
Premium Member

Joined: Nov 20, 2003
Posts: 2701

Premium

PostPosted: Mon Feb 25, 2008 12:56 pm    Post subject:
Reply with quote

My snowflakes have morphed into multiple copies of the animated Bugs Bunny gif, all moving in chorus.

Back to top
View users profile Send private message
Bill_Bright

General
General
Premium Member

Joined: Jan 16, 2004
Posts: 8927
Location: Nebraska, USA
MVP Premium

PostPosted: Mon Feb 25, 2008 1:25 pm    Post subject:
Reply with quote

Mine are fine - except I am tired of snow and ready for Winter to pass.


_________________
image Bill (AFE7Ret)
Freedom is NOT Free!

image
Back to top
View users profile Send private message
AlphaCentauri

SIRT Handler
Premium Member

Joined: Nov 20, 2003
Posts: 2701

Premium

PostPosted: Mon Feb 25, 2008 3:06 pm    Post subject:
Reply with quote

Mine is back to snowflakes now, too.

Back to top
View users profile Send private message
Bill_Bright

General
General
Premium Member

Joined: Jan 16, 2004
Posts: 8927
Location: Nebraska, USA
MVP Premium

PostPosted: Tue Feb 26, 2008 12:42 pm    Post subject:
Reply with quote

Back to horrible performance again. Sad

84ppm 37.509s (33.335s)
119ppm 28.483s (27.481s)

Perhaps it is time for a new Exec Summary with a roll-up of where we've been and what's needed to get to where we need to go.


_________________
image Bill (AFE7Ret)
Freedom is NOT Free!

image
Back to top
View users profile Send private message
Paul

CastleCops Founder


Joined: Feb 22, 2002
Posts: 27351

Administrators Firetrust Forums Admin MIRT Moderators MVP Phishing Squad Premium Team CC Committee

PostPosted: Tue Feb 26, 2008 1:25 pm    Post subject:
Reply with quote

Nothing has changed in the meantime. Perf may indeed fluctuate.


_________________
Paul Laudanski - http://www.laudanski.com
http://www.linkedin.com/pub/1/49a/17b
Back to top
View users profile Send private message Send email Visit posters website
Bill_Bright

General
General
Premium Member

Joined: Jan 16, 2004
Posts: 8927
Location: Nebraska, USA
MVP Premium

PostPosted: Tue Feb 26, 2008 2:05 pm    Post subject:
Reply with quote

Well, I tend to think of fluctuations as minor swings back and forth. 30+ seconds seems pretty extreme, even if much better than several minutes. Note I am griping with you, not at you, for I know this is frustrating for you too.


_________________
image Bill (AFE7Ret)
Freedom is NOT Free!

image
Back to top
View users profile Send private message
Paul

CastleCops Founder


Joined: Feb 22, 2002
Posts: 27351

Administrators Firetrust Forums Admin MIRT Moderators MVP Phishing Squad Premium Team CC Committee

PostPosted: Tue Feb 26, 2008 6:05 pm    Post subject:
Reply with quote

Extra load (external to CC) got placed onto the temporary db server, which is why we're seeing a bigger negative perf impact.


_________________
Paul Laudanski - http://www.laudanski.com
http://www.linkedin.com/pub/1/49a/17b
Back to top
View users profile Send private message Send email Visit posters website
Display posts from previous:   
Post new topic   Reply to topic       All -> FavForums -> perf All times are GMT
Page 1 of 1

 
Quick Reply:
Username: 

Quote the last message
Attach signature (signatures can be changed in profile)
 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001 phpBB Group
spacer spacer