![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
In one of our tests, we lost the whole data base after a power shutdown --- this is exactly what we want to avoid in our application. Please help me by pointing out how I have to use BerkeleyDB correctly to avoid data loss. |
#4
| |||
| |||
|
|
Can you reproduce this problem? Yes. |
|
Have you turned off the disk's write cache (hdparm -W 0)? Yes. |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
Switching off the write cache results in a noticable performance loss. I will have to look into optimizations like storing log files on different drives (without write cache) and data files on large drives with caches enabled... |
#7
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |