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

Something went wrong, either the data or the units #20

Open
fenghou1st opened this issue Aug 20, 2022 · 3 comments
Open

Something went wrong, either the data or the units #20

fenghou1st opened this issue Aug 20, 2022 · 3 comments

Comments

@fenghou1st
Copy link

The two above are blank.

https://ibb.co/T07ZTsZ

Just in case the picture gets deleted, the two I'm talking about are "Send 2,000 bytes over commodity network: 22ns " and "Read 1,000,000 bytes sequentially from SSD: 31,000ns ≈ 31μs".

@errandir
Copy link

Also noticed this inconsistency.

@errandir
Copy link

@colin-scott what's wrong with this? This latency is about a ‘commodity’ not a ‘DC’ network.

@windycrypto
Copy link

This because it uses year 2003 as the baseline and assumes NIC bandwidth doubles every 2 years, which means it calculates to 500Tb/s in 2022, which is too far off.

    function getNICTransmissionDelay(payloadBytes) {
        // NIC bandwidth doubles every 2 years
        // [source: http://ampcamp.berkeley.edu/wp-content/uploads/2012/06/Ion-stoica-amp-camp-21012-warehouse-scale-computing-intro-final.pdf]
        // TODO: should really be a step function
        // 1Gb/s = 125MB/s = 125*10^6 B/s in 2003
        // 125*10^6 = a*b^x
        // b = 2^(1/2)
        // -> a = 125*10^6 / 2^(2003.5)
        var a = 125 * Math.pow(10,6) / Math.pow(2,shift(2003) * 0.5);
        var b = Math.pow(2, 1.0/2);
        var bw = a * Math.pow(b, shift(year));
        // B/s * s/ns = B/ns
        var ns = payloadBytes / (bw / Math.pow(10,9));
        return ns;
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants