Skip to content

Commit

Permalink
Merge pull request #4 from toy/develop
Browse files Browse the repository at this point in the history
- [NEW] Use AES 128 CBC on zeros instead of slower pseudorandom data source. ([Ivan Kuchin](#4))
- [NEW] Show elapsed time and ETA. ([Ivan Kuchin](#4))
- [NEW] On Macs disable idle-sleep during run. ([Ivan Kuchin](#4))
- [NEW] Set exit code to 2 on syscall failure. ([Ivan Kuchin](#4))
- [CHANGE] Use a fixed buffer size of 8MB. ([Ivan Kuchin](#4))
  • Loading branch information
rentzsch committed Aug 1, 2016
2 parents 7c12ff5 + 0742d5c commit 0758528
Show file tree
Hide file tree
Showing 6 changed files with 264 additions and 152 deletions.
1 change: 1 addition & 0 deletions .clang-format
@@ -0,0 +1 @@
BasedOnStyle: LLVM
1 change: 1 addition & 0 deletions .gitattributes
@@ -0,0 +1 @@
*.pbxproj -crlf -merge
10 changes: 10 additions & 0 deletions .gitignore
@@ -0,0 +1,10 @@
/pkg/

build/
*.pbxuser
*.mode1v3
*.mode2v3
*.perspective
*.perspectivev3
project.xcworkspace/
xcuserdata/
8 changes: 4 additions & 4 deletions README.markdown
Expand Up @@ -8,17 +8,17 @@ It was written to verify correct operation of [de-duping SSDs](http://storagemoj

### Usage

sudo ./stressdrive /dev/rdisk1
sudo ./stressdrive /dev/rdiskN

### Sample Run

$ sudo ./stressdrive /dev/rdisk9
$ sudo ./stressdrive /dev/rdisk123
blockSize: 512
blockCount: 468862128
speedScale: 16x
scaled blockSize: 8192
scaled blockCount: 29303883
writing random data to /dev/rdisk0
writing random data to /dev/rdisk123
writing 100% (block 29303002 of 29303883)
1779f30a231c1d07c578b0e4ee49fde159210d95 <= SHA-1 of written data
verifying written data
Expand All @@ -44,4 +44,4 @@ Indeed you could. I prefer a minimal focused tool whose operation is fixed, its

### Portablity

Stressdrive should be easily portable to other Unixes if anyone wants to do that and toss me a Pull Request.
Stressdrive should be easily portable to other Unixes if anyone wants to do that and toss me a Pull Request.

0 comments on commit 0758528

Please sign in to comment.