I want to add temporary files to /dev/shm with my VMware but I found this hack to improve the perfomance of the vm:
mount -t tmpfs -o size=5G,nr_inodes=5k,mode=700 tmpfs /disk2/tmpfs
But I don't know what it's doing (it's adaptive ramdisk) and why it could help to improve the performance? Do I've add this to my fstab? This is my vmware settings:
#temp directory
tmpDirectory="/disk2/tmpfs"
# bugfix
host.cpukHz = "2200000"
host.noTSC = "TRUE"
ptsc.noTSC = "TRUE"
# I/O fix
prefvmx.useRecommendedLockedMemSize = "TRUE"
prefvmx.minVmMemPct = "100"
# temp file fix
mainMem.useNamedFile = "FALSE"
MemTrimRate=0
MemAllowAutoScaleDown = "FALSE"
# Cpu fix
mem.ShareScanTotal=0
mem.ShareScanVM=0
mem.ShareScanThreshold=2024
sched.mem.maxmemctl=0
sched.mem.pshare.enable = "FALSE"
# Disable 3d
mks.enable3d = "true"
Maybe this is the correct command: tmpfs /dev/shm tmpfs defaults,size=5G,nr_inodes=5k,mode=700 0 0
?