Re: Why I Write multiple File Slowly?

You’re not forcing all I/O to occur synchronously, are you?

how to Forcing all I/o to synchronously?

I monitor the my File System driver use Filemon. it is switch at
“Explorer.exe” and “System” Process .some time “Explorer.exe” process send
IRP_MJ_WRITE ,some time “System” process send IRP_MJ_WRITE,at the switch
need a lot of time .

filemon log is follow in:

34 17:04:13.343 explorer.exe:988 IRP_MJ_WRITE
H:\artbook2000\Driver.cpp SUCCESS Offset: 0 Length: 21211
35 17:04:13.343 explorer.exe:988 IRP_MJ_SET_INFORMATION
H:\artbook2000\Driver.cpp SUCCESS FileBasicInformation
36 17:04:13.343 explorer.exe:988 IRP_MJ_CLEANUP H:\artbook2000\Driver.cpp SUCCESS

37 17:04:13.343 explorer.exe:988 IRP_MJ_WRITE* H:\artbook2000\Driver.cpp SUCCESS Offset:
0 Length: 24576
38 17:04:13.437 System:8 IRP_MJ_SET_INFORMATION* H:\artbook2000\Readme.txt SUCCESS Length:
4265
39 17:04:13.437 System:8 IRP_MJ_CLOSE H:\artbook2000\Readme.txt SUCCESS
40 17:04:13.812 explorer.exe:988 IRP_MJ_CREATE H:\ SUCCESS Options: Open
Directory Access: All
41 17:04:13.812 explorer.exe:988 IRP_MJ_CREATE H:\ SUCCESS Options: Open
Directory Access: All
42 17:04:13.890 System:8 IRP_MJ_WRITE* H: SUCCESS Offset: 0 Length: 4096
43 17:04:14.203 explorer.exe:988 IRP_MJ_DIRECTORY_CONTROL H:\ SUCCESS FileBothDirectoryInformation:
artbook2000
44 17:04:14.312 explorer.exe:988 IRP_MJ_CREATE
H:\artbook2000 SUCCESS Options: Open Directory Access: All
45 17:04:14.703 System:8 IRP_MJ_SET_INFORMATION* H:\artbook2000\Driver.cpp SUCCESS Length:
21211
46 17:04:14.703 System:8 IRP_MJ_CLOSE H:\artbook2000\Driver.cpp SUCCESS
47 17:04:15.625 explorer.exe:988 IRP_MJ_CLEANUP H:\ SUCCESS
48 17:04:15.625 explorer.exe:988 IRP_MJ_DIRECTORY_CONTROL H:\ SUCCESS FileBothDirectoryInformation:
artbook2000
49 17:04:15.625 explorer.exe:988 IRP_MJ_CLOSE H:\ SUCCESS
50 17:04:15.625 explorer.exe:988 IRP_MJ_CLEANUP H:\ SUCCESS
51 17:04:15.625 explorer.exe:988 IRP_MJ_CLOSE H:\ SUCCESS