Тёмный
No video :(

What is Low Latency C++? (Part 2) - Timur Doumler - CppNow 2023 

CppNow
Подписаться 31 тыс.
Просмотров 11 тыс.
50% 1

Опубликовано:

 

25 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 18   
@johetajava
@johetajava Год назад
Thanks for the talk, it was very interesting!
@BoostCon
@BoostCon Год назад
Glad to hear that this presentation was helpful!
@Roibarkan
@Roibarkan Год назад
11:03 on Intel platforms there are also specific instructions and mechanisms for cache interactions, such as prefetch, demote, and bypassing cache. Theres’s also CAT - “cache allocation technology” that can be used to design what the caches can or cannot hold
@kengounited
@kengounited 11 месяцев назад
Very entertaining talk!
@movax20h
@movax20h 10 месяцев назад
Timur, about double buffering and SeqLock, there is other way. I work in HFT, and we use it for some monitoring of big values. It is called Chen Algorithm, or Tripple buffering. It makes writer wait free, and read wait free. If there is only one reader, it is very simple code. With more readers it gets more complicated (and writer overheads scales with number of readers, but with one reader it is easy), but also doable. For multiple readers, we just take a lock, so only one reader actually reads.
@matias-eduardo
@matias-eduardo 9 месяцев назад
Is the idea that you have one buffer for the writer and then two buffers per reader? So if you have one writer thread and three reader threads, you can use seven buffers for a wait-free sync?
@paulluckner411
@paulluckner411 4 месяца назад
48:00 there is some name shadowing for `new_coeffs` within `update_coeffs()`. I believe all but one on the first line should be something else, e.g. `new_storage`. Otherwise, thank you for this excellent talk!
@retropaganda8442
@retropaganda8442 11 месяцев назад
I would have expected some chapter talking about what operating systems have to offer to allow for deadline-constraint realtime to be met.
@matias-eduardo
@matias-eduardo 9 месяцев назад
For HFT, ideally, there'd be no OS at all. For a space shuttle OS with "hard real time" requirements, it's less about getting the lowest latency and more about making sure the OS is always running predictably at the worst case. So if you have a theoretical main loop that calls "OS_UpdateState(os_state)" to update the entire OS state on each loop, what you want is for that call's timings to be consistent regardless of what data you give it or what resources you create/delete that tick.
@Roibarkan
@Roibarkan Год назад
7:21 Sergey Slotin’s cppcon talk where such techniques are discussed: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-1RIPMQQRBWk.html
@surters
@surters 5 месяцев назад
Undefined behaviour should have been SG13 ...
@Roibarkan
@Roibarkan Год назад
55:53 [slide 132] I believe that the find() method is missing “while (p && p->t != t)” right before “p = p->next;”
@qwertyuiop-cu2ve
@qwertyuiop-cu2ve 7 месяцев назад
Yes, this find() will just get head->next. Further, I think _front suffix can go from pop/push because it is implicit from the thing being a stack. Also push_front is making an extra copy as it takes input by value.
@AhmedTahagg
@AhmedTahagg 11 месяцев назад
Great presentation! At timestamp 48:52, do we not have a race condition in the case of concurrent updaters?
@Roibarkan
@Roibarkan 9 месяцев назад
Yes. I believe this code only supports a single updater thread (the fact that storage isn't atomic/synchronized in any way is an indication). I guess if there are multiple update threads and all of them aren't "hot", they can synchronize amongst themselves using a mutex
@qwertyuiop-cu2ve
@qwertyuiop-cu2ve 7 месяцев назад
Yes, this can only work with a single producer because `storage` is not atomic. I also noticed a missing `)` of the for loop in `update_coeffs()`, which makes it a bit confusing to read.
@TheMoQingbird
@TheMoQingbird Год назад
bad sound again. every cough in the audience, weird clicks and scratches, timur echoing : (
@j777
@j777 11 месяцев назад
Can't have a talk related to quality audio processing without crappy sound.
Далее
SIMD Libraries in C++ - Jeff Garland - CppNow 2023
1:30:07