Coder Social home page Coder Social logo

Expected Behavior? about fpart HOT 2 CLOSED

martymac avatar martymac commented on May 23, 2024
Expected Behavior?

from fpart.

Comments (2)

martymac avatar martymac commented on May 23, 2024

Hello Tennis,

Yes, this is expected as rsync will fork itself several processes. When you use "-n 8", you start 8 rsync master processes in parallel ; then rsync does what is has to do and may fork other children processes.

You can examine parent/children processes' relationship with tools such a pstree (on GNU/Linux) or ps' option "-d" on FreeBSD.

On my system (FreeBSD), it gives the following :

martymac 96211  0.0  0.0 11768  3100  5  S+   12:03   0:00.00   | |-- /bin/sh /tmp/fpsync/work/1596708209-95820/1
martymac 96215  9.7  0.0 15876  4060  5  R+   12:03   0:00.97   | | `-- /usr/local/bin/rsync -lptgoD -v --numeric-ids -r --files-from=/tmp/fpsync/parts/1596708209-95820/part.1 --from0 /usr/src// /var/tmp/src/
martymac 96220  0.1  0.0 13716  3208  5  S+   12:03   0:00.00   | |   `-- /usr/local/bin/rsync -lptgoD -v --numeric-ids -r --files-from=/tmp/fpsync/parts/1596708209-95820/part.1 --from0 /usr/src// /var/tmp/src/
martymac 96581  0.0  0.0 14236  3224  5  S+   12:03   0:00.00   | |     `-- /usr/local/bin/rsync -lptgoD -v --numeric-ids -r --files-from=/tmp/fpsync/parts/1596708209-95820/part.1 --from0 /usr/src// /var/tmp/src/
martymac 96481  0.0  0.0 11768  3100  5  S+   12:03   0:00.00   | |-- /bin/sh /tmp/fpsync/work/1596708209-95820/2
martymac 96483  0.0  0.0 13540  3528  5  R+   12:03   0:00.65   | | `-- /usr/local/bin/rsync -lptgoD -v --numeric-ids -r --files-from=/tmp/fpsync/parts/1596708209-95820/part.2 --from0 /usr/src// /var/tmp/src/
martymac 96484  0.0  0.0 12540  3136  5  S+   12:03   0:00.00   | |   `-- /usr/local/bin/rsync -lptgoD -v --numeric-ids -r --files-from=/tmp/fpsync/parts/1596708209-95820/part.2 --from0 /usr/src// /var/tmp/src/

and we can see that each master rsync has forked 1 or 2 children.

Best regards,

Ganael.

from fpart.

gamename avatar gamename commented on May 23, 2024

Perfect! Thank you, sir.

from fpart.

Related Issues (20)

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.