borg-benchmark-crud.1 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. .\" Man page generated from reStructuredText.
  2. .
  3. .TH BORG-BENCHMARK-CRUD 1 "2019-04-22" "" "borg backup tool"
  4. .SH NAME
  5. borg-benchmark-crud \- Benchmark Create, Read, Update, Delete for archives.
  6. .
  7. .nr rst2man-indent-level 0
  8. .
  9. .de1 rstReportMargin
  10. \\$1 \\n[an-margin]
  11. level \\n[rst2man-indent-level]
  12. level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
  13. -
  14. \\n[rst2man-indent0]
  15. \\n[rst2man-indent1]
  16. \\n[rst2man-indent2]
  17. ..
  18. .de1 INDENT
  19. .\" .rstReportMargin pre:
  20. . RS \\$1
  21. . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
  22. . nr rst2man-indent-level +1
  23. .\" .rstReportMargin post:
  24. ..
  25. .de UNINDENT
  26. . RE
  27. .\" indent \\n[an-margin]
  28. .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
  29. .nr rst2man-indent-level -1
  30. .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
  31. .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
  32. ..
  33. .SH SYNOPSIS
  34. .sp
  35. borg [common options] benchmark crud [options] REPO PATH
  36. .SH DESCRIPTION
  37. .sp
  38. This command benchmarks borg CRUD (create, read, update, delete) operations.
  39. .sp
  40. It creates input data below the given PATH and backups this data into the given REPO.
  41. The REPO must already exist (it could be a fresh empty repo or an existing repo, the
  42. command will create / read / update / delete some archives named borg\-benchmark\-crud* there.
  43. .sp
  44. Make sure you have free space there, you\(aqll need about 1GB each (+ overhead).
  45. .sp
  46. If your repository is encrypted and borg needs a passphrase to unlock the key, use:
  47. .sp
  48. BORG_PASSPHRASE=mysecret borg benchmark crud REPO PATH
  49. .sp
  50. Measurements are done with different input file sizes and counts.
  51. The file contents are very artificial (either all zero or all random),
  52. thus the measurement results do not necessarily reflect performance with real data.
  53. Also, due to the kind of content used, no compression is used in these benchmarks.
  54. .INDENT 0.0
  55. .TP
  56. .B C\- == borg create (1st archive creation, no compression, do not use files cache)
  57. C\-Z\- == all\-zero files. full dedup, this is primarily measuring reader/chunker/hasher.
  58. C\-R\- == random files. no dedup, measuring throughput through all processing stages.
  59. .TP
  60. .B R\- == borg extract (extract archive, dry\-run, do everything, but do not write files to disk)
  61. R\-Z\- == all zero files. Measuring heavily duplicated files.
  62. R\-R\- == random files. No duplication here, measuring throughput through all processing
  63. stages, except writing to disk.
  64. .TP
  65. .B U\- == borg create (2nd archive creation of unchanged input files, measure files cache speed)
  66. The throughput value is kind of virtual here, it does not actually read the file.
  67. U\-Z\- == needs to check the 2 all\-zero chunks\(aq existence in the repo.
  68. U\-R\- == needs to check existence of a lot of different chunks in the repo.
  69. .TP
  70. .B D\- == borg delete archive (delete last remaining archive, measure deletion + compaction)
  71. D\-Z\- == few chunks to delete / few segments to compact/remove.
  72. D\-R\- == many chunks to delete / many segments to compact/remove.
  73. .UNINDENT
  74. .sp
  75. Please note that there might be quite some variance in these measurements.
  76. Try multiple measurements and having a otherwise idle machine (and network, if you use it).
  77. .SH OPTIONS
  78. .sp
  79. See \fIborg\-common(1)\fP for common options of Borg commands.
  80. .SS arguments
  81. .INDENT 0.0
  82. .TP
  83. .B REPO
  84. repo to use for benchmark (must exist)
  85. .TP
  86. .B PATH
  87. path were to create benchmark input data
  88. .UNINDENT
  89. .SH SEE ALSO
  90. .sp
  91. \fIborg\-common(1)\fP
  92. .SH AUTHOR
  93. The Borg Collective
  94. .\" Generated by docutils manpage writer.
  95. .