![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Is it expected behavior for a 9.0.2.2451 engine to *abruptly* shrink the cache on Windows XP? I was under the impression that shrinkage was a kinder/gentler process than expansion. Does this behaviour indicate a failure between my chair and keyboard? ===== Cache size adjusted to 297528K DIAG 2004-11-19 15:28:52.859000 9b. Cursor UPDATE Loop: Input line 15060000 ( 1524351234 bytes ) ... DIAG 2004-11-19 15:33:47.593000 9b. Cursor UPDATE Loop: Input line 16200000 ( 1640640251 bytes ) DIAG 2004-11-19 15:33:49.000000 9c. Cursor UPDATE Loop finished DIAG 2004-11-19 15:33:49.359000 10. COMMIT... Cache size adjusted to 297856K Cache size adjusted to 184756K ===== At this point, a final COMMIT is done and all connections are closed. COMMITs are frequent so the final one shouldn't be doing much. I noticed the same abrupt cache shrinkage earlier in this batch run, when a busy connection remained open. It was immediately followed by a longer period of slow cache growth since the application wasn't nearly finished what it was doing. It is a 512M machine with not much else running except a small PB app... AFAIK it isn't close to running out of RAM. Engine command line: "%ASANY9%\win32\dbeng9.exe" -ch 300M -o x.txt -os 1M -x none x.db Breck |
#3
| |||
| |||
|
|
Nope. Something else in the system must have needed the memory so we shrank. We always set our target cache size to (current_working_set_size+available_memory-reserved_amt_for_OS) Each time we adjust the cache size, we go 75% of the way between where we were and our new target (to avoid unnecessary oscillations). If you want to see the statistics we are using for our cache sizing decisions, add the "-cs" switch to the server and look for output in the server window. -john. |
#4
| |||
| |||
|
|
Another thing that could cause an abrupt shrink would be a database stopping. We keep the cache size less than the sum of the size of all open files + main heap. -john. |
![]() |
| Thread Tools | |
| Display Modes | |
| |