Results 1 to 3 of 3
Hi all,
I'm trying to test the durability of solid state drives. My goal is to see how many read/write cycles a drive can support and how the performance changes ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 06-17-2010 #1Just Joined!
- Join Date
- Jun 2010
- Posts
- 14
Use dd to benchmark drives
Hi all,
I'm trying to test the durability of solid state drives. My goal is to see how many read/write cycles a drive can support and how the performance changes with each cycle. I am using the dd command to first zero-out the drive and then fill it with random data. So far I have:
I want to changes this to do two things:Code:#!/bin/bash #Arg 1: Drive directory #Arg 2: Number of desired cycles for (( n=1; n<=$2; n++)) do echo "Iteration $n" dd if=/dev/zero of=$1 bs=1M conv=notrunc dd if=/dev/urandom of=$1 bs=1M conv=notrunc done exit 0
1. Instead of writing random data in the second step, I want to write all 1's to the drive. This way, every bit is switched from 0 to 1 each time i execute these commands.
2. Save the outputs to a text file so that I can see the performance changes over time.
I have been using
http: //ww w.linuxquestions.org/questions/linux-newbie-8/learn-the-dd-command-362506/
as a reference.
I would appreciate any help on this. Thanks.
- 06-17-2010 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 10,156
Is this work work, or school work?
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 06-17-2010 #3Just Joined!
- Join Date
- Jun 2010
- Posts
- 14


Reply With Quote

