You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the CLI to upload a file to an bucket with object locking/versioning enabled is slower than a bucket with these settings disabled. I'm only able to reproduce this with the CLI, using a SDK does not have this issue.
Expected behavior
Copying a file with mc cp to an object locked/versioned bucket should be just as fast as a bucket without these settings enabled.
Actual behavior
Speeds are ~3x slower copying a file to a object locked/versioned bucket.
Steps to reproduce the behavior
Create two buckets - one versioned and object locked, one not.
Generate a large file dd if=/dev/zero of=./random.img bs=4k iflag=fullblock,count_bytes count=10G
# mc --version
mc version RELEASE.2024-11-05T11-29-45Z (commit-id=6ac18619cf881074fe6edcc79ab62c9c85da60b9)
Runtime: go1.23.3 linux/amd64
Copyright (c) 2015-2024 MinIO, Inc.
License GNU AGPLv3 <https://www.gnu.org/licenses/agpl-3.0.html>
System information
Machine running the client is a VM with 4 cores and 8GB of memory.
The text was updated successfully, but these errors were encountered:
Such marginal changes are expected as the object-locked bucket uses slightly more IOPs; avoid micro benchmarking - real-world aberrations of 1sec differences will be non-existent.
Such marginal changes are expected as the object-locked bucket uses slightly more IOPs; avoid micro benchmarking - real-world aberrations of 1sec differences will be non-existent.
As in this is a silly way to benchmark.
The CLI has way more than a 1 second difference, referencing my original post:
Using the CLI to upload a file to an bucket with object locking/versioning enabled is slower than a bucket with these settings disabled. I'm only able to reproduce this with the CLI, using a SDK does not have this issue.
Expected behavior
Copying a file with
mc cp
to an object locked/versioned bucket should be just as fast as a bucket without these settings enabled.Actual behavior
Speeds are ~3x slower copying a file to a object locked/versioned bucket.
Steps to reproduce the behavior
Create two buckets - one versioned and object locked, one not.
Generate a large file
dd if=/dev/zero of=./random.img bs=4k iflag=fullblock,count_bytes count=10G
Copy files with CLI
As you can see the upload speed to
test1
is signficantly slower than the bucket without object locking/versioning enabled (test2
).As I noted above, I cannot reproduce this using the Go SDK. The upload speed and time are identical for the two buckets.
Go code:
mc --version
System information
Machine running the client is a VM with 4 cores and 8GB of memory.
The text was updated successfully, but these errors were encountered: