Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   CacheD issues.... (https://postpacific.loc-online.com/showthread.php?t=3620)

testdude 11.03.2006 07:19

CacheD issues....
 
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? :|

sparcode 11.03.2006 08:29

are you realy sure that you need logd server ? Because logd eats so much resources. imho

Xellos 11.03.2006 09:03

try to move the cacheD away from npc/l2server
and make sure to optimize your item table

testdude 11.03.2006 09:14

Quote:

Originally Posted by Xellos
try to move the cacheD away from npc/l2server
and make sure to optimize your item table

if i move the cached to my 2nd pc it still lags, but just lags longer.. probably to do with the less ram in the pc... and optimize my item table? what ways are there other than deleting items of banned accounts? O.o

Xellos 11.03.2006 09:26

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)?

testdude 11.03.2006 10:54

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 ;)

demon 11.03.2006 11:00

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 :)

Xellos 11.03.2006 11:14

@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?

Eliot 11.03.2006 11:45

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.

Xellos 11.03.2006 12:09

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...)

Aikeleer 11.03.2006 12:45

I've seen extremely good RAID5 controllers, but they also are extremely expensive. :P

testdude 12.03.2006 01:35

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

testdude 14.03.2006 16:22

Anyone have ideas? :(

nucer 14.03.2006 19:08

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.

testdude 16.03.2006 18:26

ok well its a CacheD problem, its got nothing to do with the database or anything... i know this because of this screenshot:
http://img506.imageshack.us/img506/8031/cached0ic.jpg
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?

testdude 17.03.2006 14:30

come on... someone has to know wtf is up with this...

hr 17.03.2006 18:00

Quote:

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.
have you heard anything about "checkpoints" and how "Simple" recovery model works?

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.

testdude 17.03.2006 19:03

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...


All times are GMT. The time now is 15:27.