Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 11.03.2006, 07:19   #1
testdude
Архивный участник
 
Join Date: Nov 2005
Posts: 504
Default 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? :|
testdude is offline  
Old 11.03.2006, 08:29   #2
sparcode
Архивный участник
 
Join Date: Dec 2005
Posts: 163
Default

are you realy sure that you need logd server ? Because logd eats so much resources. imho
sparcode is offline  
Old 11.03.2006, 09:03   #3
Xellos
Архивный участник
 
Join Date: Feb 2006
Posts: 88
Default

try to move the cacheD away from npc/l2server
and make sure to optimize your item table
Xellos is offline  
Old 11.03.2006, 09:14   #4
testdude
Архивный участник
 
Join Date: Nov 2005
Posts: 504
Default

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
testdude is offline  
Old 11.03.2006, 09:26   #5
Xellos
Архивный участник
 
Join Date: Feb 2006
Posts: 88
Default

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)?
Xellos is offline  
Old 11.03.2006, 10:54   #6
testdude
Архивный участник
 
Join Date: Nov 2005
Posts: 504
Default

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
testdude is offline  
Old 11.03.2006, 11:00   #7
demon
Архивный участник
 
Join Date: May 2005
Posts: 367
Default

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
demon is offline  
Old 11.03.2006, 11:14   #8
Xellos
Архивный участник
 
Join Date: Feb 2006
Posts: 88
Default

@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?
Xellos is offline  
Old 11.03.2006, 11:45   #9
Eliot
Архивный участник
 
Join Date: Mar 2005
Posts: 368
Default

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.
Eliot is offline  
Old 11.03.2006, 12:09   #10
Xellos
Архивный участник
 
Join Date: Feb 2006
Posts: 88
Default

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...)
Xellos is offline  
Old 11.03.2006, 12:45   #11
Aikeleer
Архивный участник
 
Join Date: Jun 2005
Posts: 374
Default

I've seen extremely good RAID5 controllers, but they also are extremely expensive. :P
Aikeleer is offline  
Old 12.03.2006, 01:35   #12
testdude
Архивный участник
 
Join Date: Nov 2005
Posts: 504
Default

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 is offline  
Old 14.03.2006, 16:22   #13
testdude
Архивный участник
 
Join Date: Nov 2005
Posts: 504
Default

Anyone have ideas?
testdude is offline  
Old 14.03.2006, 19:08   #14
nucer
Архивный участник
 
Join Date: May 2005
Posts: 117
Default

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.
nucer is offline  
Old 16.03.2006, 18:26   #15
testdude
Архивный участник
 
Join Date: Nov 2005
Posts: 504
Default

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?
testdude is offline  
Old 17.03.2006, 14:30   #16
testdude
Архивный участник
 
Join Date: Nov 2005
Posts: 504
Default

come on... someone has to know wtf is up with this...
testdude is offline  
Old 17.03.2006, 18:00   #17
hr
Архивный участник
 
Join Date: Jun 2005
Posts: 285
Default

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.
hr is offline  
Old 17.03.2006, 19:03   #18
testdude
Архивный участник
 
Join Date: Nov 2005
Posts: 504
Default

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...
testdude is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 18:19.