•AFP: Optimizing for heavy loads :
Increase server RAM
Disable Secure Connections
Minimize number of automounts
Configure client-side afp_wan_threshold/quantum
Increase AppleFileServer maxThreads setting
Disable Session Caching/Reconnects
Disable Network .DS_Store creation
Network Home Directories
Redirect ~/Library/Caches for clients
Consider Portable Home Directories
•AFP: Configure client-side afp_wan_threshold :
AFP clients check their latency to the AFP server with:
afp_wan_threshold Threshold before WAN connection assumed
afp_wan_quantum Packet size for WAN connections
Default values can be too low
Default afp_wan_threshold: 30 (ms)
Default afp_wan_quantum values:
OS X 10.4.8 and up : 32768
OS X 10.4.7 and lower : 8192
Changing the defaults: - Code:
-
defaults write -g com.apple.AppleShareClientCore -dict-add afp_wan_threshold -int 120
defaults write -g com.apple.AppleShareClientCore -dict-add afp_wan_quantum -int 131072
•LoginHook or MCX using Workgroup Manager.
•AFP: Increasing maxThreads
10.4 spawns more AFP threads for each connection
Default values can be far too low
Defaults:
OS X Server 10.4 (PPC) : 40
OS X Server 10.4 (Universal) : 200
Apple suggest a maximum setting of 400
- Code:
-
sudo serveradmin settings afp:maxThreads=400
•AFP: Session Caching/Reconnects
Allows sleeping clients to transparently reconnect
Can be problematic in heavy load scenarios
To disable:
- Code:
-
sudo serveradmin settings afp:reconnectFlag=”none”
•AFP: Disable Network .DS_Store creation
.DS_Store files contain window view settings
Corrupted versions can affect performance
Alternatively use Workgroup Manager/MCX
To disable on a per-user basis:
- Code:
-
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
•AFP: Redirect ~/Library/Caches
Redirecting ~/Library/Caches for network home directories to a local
location improves client performance significantly
Network Home Redirector:
http://jochsner.dyndns.org/NHR/Welcome.html
LoginHook method:
See macos-x-server list archives
•AFP: Privilege Mapping :
AFP translates remote “effective” permissions to local “real” permissions
Comes into play with:
•Local client users
•No shared directory service
•Was problematic for 10.4 clients with 10.3 AFP servers
To disable: - Code:
-
sudo serveradmin settings afp:noNetworkUsers = yes
Excellent Apple Techinfo article at: http://docs.info.apple.com/article.html?artnum=107485
merci à :
Andrina Kelly
Nigel Kersten
source :
http://www.afp548.com/filemgmt/visit.php?lid=51