Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
scmperf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mercurial
scmperf
Commits
8d9f0d204fb6
Commit
8d9f0d204fb6
authored
6 years ago
by
Pierre-Yves David
Browse files
Options
Downloads
Patches
Plain Diff
rsync: update file in place
This should make rsync nicer to SSD, and it might make it faster after small updates.
parent
fdff9b6ce641
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
benchmarks/basic_commands.py
+2
-2
2 additions, 2 deletions
benchmarks/basic_commands.py
with
2 additions
and
2 deletions
benchmarks/basic_commands.py
+
2
−
2
View file @
8d9f0d20
...
...
@@ -308,7 +308,7 @@
os
.
path
.
basename
(
self
.
clone_path
)))
# XXX: This should be deleted at the end but teardown, like setup, is
# called for each repeat...
self
.
check_output
(
'
rsync
'
,
'
-aH
'
,
'
--delete
'
,
'
{}/
'
.
format
(
self
.
clone_path
),
self
.
check_output
(
'
rsync
'
,
'
--in-place
'
,
'
--no-whole-file
'
,
'
-aH
'
,
'
--delete
'
,
'
{}/
'
.
format
(
self
.
clone_path
),
self
.
tmp_clone_path
)
# Wait for everything to be written on disk to avoid Disk IO wait to
# impact performances metrics
...
...
@@ -342,7 +342,7 @@
os
.
path
.
basename
(
self
.
clone_path
)))
# XXX: This should be deleted at the end but teardown, like setup, is
# called for each repeat...
self
.
check_output
(
'
rsync
'
,
'
-aH
'
,
'
--delete
'
,
'
{}/
'
.
format
(
self
.
clone_path
),
self
.
check_output
(
'
rsync
'
,
'
--in-place
'
,
'
--no-whole-file
'
,
'
-aH
'
,
'
--delete
'
,
'
{}/
'
.
format
(
self
.
clone_path
),
self
.
tmp_clone_path
)
# Wait for everything to be written on disk to avoid Disk IO wait to
# impact performances metrics
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment