Unofficial Hacker News companion — get notified on comment replies, and more.

Uncovering Hidden TCP Throttling in the Linux Kernel (opens external site)

401 points by josefinaspidlen 1 day ago | www.cdn77.com | 48 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (8)

  1. depends, if you have servers that buffer large blobs in tempfiles you don't really want those flushed to storage unless there's a real memory shortage.
    Replies (2)
    1. No, on a multi-tenant machine I really, really want that tempfile thing to be throttled on dirty page creation. If that process thinks it can run in constant space without externalizing the page cache then it knows what to do: write its temporary objects to anonymous memory, not files.
      Replies (1)
      1. And then you need to worry about swapping.
    2. But is that a default usecase?
      Replies (1)
      1. well YES, even on desktop

        Many, many apps do "download to tmpfile then move to final location when finished", from browsers thru Steam to package managers.

        Replies (1)
        1. That's a metadata action and has nothing to do with rewriting the blocks of the file.
          Replies (1)
          1. that would be true if /tmp and the destination happen to be on the same filesystem, but I don't think that's a safe assumption. Especially if you are using tmpfs which stores /tmp in ram or swap.
            Replies (1)
            1. I'm not sure that changes anything about the analysis. (1) It's not like pages in tmpfs are dirty to be flushed anywhere. (2) Web browsers typically download to temporary files in ~/Downloads before renaming in place anyway, to avoid that exact cross-filesystem mv problem.