![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, At http://informix-myview.blogspot.com/...ed-filesystem- rant.html the author argues that journaling file systems' use of block relocations leads to poor data locality over time. And when you use a journaling file system, you have two layers of journaling: in the database and on the file system. - So that a non-journaling file system should be used if raw devices aren't an option. Even though the article is written from an Informix standpoint, the potential problem should be rather universal for database systems, I guess. Do you agree with the points in the article? If choosing a journaling file system after all (to prevent long outages after uncontrolled restarts due to fsck), would it help to create the file system using a very small journal? |
#3
| |||
| |||
|
|
Hi Troels, On 04.08.10 16:23 , Troels Arvin wrote: Hello, Athttp://informix-myview.blogspot.com/2010/07/new-journaled-filesystem- rant.html the author argues that journaling file systems' use of block relocations leads to poor data locality over time. And when you use a journaling file system, you have two layers of journaling: in the database and on the file system. - So that a non-journaling file system should be used if raw devices aren't an option. Even though the article is written from an Informix standpoint, the potential problem should be rather universal for database systems, I guess. Do you agree with the points in the article? If choosing a journaling file system after all (to prevent long outages after uncontrolled restarts due to fsck), would it help to create the file system using a very small journal? It is correct that DB2 makes use of logging (which could considered journaling), but please tell me what will happen, if there is a power outage during a log write and you are using a non-journaled filesystem and you are not able to recover the data with fsck. The journaling prevents data loss and filesystem corruption from an OS's point of view. This is a different layer. Your database logging mechanism is useless if it is corrupted and/or not accessible. However there is the matter of filesystem caching, which is usually bad for database filesystems (with some exceptions), because data is cached in 2 layers: fileystem and bufferpool. Therefore FSC is off by default on DB2 9.7. Helmut -- Helmut K. C. Tessarek DB2 Performance and Development /* * *Thou shalt not follow the NULL pointer for chaos and madness * *await thee at its end. */- Tekst uit oorspronkelijk bericht niet weergeven - - Tekst uit oorspronkelijk bericht weergeven - |
#4
| |||
| |||
|
|
How do you feel about EXT4 (and EXT3 with writeback)? His objections seem more serious there. |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
EXT2 performs better with DB2 than ext3. If you dont use SMS managed tablespaces then ext2 is safe to use. |
#7
| |||
| |||
|
|
hsn_ wrote: EXT2 performs better with DB2 than ext3. If you dont use SMS managed tablespaces then ext2 is safe to use. Yes, but how do handle the following case which I fear: 1. The system goes down hard (hardware failure / software failure / power outage). |
|
2. During boot, the OS determines that the EXT2 filesystem needs a check. 3. The check takes hours, if not days. But maybe step 1 happens so seldomly that it can be disregarded? Or maybe step 3 doesn't take very long if there are few files on the file system? |
#8
| |||
| |||
|
|
hsn_ wrote: EXT2 performs better with DB2 than ext3. If you dont use SMS managed tablespaces then ext2 is safe to use. Yes, but how do handle the following case which I fear: But maybe step 1 happens so seldomly that it can be disregarded? Or maybe step 3 doesn't take very long if there are few files on the file system? You dont need to run fsck because only filesystem inconsistency will |
![]() |
| Thread Tools | |
| Display Modes | |
| |