环境 :
CentOS 6.6 x64
kernel
2.6.32-504.3.3.el6.x86_64
flashcache master
SSD OCZ revodriver3X2
文件系统: EXT4
flashcache创建参数
# flashcache_create -v -p back -b 8k -m 8k cachedev1 /dev/disk/by-id/wwn-0x5e83a971000085b5-part1 /dev/mapper/vgdata01-lv01
/sbin/flashcache_load /dev/disk/by-id/wwn-0x5e83a971000085b5-part1 cachedev1
flashcache参数 :
/sbin/sysctl -w dev.flashcache.wwn-0x5e83a979b0a97ec6-part1+vgdata01-lv01.reclaim_policy=1
/sbin/sysctl -w dev.flashcache.wwn-0x5e83a979b0a97ec6-part1+vgdata01-lv01.skip_seq_thresh_kb=2048
PostgreSQL 9.4.1
当测试open_datasync接口时, 内核报错, 服务器重启了.
数据库配置一直用的fdatasync.所以使用正常.
$ pg_test_fsync
5 seconds per test
O_DIRECT supported on this platform for open_datasync and open_sync.
Compare file sync methods using one 8kB write:
(in wal_sync_method preference order, except fdatasync
is Linux's default)
open_datasync
时间: 2024-10-21 19:23:19