All of lore.kernel.org
 help / color / mirror / Atom feed
* mkfs and mount tips?
@ 2007-02-13  9:19 Leon Kolchinsky
  0 siblings, 0 replies; 10+ messages in thread
From: Leon Kolchinsky @ 2007-02-13  9:19 UTC (permalink / raw)
  To: xfs

Hello All, 

I have Pentium II (Deschutes) with first 10GB (/dev/hda) and second
60GB(/dev/hdc) disk. 
After reading gentoo xfs threads on their forum and some SGI docs and FAQs I
came with this options for creating FS and mounting the disks: 

1) To create XFS on hda: 

Code:	
# mkfs.xfs -l internal,size=128m -d agcount=2 /dev/hda	


I've also seen "–d unwritten=0" option: 

So my question: 
Is it safe to add –d unwritten=0 option to increase performance like this
(or will I lose some essential functionality)?: 

Is this how the code should look?:	
# mkfs.xfs -l internal,size=128m -d agcount=2 –d unwritten=0 /dev/hda	


2) To prevent data lost in case of power outage(Disabling the write back
cache): 
Add the following to local.start: 

Code:	
# hdparm -W0 /dev/hda
# hdparm -W0 /dev/hdc
# blktool /dev/hda wcache off 
# blktool /dev/hdc wcache off	


Right? 

3) Mount options: 

On gentoo xfs thread it's suggested that the mount options should be
"noatime,logbufs=8" 

But what about "osyncisdsync" mount option. 

"• osyncisdsync
– Writes to files opened with the O_SYNC flag set will behave as if the
O_DSYNC flag had been used instead. 
– This can result in better performance without compromising data safety. 
– However timestamp updates from O_SYNC writes can be lost if the system
crashes. 
Use osyncisosync to disable this setting."

So do you think it is safe to add "osyncisdsync" mount option to fstab? 


I'd appreciate any comments/tips/answers.


Best Regards,
Leon Kolchinsky

^ permalink raw reply	[flat|nested] 10+ messages in thread
* mkfs and mount tips?
@ 2007-02-13  8:48 Leon Kolchinsky
  2007-02-13  9:30 ` Justin Piszcz
  2007-02-15  1:19 ` Timothy Shimmin
  0 siblings, 2 replies; 10+ messages in thread
From: Leon Kolchinsky @ 2007-02-13  8:48 UTC (permalink / raw)
  To: linux-xfs

Hello All, 

I have Pentium II (Deschutes) with first 10GB (/dev/hda) and second
60GB(/dev/hdc) disk. 
After reading gentoo xfs threads on their forum and some SGI docs and FAQs I
came with this options for creating FS and mounting the disks: 

1) To create XFS on hda: 

Code:	
# mkfs.xfs -l internal,size=128m -d agcount=2 /dev/hda	


I've also seen "–d unwritten=0" option: 

So my question: 
Is it safe to add –d unwritten=0 option to increase performance like this
(or will I lose some essential functionality)?: 

Is this how the code should look?:	
# mkfs.xfs -l internal,size=128m -d agcount=2 –d unwritten=0 /dev/hda	


2) To prevent data lost in case of power outage(Disabling the write back
cache): 
Add the following to local.start: 

Code:	
# hdparm -W0 /dev/hda 
# hdparm -W0 /dev/hdc 
# blktool /dev/hda wcache off 
# blktool /dev/hdc wcache off	


Right? 

3) Mount options: 

On gentoo xfs thread it's suggested that the mount options should be
"noatime,logbufs=8" 

But what about "osyncisdsync" mount option. 

"• osyncisdsync 
– Writes to files opened with the O_SYNC flag set will behave as if the
O_DSYNC flag 
had been used instead. 
– This can result in better performance without compromising data safety. 
– However timestamp updates from O_SYNC writes can be lost if the system
crashes. 
Use osyncisosync to disable this setting."

So do you think it is safe to add "osyncisdsync" mount option to fstab? 


I'd appreciate any comments/tips/answers.


Best Regards,
Leon Kolchinsky

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-02-15 14:08 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-13  9:19 mkfs and mount tips? Leon Kolchinsky
  -- strict thread matches above, loose matches on Subject: below --
2007-02-13  8:48 Leon Kolchinsky
2007-02-13  9:30 ` Justin Piszcz
2007-02-13 10:33   ` Leon Kolchinsky
2007-02-13 11:14     ` Olaf Frączyk
2007-02-13 12:38       ` Leon Kolchinsky
2007-02-13 11:57     ` Andi Kleen
2007-02-13 18:10     ` Eric Sandeen
2007-02-15  1:19 ` Timothy Shimmin
2007-02-15 14:10   ` Leon Kolchinsky

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.