Thursday 15 September 2011

python - Is there any benefit to using python2.7 multiprocessing to copy files -


I would like to know that there is no benefit for using Python 2.7's multiprocessing module.

Does DiskIO always be forced into serial? Is this change if you are copying from a hard disk to a different hard disk? What is this change based on operating system (windows / linux)?

Perhaps it is possible to read in parallel, but is not possible to write?

All of this assume that there are separate files that move to different places that are moved / copied to the system cache in the I / O RAM before hitting the hard drive. Fro writes, you can fasten the copies as long as you do not leave the RAM and then slows down and it is faster if many of the same data is read if you copy the same file to several places , Then there is an advantage to making copies of that file before proceeding.

I / O is a hard drive (or a RAID or volume manager) with a hard drive (joining the group of hard drives) is mostly serial, except that the operating system and drive to search the drive again You can re-order pass / track before reading / writing. There are some advantages to doing parallel copies because there are more opportunities to reorder, but when you are actually writing the system RAM cache shortly after you write your application, it can be difficult to measure profit.

A big gain is increasing among the drives, they mostly go parallel, although there are some disputes for buses (e.g., PCI, SATA) that drives the drive.

If you have many files to copy, multiprocessing is a proper way, but you can find that the sub-access is fast for the original per utilities.


No comments:

Post a Comment