Comments (3)
Debug logging:
Reading into buffer 0
Finished reading into buffer 0
Waiting to read into buffer 1…
Reader generation check: Read gen 0, write gen 0
Reading into buffer 1
Finished reading buffer 1. This is read generation 1, chunk #
Read loop reached end of input file
Read loop exiting
Waiting to write buffer 1 (reader state is 2)…
Writer generation check: Read gen 1, write gen 0
Writing buffer 1, which is chunk #
Finished writing buffer 1. This is write generation 0, chunk #
Write loop exiting because readerState is 4
Copied 0 bytes in 0 ms (overall avg 0 bytes/sec)
from dd-parallel.
Added the read amounts to the log. As expected, the initial read is the length of the file and the second read is 0:
Reading into buffer 0
Finished reading 1546 bytes into buffer 0
Waiting to read into buffer 1…
Reader generation check: Read gen 0, write gen 0
Reading into buffer 1
Finished reading 0 bytes into buffer 1. This is read generation 1, chunk #
Read loop reached end of input file
Read loop exiting
Write loop exiting because readerState is 4
Copied 0 bytes in 0 ms (overall avg 0 bytes/sec)
from dd-parallel.
Seems like the writer thread needs to be controlled not by the reader's state, but on the generation counts. In fact, it seems like this could happen at the end of a long file, not just on a small one.
from dd-parallel.
Related Issues (14)
- Better progress format HOT 2
- Writer thread prematurely exiting HOT 2
- dd-parallel-posix occasionally corrupts data HOT 2
- POSIX port should use F_RDAHEAD and F_NOCACHE when available
- Sometimes the last mebibyte doesn't get copied on a single-core machine HOT 6
- Quietly correct /dev/diskN paths to /dev/rdiskN
- Fix the parallelism
- Linux port HOT 1
- Integer precision loss in call to CC_MD5_Update
- Pure-POSIX port HOT 2
- Estimate date/time of completion
- Linux compatibility HOT 1
- Handle failures
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dd-parallel.