Skip to content

How fast should checksumming in AWS be? #382

@sampierson

Description

@sampierson

Now that we are using the crc32c module in AWS, we expected to see extremely rapid checksumming ( on the order of 1 GB/s). We're not seeing that. We're still seeing < 100MB/s in Lambda, and much slower than that in Docker. The question is, why?

Using the py-cpuinfo package, it was confirmed that the machines AWS is giving us do have SSE 4.2 CPU extensions.

Hypotheses:

  1. CRC32C is no longer the bottleneck, but one of the other algorithms is now bottlenecking us
  2. checksums are always computed while streaming the file from S3. Perhaps that I/O is the bottleneck?

Experiments to perform:

  1. See how fast a file can be streamed from S3 -> Lambda.
  2. See how fast a file can be streamed from S3 -> Batch.
  3. Locally, checksum files using dcplib.ChecksummingSink, experimenting with inclusion/exclusion of the different checksumming algorithms to benchmark the performance of each algorithm, and their use in combination.
  4. Craft a Lambda that checksums a local (non-streamed) file. Test the performance of the various algos in that environment.
  5. Craft a Docker image that checksums a local (non-streamed) file. Run it in AWS Batch. Test the performance of the various algos in that environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions