-
Notifications
You must be signed in to change notification settings - Fork 143
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
May I ask how to speed up the verification speed through multi-threading #195
Comments
I tried to create multiple folders under one hard drive and then start a set of f3write&f3read for each folder. I don't know if f3write&f3read will interfere with the accuracy of each by such a method of multi-threading. |
Suppose I use the --end-at=NUM and --start-at=NUM parameters, although I can run multiple f3write&f3read in a folder, but when running to the end, multiple f3write&f3read will still encounter attempts to compete for less than 1GB of storage space, may I ask if the results are still accurate at this point? |
As you have already figured out, you can have multiple instances of You should ensure that each instance of
With unique ranges, using folders is optional, but likely helpful. If you develop a script to make it simple to run multiple instances of |
disk_stress_f3.zip |
When multiple f3write processes are writing at the same time, it may cause a misjudgment due to the slow speed of the hard disk, and then stop writing,Convert to read。maybe this needs to be detected in monitoring |
Thank you for posting your script, @wnark. |
Hello, according to this issue:#175, f3 will not determine if the press test result is OK, but I have a 7T hard drive, and a press test will output at least 7000x3x1000 lines of logs, and it looks like I need to analyze the logs in near real time if I want to monitor now, and then only output the abnormal cases to the log file, and not save all the output to the log file. |
According to this article, the shell is not a good way to process text, so I still try to run f3write & f3read in python, and then process it. |
I agree Python will be much more helpful in processing the output. |
Shell is fine. The issue lies in reading line by line, but since you're already using bash you can just do validate_log() {
if ! grep -F "Data LOST: 0.00 Byte (0 sectors)" "$1" &>/dev/null
then
printf 'f3read日志文件%s显示有错误\n' "$1">&2
printf 'likely error in f3read log file: %s\n' "$1">&2
exit 1
fi
} Here's the changed script disk_stress_f3.sh.zip. I:
I didn't change some other stylistic choices. Use shellcheck for those. You probably want to use |
Thank you for this contribution, @Artoria2e5! |
I have a brand new batch of 7.68T u.2 SSDs here and want to test whether writing data with theoretical cycle life times under server room temperature conditions will produce failures.
When I enable only one f3write&f3read, even though the drive has a theoretical write speed of 7GB/S, the actual drive write speed is only 1GB/s due to the CPU single core main frequency not being high enough.
I might even have to test it for a year if I go at that speed.
If I use fio I can use the -thread -numjobs parameter, but how do I use f3write & f3read to achieve multi-threading?
The text was updated successfully, but these errors were encountered: