Greetings,
I have two USB 3.0 Kingston flash drives and i always leave formatting options by default(block size 4096 bytes etc..) i only add label. usbconfig:
When i format drives with MBR/FAT performance is good enough for home use. But when i format them with BSD/UFS that's when things go downhill(without journaling and soft-updates), am i making an error for formatting drives with UFS? I don't think that BSD partitioning scheme has to do anything with this. I also noticed that formatting takes little more than a minute.
UFS1/2 - 4 Megabytes per second - write
FAT - 24 Megabytes per second - write
Other useful info maybe:
EDIT:
fstab:
Yes, there is sync option, but i still have to type sync after cp anyway or files wont get copied completely.
My formatting routine:
tunefs output:
I have two USB 3.0 Kingston flash drives and i always leave formatting options by default(block size 4096 bytes etc..) i only add label. usbconfig:
Code:
ugen0.3: <Kingston DataTraveler 3.0> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (74mA)
When i format drives with MBR/FAT performance is good enough for home use. But when i format them with BSD/UFS that's when things go downhill(without journaling and soft-updates), am i making an error for formatting drives with UFS? I don't think that BSD partitioning scheme has to do anything with this. I also noticed that formatting takes little more than a minute.
UFS1/2 - 4 Megabytes per second - write
FAT - 24 Megabytes per second - write
Other useful info maybe:
Code:
dev.xhci.0.%desc: Intel Panther Point USB 3.0 controller
EDIT:
fstab:
Code:
/dev/ufs/KINGSTON32a /mnt/flash ufs rw,failok,sync 0 0
My formatting routine:
Code:
dd if=/dev/zero of=/dev/da0 bs=2M count=1 ; sync
gpart create -s BSD /dev/da0
gpart add -t freebsd-ufs /dev/da0
newfs -L KINGSTON32 /dev/da0
tunefs output:
Code:
tunefs: POSIX.1e ACLs: (-a) disabled
tunefs: NFSv4 ACLs: (-N) disabled
tunefs: MAC multilabel: (-l) disabled
tunefs: soft updates: (-n) disabled
tunefs: soft update journaling: (-j) disabled
tunefs: gjournal: (-J) disabled
tunefs: trim: (-t) disabled
tunefs: maximum blocks per file in a cylinder group: (-e) 4096
tunefs: average file size: (-f) 16384
tunefs: average number of files in a directory: (-s) 64
tunefs: minimum percentage of free space: (-m) 8%
tunefs: space to hold for metadata blocks: (-k) 6408
tunefs: optimization preference: (-o) time
tunefs: volume label: (-L) KINGSTON32
Last edited by a moderator: