Find the answer to your Linux question:
Results 1 to 5 of 5
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Increase speed of a particular job


    Hi,

    If I am copying hundreds of files from one folder to another using the terminal, is there any way I can add an argument to use n number of CPUs for this particular job?

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    4,031
    What makes you think that the job saturates a cpu?

    First gather and evaluate the metric graphs of iowait, load, iops, etc
    Then you can know the current bottleneck and evaluate options.
    You must always face the curtain with a bow.

  3. #3
    Quote Originally Posted by Irithori View Post
    What makes you think that the job saturates a cpu?

    First gather and evaluate the metric graphs of iowait, load, iops, etc
    Then you can know the current bottleneck and evaluate options.
    It was just a curiosity. Can one perform a simple

    Code:
    cp * /my_data_here /my_data_there
    over hundreds/thousands of files and speed up the process by increasing the number of CPUs used to run this task?

  4. $spacer_open
    $spacer_close
  5. #4
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    4,031
    This command is most likely io bound, not cpu bound.
    So: no.
    You must always face the curtain with a bow.

  6. #5
    Linux Guru
    Join Date
    Dec 2013
    Posts
    2,747
    -->
    Quote Originally Posted by green2016 View Post
    Code:
    cp * /my_data_here /my_data_there
    is this the exact command that is giving you trouble?
    what do you think it does?
    i'm not sure it's good or even valid syntax.
    shouldn't you be using the -r option instead?
    did you read
    Code:
    man cp
    ???
    this might have an impact on performance.
    anyhow, the bottleneck is the underlying storage hardware's i/o capabilities, NOT the cpu.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •