Re: System hängt bei SSD Zugriff
von remoh » Di 15. Jul 2008, 12:53
passende Ausnahmen hab ich schon definiert, in meinem Fall c:\Daten. Da wird alles sofort geschrieben.
Alles andere will ich ja cachen. Das System läuft ja auch wirklich absolut top mit fbwf.
Nur kann fbwf weder Verzeichnisse schreiben noch Dateien löschen.
Ich denke aber ich werd es weiter nutzen. Ich habe mir eine batch Dateien auf den Desktop gelegt, eine zum deaktivieren von fbwf, eine zum aktivieren und eine für den commit (schreiben aller Dateien auf Disk).
Für den normalen Betrieb ist fbwf gut geeignet, nur neue Software sollte man nicht bei aktivem fbwf installieren da ja keine Verzeichnisse erstellt werden können.
Dafür habe ich die batch Datei zum deaktivieren von fbwf.
Falls jemand interesse an dem commit script hat (ist noch nicht endgültig, funktioniert aber prima):
'Settings:
volume = "c:"
Call DetectifActive()
Function DetectifActive ()
Set WshShellDetect = WScript.CreateObject("WScript.Shell")
Set WshExecDetect = WshShellDetect.Exec("fbwfmgr /displayconfig")
isactive = LCase(WshExecDetect.StdOut.ReadAll)
If InStr(isactive, "filter state: enabled.") <> 0 Then
Call StartCommit()
End If
End Function
Function StartCommit ()
Set WshShell = WScript.CreateObject("WScript.Shell")
Set WshExec = WshShell.Exec("fbwfmgr /overlaydetail") 'get the contents of the overlay
fbwfoverlay = LCase(WshExec.StdOut.ReadAll)
folders = Split(fbwfoverlay,vbNewLine)
For each folder in folders
result = 0
dirstartpos = 0
dirlength = 0
grabpos = 0
commitfile = ""
If InStr(folder, "file") <> 0 then
dirstartpos = InStr(folder, "\") ' returns the position of the directory start
dirlenght = Len(folder) ' returns the lenght of the string
grabpos = dirlenght - dirstartpos + 1
commitfile = Right(folder,grabpos)
Call commit(commitfile)
End If
Next
wscript.sleep(500)
End Function
Function commit (file)
helpchar = """"
Set WshShellCommit = WScript.CreateObject("WScript.Shell")
Set WshExecCommit = WshShellCommit.Exec("fbwfmgr /commit " & volume & " " & helpchar & file & helpchar)
commitoutput = LCase(WshExecCommit.StdOut.ReadAll)
End Function
@gerd: Auf jeden Fall danke für den link. Wenn man das Netbook "normal" einsetzt (surfen etc) beschleunigt fbwf den Aspire One enorm. Allein der start ist ein Drittel schneller.
Ich lasse alle Dateien bei Shutdown automatisch schreiben, so geht im normalbetrieb nix verloren.