Coder Social home page Coder Social logo

Comments (3)

boredzo avatar boredzo commented on September 17, 2024

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.

boredzo avatar boredzo commented on September 17, 2024

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.

boredzo avatar boredzo commented on September 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.