gordon@ said:You really shouldn't bother with the sync's, you are hamstringing your performance. As for the sync_on_panic option, I'm guessing we don't have it on since there is a concern that at panic, there is corrupt data that you don't want to flush to disk. Better to live with what's already there than make things worse.
My question is why are you trying to do this? Are you ending up running fsck a lot as it is?
My web server is running mysql on freebsd 7.3 . I thought the sync command would release some static file cache memory, and flush data to disk, becuase I want more memory for my web applications. I don't run sync on crontab now, I just wonder it would be helpful or not!
Background fsck?And I need sync_on_panic, mysql cause big IO on disk, if the OS just crash that time, the database filesystem(ufs2) always be destroyed! So I want to sync data to disk. and I don't want to do fsck on such a big filesystem.