Advertisement
Guest User

raid10 workstation pg_test_fsync

a guest
Nov 3rd, 2012
394
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.54 KB | None | 0 0
  1. raid10workstation$ pg_test_fsync
  2. 2000 operations per test
  3. O_DIRECT supported on this platform for open_datasync and open_sync.
  4.  
  5. Compare file sync methods using one 8kB write:
  6. (in wal_sync_method preference order, except fdatasync
  7. is Linux's default)
  8. open_datasync 81.331 ops/sec
  9. fdatasync 82.531 ops/sec
  10. fsync 26.609 ops/sec
  11. fsync_writethrough n/a
  12. open_sync 26.430 ops/sec
  13.  
  14. Compare file sync methods using two 8kB writes:
  15. (in wal_sync_method preference order, except fdatasync
  16. is Linux's default)
  17. open_datasync 38.820 ops/sec
  18. fdatasync 81.045 ops/sec
  19. fsync 26.782 ops/sec
  20. fsync_writethrough n/a
  21. open_sync 13.013 ops/sec
  22.  
  23. Compare open_sync with different write sizes:
  24. (This is designed to compare the cost of writing 16kB
  25. in different write open_sync sizes.)
  26. 16kB open_sync write 26.974 ops/sec
  27. 8kB open_sync writes 13.005 ops/sec
  28. 4kB open_sync writes 6.566 ops/sec
  29. 2kB open_sync writes 2.690 ops/sec
  30.  
  31. ... at this point I got bored waiting of the amazingly, incredibly glacial performance and just posted.
  32.  
  33.  
  34. raid10workstation$ mdadm --detail /dev/md1
  35.  
  36. Raid Level : raid10
  37. ...
  38. Raid Devices : 4
  39. Total Devices : 4
  40.  
  41.  
  42.  
  43. raid10workstation# hdparm -i /dev/sda
  44.  
  45. /dev/sda:
  46.  
  47. Model=WDC WD1001FALS-00J7B0, FwRev=05.00K05
  48. ..
  49. UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5 *udma6
  50. AdvancedPM=no WriteCache=enabled
  51.  
  52.  
  53.  
  54. Note that while the disk's write cache is shown as enabled, the RAID subsystem uses write barriers to ensure proper flushing. In practice the write cache has little effect.
  55.  
  56. No LVM is in use. LVM makes performance even worse.
  57.  
  58. This is software RAID, but hardware RAID in write-through caching mode with no BBU will not be much - if at all - better.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement