d50259282a
- Remove unneeded checks of OSVERSION since they are in the corresponding dependencies. - Add OPTIONS: LOCK and UBLIO. See: www.mail-archive.com/ macfuse-devel@googlegroups.com/msg00053.html PR: ports/112402 Submitted by: alepulver (myself) Approved by: fjoe (maintainer, timeout: 1 month)
37 lines
1.8 KiB
Text
37 lines
1.8 KiB
Text
==============================================================================
|
|
|
|
NTFS-3G has been installed, and was built with UBLIO support.
|
|
|
|
The UBLIO layer is configured through environment variables, which are read
|
|
when mounting the filesystem. The following are available:
|
|
|
|
NTFS_USE_UBLIO - Enable the UBLIO cache.
|
|
UBLIO_BLOCKSIZE - Actual reads/writes will be multiples of this quantity.
|
|
UBLIO_ITEMS - Number of cache entries, each of UBLIO_BLOCKSIZE length.
|
|
UBLIO_GRACE - Number of times a cache entry will refuse being recycled.
|
|
UBLIO_SYNC_IO - If enabled, all writes will be immediatly executed.
|
|
|
|
To give an idea about tuning, here are the default values with some notes
|
|
(they are only based on some simple benchmarks, and may be wrong):
|
|
|
|
NTFS_USE_UBLIO - 1. Disabling it drastically decreases performance.
|
|
UBLIO_BLOCKSIZE - 1048576 (1MB). Larger improves reading/writing speed of
|
|
large files, and smaller makes filesystem operations
|
|
(creation, deletion, moving, find(1)) perform faster.
|
|
Try 2/4MB and 512/256KB for the different approaches. Note
|
|
that after that points performance descreases again.
|
|
UBLIO_ITEMS - 64. When greater, increases speed of filesystem operations,
|
|
but consumes more memory. Try 128.
|
|
UBLIO_GRACE - 32. Makes the cache items have more chances to be reused.
|
|
UBLIO_SYNC_IO - 0. If enabled, highly decreases writing speed, but the data
|
|
is written immediatly to the disk.
|
|
|
|
For example (improves performance over large files):
|
|
|
|
# env UBLIO_BLOCKSIZE=2097152 ntfs-3g /dev/ad0s1 /mnt
|
|
|
|
It is also possible to enforce block aligned I/O on regular files by setting
|
|
the FORCE_ALIGNED_IO variable (it will be set to 512 bytes), but this is only
|
|
useful for testing purposes and in practice has no use.
|
|
|
|
==============================================================================
|