![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
Thank You Jeff... Please also let me know yo increase cache size, should I only increase initial cache size or maximum cache size as well... Regards... Deepali |
#12
| |||||
| |||||
|
|
Hi Jeff... Jeff , are there any hidden implications of increasing cache size size or there aren't any dependencies on any db files or anything. Will there be any problem if I implement it in production. |
|
Also, after increasing the cache of my sample database which is ASADEMO.db,it increased the cache size for Asademo.db |
|
when I try to run the same command for my prod db in test which is travel.db dbsrv7 -ch 75P -n geneva "E:\Dolphin_Backup\travel.db", I get an error: database file not found. |
|
ASADEMO: Currentcachesize = 2048, Max = 392820, Min = 2048 Travel : Currentcachesize = 1331200, Max = 1331200, Min = 1331200 The production db has 2GB RAM but the test has 512 MB RAM. |
|
Also, when I run this command: dbsrv7 -c 75P -n geneva "E:\Dolphin_Backup\travel.db" I get an error again "Not enough memory" I have attached a screen shot for the same.. |
#13
| |||
| |||
|
|
Hi Deepali, Deepali wrote: Hi Jeff... Jeff , are there any hidden implications of increasing cache size size or there aren't any dependencies on any db files or anything. Will there be any problem if I implement it in production. The "dependency" is basically internal to the server - depending on free resources, the optimizer will pick different joining strategies when executing queries. (e.g. if there isn't a large amount of memory, we may pick a less 'memory-intensive' algorithm that's slightly slower to do a table join as opposed to a more 'memory-intensive' operation that may be a little faster). However, you should be aware that consuming more resources for the database server may affect other applications running on the system. Many of our customers will use a 'dedicated server' for just running the database, but not all do. Also, after increasing the cache of my sample database which is ASADEMO.db,it increased the cache size for Asademo.db This is good! when I try to run the same command for my prod db in test which is travel.db dbsrv7 -ch 75P -n geneva "E:\Dolphin_Backup\travel.db", I get an error: database file not found. I believe this may be an inaccurate error message. It probably should also read 'Not enough memory' or possibly 'Database file is in use' (if you tried to start two servers with the same database file). Also, what is "E:"? Is it a local drive? Please note that you should not run database files over an NFS share ("Windows Share") due to the requirements for write-ordering and write-through that the database server requires: http://www.sybase.com/detail?id=1034790 ASADEMO: Currentcachesize = 2048, Max = 392820, Min = 2048 Travel : Currentcachesize = 1331200, Max = 1331200, Min = 1331200 The production db has 2GB RAM but the test has 512 MB RAM. Note there are two switches acting on these two servers - "-c" (initial cache size) and "-ch" (maximum cache size). "-c" is what we will try to initially allocate, and "-ch" is what we reserve at the operating system level to "use up at a later time if required". Also, when I run this command: dbsrv7 -c 75P -n geneva "E:\Dolphin_Backup\travel.db" I get an error again "Not enough memory" I have attached a screen shot for the same.. From your screenshot, I can see that there are two database servers now running (re: the icons in the system tray). The point is that if one database server tries to allocate 75% of the total RAM, another server will not be able to allocate all of the same amount (particularly in the constrained memory environment of 512MB - note that there is only "5MB" of memory space left according to the server). In production I assume you only run a single server, correct? Try shutting down the first server before trying to start additional servers. Regards, -- Jeff Albion, Sybase iAnywhere iAnywhere Developer Community : http://www.sybase.com/developer/libr...ere-techcorner iAnywhere Documentation : http://www.ianywhere.com/developer/product_manuals SQL Anywhere Patches and EBFs : http://downloads.sybase.com/swd/summ...&timeframe =0 Report a Bug/Open a Case : http://case-express.sybase.com/cx/ |
#14
| ||||
| ||||
|
|
When I set initial cache size as 75p all the max, min cache size are set to the same value. |
|
Earlier it was 1300 mb, now I changed it to 75P and the value now is 392824. If its in KB, then isn't that 1300 mb is greater than 392824Kb which is 0.39 Mb although I see a performance gain with this step as the report which was earlier taking around 45mins-1 hour now started up in 20 mins. |
|
How can I reverse the cache allocated to one and increase it for the other if there are two. |
|
Jeff.. should I also rebuild the db to have more performance gains... |
![]() |
| Thread Tools | |
| Display Modes | |
| |