[SERVER-25534] Use "cp --reflink=auto" (or similar) to copy files in vendered-in scons Created: 10/Aug/16 Updated: 06/Dec/22 Resolved: 30/Jul/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Build |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Mathias Stearn | Assignee: | [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive) |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Assigned Teams: |
Server Development Platform
|
||||||||
| Participants: | |||||||||
| Description |
|
This will do zero-copy "copies" on file systems that support that, such as btrfs. |
| Comments |
| Comment by Mathias Stearn [ 19/Aug/16 ] |
|
I'm pretty sure that avoiding copying many gigabytes (on disk!) will be a perf win even if it has to shell out to cp. If we wanted to avoid shelling out, it should be simple enough to just directly use the FICLONE ioctl. |
| Comment by Justin Cohler [ 18/Aug/16 ] |
|
It's fairly clear that this is not achievable through the python api's and that shelling out to the unix cp command isn't likely to be a perf win. |