The simple version
A coat check: you hand over a coat, get a ticket (the key), and later swap the ticket back for the whole coat. You can't ask them to sew a new button on while it's on the rail; you take the coat back and hand in a new one.
The object model
Objects live in buckets under keys. You PUT a whole object, GET all or a byte range of it, LIST keys by prefix, and DELETE. There's no in-place partial overwrite: changing an object means writing a new version. "Directories" are just key prefixes (the CLI shows them as PRE).
Amazon S3 provides strong read-after-write consistency for PUTs and DELETEs. S3-compatible systems vary, so check yours before relying on it.
Multipart upload
| Limit (Amazon S3) | Value |
|---|---|
| Single PUT, max object size | 5 GiB |
| Part size | 5 MiB to 5 GiB (last part can be smaller) |
| Parts per upload | 10,000 |
| Max object size | 5 TiB |
The AWS CLI defaults are an 8 MB multipart threshold, 8 MB parts and 10 concurrent requests. At ~180 MB/s per stream (the simulator's modelled value), that's ~1.8 GB/s; 64 concurrent requests → ~11.5 GB/s, if the NIC and endpoint allow.
Tools
$ aws s3 ls s3://bucket/prefix/ --endpoint-url https://objects.example
$ aws configure set default.s3.max_concurrent_requests 64
$ s5cmd cp 's3://bucket/shards/*' /lustre/datasets/ # fast parallel S3 client
$ warp get --host objects.example:9000 ... # S3 benchmark (MinIO warp)Tools
aws s3 ls / cp / syncAWS CLI; add --endpoint-url for S3-compatible storage.
aws configure set default.s3.<key>multipart_threshold, multipart_chunksize, max_concurrent_requests.
s5cmdHigh-throughput parallel S3 client.
warpS3 benchmark tool from MinIO.
Quiz
Lab
Lab 6.2 · Single-part checkpoint uploads
An adapter checkpoint, /scratch/adapter-ckpt.pt (4 GiB), is pushed to S3 after every run. The upload takes about 24 seconds. A colleague changed the AWS CLI config a while ago and nobody remembers what.
Try it now in the simulator (opens with the command ready; press Enter):
$ aws s3 ls s3://datasets/$ aws configure get default.s3.multipart_threshold$ aws s3 cp /scratch/ckpt-step-12000.pt s3://ckpt/