-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory map fails with Error saying it cannot map the file #119
Comments
The error code 0x8 maps to: Not enough memory resources are available to process this command. If you're using a 64-bit platform then switch to using the 64-bit version of the tool. On a 32-bit platform you'll need to use a smaller file size for memory mapped operations. |
Thanks Dan. But I do not understand why there is not enough memory resources..i am trying to mmap a file which is just a few KB. And even a 100GB files get mapped if I map it using MapViewofFile by own program of mine? |
Thanks Dan. But I do not understand why there is not enough memory resources..i am trying to mmap a file which is just a few KB. And even a 100GB files get mapped if I map it using MapViewofFile by own program of mine? |
You're using the -c option which instructs the tool to create a new file. If you wish to use an existing file then you need to omit the option and just pass in the file name, e.g. diskspd.exe -b4K -F8 -r -o32 -W60 -d60 -Sm D:\test.wim. If you've downloaded the official release of the tool then you should find the 64-bit version in the amd64 directory. On a 64-bit platform that version will work with your original command line. Please note though that the -c option will replace the existing file. |
Hi Dan, |
Please check the size of D:\test.wim again as it's most probably been modified to 2 GB. |
Yes it is. It is modified to 2GB. But why does it fail to map..Is it because I am using the normal one , not the one under AMD folder? |
HI Dan,yes when I used the exe from AMD folder, it worked well, thanks! It was indeed a s 64bit exe that was required to run welll. |
Hi, One more quick question. Is there a way to run the DiskSpd test for a particular number of IOs instead of time duration? like can i instrcut it to run until it finishes "x" number of IOs and record the time spent for it? And is there an example to notify another process when it finishes that many IOs? Thanks |
Question transferred to #120 |
-Sm and -Smw option fails saying it cannot map the file?
Am I missing anything?
Output below:
C:\Users\Administrator\Desktop\x86>diskspd.exe -c2G -b4K -F8 -r -o32 -W60 -d60 -Sm D:\test.wim
FATAL ERROR: Could not map view for target 'D:\test.wim'. Error code: 0x8
ERROR: Could not map view for target 'D:\test.wim'. Error code: 0x8
FATAL ERROR: Could not map view for target 'D:\test.wim'. Error code: 0x8
ERROR: Could not map view for target 'D:\test.wim'. Error code: 0x8
FATAL ERROR: Could not map view for target 'D:\test.wim'. Error code: 0x8
ERROR: Could not map view for target 'D:\test.wim'. Error code: 0x8
FATAL ERROR: Could not map view for target 'D:\test.wim'. Error code: 0x8
ERROR: Could not map view for target 'D:\test.wim'. Error code: 0x8
FATAL ERROR: Could not map view for target 'D:\test.wim'. Error code: 0x8
ERROR: Could not map view for target 'D:\test.wim'. Error code: 0x8
FATAL ERROR: Could not map view for target 'D:\test.wim'. Error code: 0x8
ERROR: Could not map view for target 'D:\test.wim'. Error code: 0x8
FATAL ERROR: Could not map view for target 'D:\test.wim'. Error code: 0x8
ERROR: Could not map view for target 'D:\test.wim'. Error code: 0x8
FATAL ERROR: Could not map view for target 'D:\test.wim'. Error code: 0x8
ERROR: Could not map view for target 'D:\test.wim'. Error code: 0x8
The text was updated successfully, but these errors were encountered: