![]() |
|
|
#1 |
|
Архивный участник
Join Date: Nov 2005
Posts: 504
|
k well heres my problem...
PC1 AMD Dual Opteron 244 3x HDD SATA150 RAID 5 4GB RAM Windows Server 2003 Standard 100Mbit Connection PC2 AMD Dual Opteron 244 3x HDD SATA150 RAID 5 2GB RAM Windows Server 2003 Standard 100Mbit Connection pc1 hosts my l2server authd cached npc pc2 hosts sql server (2005) and logd i have a 1gbit crossover between the 2 pcs... yet for some reason every 90 seconds on the god damn dot items lag for 5 seconds... it might not seem much but 5 seconds of item lag every 90 seconds on the dot is just so anoying its not describable, and this is with only 600 people online... i tried moving the cached to the 2nd pc and it just makes it worse... ive tried with the l2server set as high process priority, aswell as with the cached, and with the cached as high and l2server as normal... and ive got the sql on high on the 2nd pc all the time... i dont see why this should happen... the pcs SHOULD handle 600 players should they not? is there an option in one of the config files i missed? :| |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Dec 2005
Posts: 163
|
are you realy sure that you need logd server ? Because logd eats so much resources. imho
|
|
|
|
|
#3 |
|
Архивный участник
Join Date: Feb 2006
Posts: 88
|
try to move the cacheD away from npc/l2server
and make sure to optimize your item table |
|
|
|
|
#4 | |
|
Архивный участник
Join Date: Nov 2005
Posts: 504
|
Quote:
|
|
|
|
|
|
#5 |
|
Архивный участник
Join Date: Feb 2006
Posts: 88
|
indices start to fragment after some time and db tables too
especially when u delete rows rebuilding indices and shrinking the db helps in such cases other MMOGs are doing this regularily on maintenance, some once per week, some every day some questions: - what recovery model are u using? - what are your parameters for transaction logs in db? - what's the size of your diskqueue when the lag appears (on db server)? |
|
|
|
|
#6 |
|
Архивный участник
Join Date: Nov 2005
Posts: 504
|
I'll try to answer you the best I can. I'm using a full recovery model and using: Auto update statistics, torn page detection and auto create statistics. The lag happens every 90seconds on the dot, i'll have to look for the size when it happens again. I just re-indexed the whole database and hopefully that might work. never done it before as the lin2world database took 6min to reindex
Also, I run the logD because it's helpful to see what's going on in the server if something happens
|
|
|
|
|
#7 |
|
Архивный участник
Join Date: May 2005
Posts: 367
|
better is to
pc 1 sql,cached,auth pc 2 server,npc but raid 5 isnt good.. you need raid 1 for more speed make 2xraid 1 for sql,cached and at least 1xraid1 for server npc needs ram tho' not hd and you'll never have problem
|
|
|
|
|
#8 |
|
Архивный участник
Join Date: Feb 2006
Posts: 88
|
@demon: yes, i have the same setup and no probs, but i run logd - u need a fast HD / raid 10 for it (raid 5 is really a bad bad idea)
@testdude: ok, watch the transaction log grows, and active transactions (perfmon) when your disk is too slow u will see some peaks when server flushes the logs and this may slow down all other things (lagspikes) questions because of the "full recovery" model: - how big is your transaction log? - how often do u backup the transaction logs? - how quick does it grow? |
|
|
|
|
#9 |
|
Архивный участник
Join Date: Mar 2005
Posts: 368
|
Raid 1 is a mirror type raid. It doesn't add to speed. It only adds redundance of data.
Raid 0 is a stripe type matrix which will double the speed of drives but actually substracts from the reliability because if one disk fails all data is lost. Raid 5 is the BEST because it uses 3 drives, it is actually stripping+mirroring over 3 drives. If one fails, no data is lost. PS: To anyone trying to contact me on MSN, my Gateway failed and i cant connect. Im trying to fix the problem. |
|
|
|
|
#10 |
|
Архивный участник
Join Date: Feb 2006
Posts: 88
|
Raid 5 is bad for db servers
even with a hardware raid controller because of the slower write performance (and it's terrible when u use a software raid) read performance is ok (and better than a single HD) sure it gives u a good safety and (n-1) capacity... but the write performance is not ok i prefer using raid 0+1 or 10 for db servers (safety + high read/write performance) and raid 5 for webservers because of the safety, high read performance and the lower costs (sry, i missed the 0 from my raid-10...) |
|
|
|
|
#11 |
|
Архивный участник
Join Date: Jun 2005
Posts: 374
|
I've seen extremely good RAID5 controllers, but they also are extremely expensive. :P
|
|
|
|
|
#12 |
|
Архивный участник
Join Date: Nov 2005
Posts: 504
|
The RAID card i'm using is a HighPoint RocketRAID 1810A, it was pretty expensive and allows my drives to read/write at about 145MB/s which is really close to the 150MB/s the card is rated at :P
The transaction log is a gig about, I clear it when it gets to about 5GB or more. Backup the entire DB daily, I do a "Database Complete" backup. The log file grows 10GB in a day or two days, fairly quick. I re-indexed the entire DB and it seemed to help for a bit, but not extremely well. I've been running the same database since my server started back in C2 (Nearly a year ago). Are there any other tune-up things I should be doing to make sure the SQL is running at peak performance? There are 211,110 Characters, and 110,209 accounts on the server if that makes a difference. :shock: Edit: How much more of an advantage would RAID 10 be over RAID 5 seeing as I have a great RAID Controller card. The HD's are 3 SATA 150 10K RPM Western Digitals. To go with RAID 10, i would need to send another harddrive to the host and reformat the database PC, which with a datacenter doing it would take 24+ hours. My RAID Card stats here: http://www.newegg.com/Product/Produc...82E16816115023 |
|
|
|
|
#13 |
|
Архивный участник
Join Date: Nov 2005
Posts: 504
|
Anyone have ideas?
|
|
|
|
|
#14 |
|
Архивный участник
Join Date: May 2005
Posts: 117
|
I think it's not important what RAID your server have. MsSQL loads 70-90% of DB into RAM. So I think 2 Gb RAM it's not enought. Also set recovery model to simple, it shall increase perfomance.
|
|
|
|
|
#15 |
|
Архивный участник
Join Date: Nov 2005
Posts: 504
|
ok well its a CacheD problem, its got nothing to do with the database or anything... i know this because of this screenshot:
![]() when the items lag its spamming that, and it does nothing else, it does not send a single command to the sql while doing this... this spam lasts for aprox. 10-15 seconds, and then stops, as soon as it stops the items stop lagging and return to normal... is there an option that controls this? |
|
|
|
|
#16 |
|
Архивный участник
Join Date: Nov 2005
Posts: 504
|
come on... someone has to know wtf is up with this...
|
|
|
|
|
#17 | |
|
Архивный участник
Join Date: Jun 2005
Posts: 285
|
Quote:
as already said - try RAID 1/10, or even separate drives, but split DB on several filegroups and put them on different drives. also try to set affinity for sql and system to different processors. |
|
|
|
|
|
#18 |
|
Архивный участник
Join Date: Nov 2005
Posts: 504
|
theres no way its anything to do with my database, or the raid setup, look at that screenshot... its something to do with "QsCheck" as thats what func the spam is generated from...
|
|
|
|
|