You are not logged in.

#1 2006-03-20 06:11:23

Galdona
Member
Registered: 2006-03-15
Posts: 196

sync in fstab?

does anyone use/recommend using sync option for harddrives in fstab? it sounds like a sensible thing to use but i dont know why most or all distros not use it by default. is it too slow?

(does not windows do asyncronous file operations too?)

Offline

#2 2006-03-20 10:12:49

raskolnikov
Member
From: France
Registered: 2006-01-08
Posts: 100

Re: sync in fstab?

async is the default on linux (but not on the BSD). See the manpage of mount(8) for details ;^)


Excessive showering, grooming, and toothbrushing is not only vain, it wastes valuable coding time.

Offline

#3 2006-03-20 10:18:35

Galdona
Member
Registered: 2006-03-15
Posts: 196

Re: sync in fstab?

ok im so sorry, what i meant was sync, where changes are written immediately to disk. this is how it is in windows i believe.

Offline

#4 2006-03-20 13:23:57

raskolnikov
Member
From: France
Registered: 2006-01-08
Posts: 100

Re: sync in fstab?

No problem wink Try it if you want, it will not break anything. It may be safer, but less quick - though on BSD it's quick. Never used it and never loosed data, so I don't think it's mandatory...

You can try dirsync if you want metadatas (ie directories, symlinks, nodes) to be written synchronously but datas (files) asynchronously, too. Maybe a good compromise between speed and reliability wink

From the manpage this option seems to work only on ext2/3 and ufs, so if you have another filesystem it may be ignored.


Excessive showering, grooming, and toothbrushing is not only vain, it wastes valuable coding time.

Offline

#5 2006-03-22 16:32:14

Galdona
Member
Registered: 2006-03-15
Posts: 196

Re: sync in fstab?

hello, ok thanks im going to see about dirsync. (i was so busy so i only saw your reply now). im just concerned about power failures because i dont have a UPS and im always typing documents on my computer.
smile

Offline

#6 2006-03-27 02:19:14

big_gie
Member
Registered: 2005-01-19
Posts: 637

Re: sync in fstab?

I'm using the sync options only for external drives and usb keys. That way I can be sure when copy is finished so I can unmount the drives. But for / and /home it speeds things because copy windows, cp command and others disapear faster. Also, I think you can save some power by letting the kernel decide when to write, giving you longer battery life.

Offline

Board footer

Powered by FluxBB