Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS CLI slow startup #9011

Open
1 task
gaul opened this issue Oct 25, 2024 · 3 comments
Open
1 task

AWS CLI slow startup #9011

gaul opened this issue Oct 25, 2024 · 3 comments
Labels
feature-request A feature should be added or improved. p2 This is a standard priority issue s3

Comments

@gaul
Copy link

gaul commented Oct 25, 2024

Describe the bug

AWS CLI is three times as slow as s3cmd when tested on a local S3 implementation. s3fs-fuse invokes AWS CLI hundreds of times so this slows down integration tests. I tested on an Intel i7-1250U. I previously reported these symptoms in #6500.

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

$ time s3cmd ls s3://

real    0m0.091s
user    0m0.073s
sys     0m0.016s

Current Behavior

$ time AWS_EC2_METADATA_DISABLED=true aws s3 ls --region us-east-1 --endpoint-url http://127.0.0.1:8081 --profile s3proxy

real    0m0.346s
user    0m0.284s
sys     0m0.055s

Reproduction Steps

See above

Possible Solution

No response

Additional Information/Context

No response

CLI version used

aws-cli/2.17.18 Python/3.13.0 Linux/6.11.4-300.fc41.x86_64 source/x86_64.fedora.41

Environment details (OS name and version, etc.)

Fedora 41

@gaul gaul added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Oct 25, 2024
@tim-finnigan
Copy link
Contributor

Thanks for reaching out. Changing this to a feature request for increasing the speed. Running CLI commands with the --debug parameter will show how long each step of that process is taking. There are several steps involved, such as loading models and processing configurations. Can you provide any more details regarding your specific use case? For more information on optimizing S3 performance you can refer to the S3 User Guide.

@tim-finnigan tim-finnigan added feature-request A feature should be added or improved. s3 response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. p2 This is a standard priority issue and removed bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Oct 29, 2024
@gaul
Copy link
Author

gaul commented Oct 30, 2024

I attached the requested logs: aws-cli.log

My use case is running the CLI in CI hundreds of times per instance: https://github.com/s3fs-fuse/s3fs-fuse/blob/master/test/integration-test-main.sh . A typical operation is s3api head-object or s3 ls -- these are small numbers and sizes of objects.

@github-actions github-actions bot removed the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Oct 30, 2024
@imSanko
Copy link

imSanko commented Nov 1, 2024

Can you assign this task to me so that I can work on the same @gaul.

imSanko added a commit to imSanko/aws-cli that referenced this issue Nov 2, 2024
[FIX] - aws#9011 | Solution for AWS CLI slow startup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved. p2 This is a standard priority issue s3
Projects
None yet
Development

No branches or pull requests

3 participants