Better HN
topnewbestaskshowjobs
Log inSign up

1a1a11a

81 karma · joined Mar 10, 2016 (10y ago) · 70 submissions

Submissions

1.

Open Source Agent Traces with 206B tokens and 1M toolcalls(huggingface.co ↗)

7 points · by 1a1a11a · 1mo ago · discuss

comment 2mo ago · link · parent

It is such as shame: we tell you that we are writing a paper on this exact topic and you created a GitHub and advertises everywhere

3.

A Year in LLM Serving: Workload Evolution, Caching and Load-Balancing(arxiv.org ↗)

4 points · by 1a1a11a · 3mo ago · discuss

4.

Learning Augmented Heuristics(systems.seas.harvard.edu ↗)

2 points · by 1a1a11a · 3mo ago · discuss

5.

Burstiness is all you need for LLM serving(systems.seas.harvard.edu ↗)

1 points · by 1a1a11a · 3mo ago · discuss

comment 2y ago · link · parent

"Tectonic (Pan et al., 2021), Meta’s general-purpose distributed file system, is used to build a storage fabric (Battey and Gupta, 2024) for Llama 3 pre-training. It offers 240 PB of storage out of 7,500 servers equipped with SSDs, and supports a sustainable throughput of 2 TB/s and a peak throughput of 7 TB/s"

I would expect at least 10s if not 100s TB/s from a cluster of 7500 servers with SSDs, what is the bottleneck?

7.

Why is the storage cluster used to train Llama 3 so slow?(scontent.fagc1-2.fna.fbcdn.net ↗)

2 points · by 1a1a11a · 2y ago · 1 comment

comment 2y ago · link · parent

I had a try on a few traces; the random two-choice algorithm is only better when there is a big scan, and the LRU miss ratio curve shows a cliff. In all other cases, it is worse than LRU eviction.

Implementation can be found https://github.com/1a1a11a/libCacheSim/blob/develop/libCache...

comment 2y ago · link · parent

Got it. Make sense, I like the reason why you want to make it circular. :)

comment 2y ago · link · parent

it looks like the ring is implemented using a linked list?

comment 2y ago · link · parent

Great point! We tried the oracle (Belady MIN) and found that the oracle often does not admit new objects (<20% chance admitting new objects) in most traces. That's why we need to evict new objects quickly

comment 2y ago · link · parent

This is an awesome reply that I would like to see here. Do you mind sharing more details on what type of cache or use case needs the performance you mentioned? Database bufferpool?

> a lot of these practical details have never been written down a far as I can tell, it is passed along as lore and beer convos

I wish the valuable knowledge could be written down and shared.

Yup, I am on the same page as you, after seeing the many state-of-the-art having similar miss ratios, I am inclined to think we are close to the maximum possible hit ratio bounded by the limited information from the request history (information theory).

comment 2y ago · link · parent

I love your comments!

comment 2y ago · link · parent

This is fantastic work!

comment 2y ago · link · parent

It was made with keynote with the magic move between slides. Maybe @yazhuo can share the file.

comment 2y ago · link · parent

I agree with you; any non-random algorithm has the problem

comment 2y ago · link · parent

Yes if you add a ghost queue. :)

comment 2y ago · link · parent

I totally agree with you, this is not designed for hardware... and as others mentioned RRIP might be better for set-associative caches

comment 2y ago · link · parent

Do you have an example of a non-random algorithm that does not have adversarial workloads?

comment 2y ago · link · parent

You are probably thinking of block I/O or CPU cache workloads where scans cause the miss ratio to increase. This algorithm targets web workloads where scans are not common, and the miss ratio does not change abruptly.

Yes, SIEVE does not adapt to miss ratio, but it adapts to the inherent popularity in the workloads. You can see the evidence in the results.

comment 2y ago · link · parent

Thank you! Yes, this addresses the scan-resistant issue, but I am not sure how different it would be on workloads without scan. But the workloads we used in evaluations have very few scans, and the power of SIEVE comes from quickly evicting newer objects so I guess "random two" would not improve. But I do not have a number right now, I am happy to add this to the comparison list.

comment 2y ago · link · parent

Yup, SIEVE is good enough for web workloads :)

comment 2y ago · link · parent

Good points.

The first point is probably true for most research in computer systems. Different systems have different constraints that make a simple design very complex or not possible.

Can you elaborate on the second point more? It feels to me that S3-FIFO is optimized for latency, throughput, and scalability than existing algorithms (e.g., with multiple LRU queues).

comment 2y ago · link · parent

Share a bit more information on how we got here. SIEVE is the more general form of the FIFO-Merge algorithm in Segcache. When I designed the FIFO-merge algorithm, I thought it was worse than LRU, but it turned out to be better.

At first, I thought FIFO-Merge keeping objects in the insertion order (FIFO) helps the eviction because I mostly worked with Twitter data in which popularity decay is common.

But later when I evaluated more traces (including block I/O workloads), it turned out that quickly evicting new objects (quick demotion) is the source of a low miss ratio. That's why we wrote these papers.

Interested readers are welcome to read more of related work 1. FIFO can be better than LRU, the power of lazy promotion and quick demotion https://dl.acm.org/doi/pdf/10.1145/3593856.3595887

2. FIFO queues are all you need for cache eviction https://dl.acm.org/doi/10.1145/3600006.3613147

comment 2y ago · link · parent

> How it should work is that new items should be added at a fixed distance from the Hand pointer.

This would help with the implementation with a circular buffer. But for now, let's decouple the algorithm from the implementation.

> we can make Insert and Hand be the same slot

This is just CLOCK algorithm. It is easy to implement with a circular buffer. But the change we made deliberately improves the miss ratio significantly.

comment 2y ago · link · parent

Sorry, I may miss something. How would "random two choices" differ from LRU?

comment 2y ago · link · parent

In case someone is interested, there is an independent review and implementation at https://github.com/scalalang2/golang-fifo

comment 2y ago · link · parent

And Segcache is available in Rust as part of Pelikan project https://github.com/pelikan-io/pelikan

comment 2y ago · link · parent

Disclaimer: this is the co-author.

Sorry for the hyped language. If my guess is correct, the blog was "polished" by ChatGPT, and the intention was to "polish" the English. The paper has more content and should be read more seriously.

We will fix the animation error and update the writing shortly. Thank you for the feedback!

Regarding some of the complaints on SIEVE performance. Here are some more results that I ran for other purposes. https://observablehq.com/@1a1a11a/sieve-miss-ratio-plots

I haven't had time to add other algorithms to the plot, but they are often similar to or worse than TinyLFU (I did not pick TinyLFU to compare deliberately; I happen to have the figures on hand). While the results do not include byte miss ratio, which is important in some use cases, they are better than the results already shown.

We acknowledge that

* SIEVE may not work well on some block I/O workloads (this has been the statement in our writing from the beginning). However, SIEVE works well on large multi-tenanted block I/O workloads (see the Tencent and Alibaba figure in the link). For web workloads, SIEVE shows consistently good results.

* As the author, when I look at this algorithm. My own feeling is that SIEVE may not be robust because it keeps evicting new objects when the hand moves to the head, effectively behaving as MRU. However, our large evaluations showed that modern workloads have certain properties that enable SIEVE to achieve a low miss ratio. We are still investigating this property and how to model it. If someone is interested, feel free to shoot me an email.

* implementing SIEVE with a log-structured design or circular buffer is not trivial, but we had a design called Segcache (https://segcache.com), which runs a constrained version of SIEVE. In simple libraries, linked list implementation should be easy, and one can check the examples on the website.

123