Chocolate Filling (keep it in fridge so it is easy to chop)
Unsalted butter, softened: 45 g
White chocolate – 100g
Milk chocolate – 100g
Dark chocolate – 100g
Brushing & Topping:
Milk + softened butter – for brushing before baking
Chopped chocolate – reserve some from the filling for topping
Process:
Mix milk, yeast, sugar.
Add eggs, pinch salt, melted butter and mix
Add flour shifted and mix
Then manually knead until smooth
Rest for 1h
Chop the chocolate
Dough should be double, diflate and roll it in a surface with flour. Make a big rectangle
Brush melted butter apart from one side so you can seal it when rolling
Trim edges if needed
Spread chocolate evenly across the whole surface. Press with the rolling pin
Roll the dough tightly up. Be careful
Pinch the edges and the seal.
Cut the log in half, lengthwise.
Braid the two halves.
Move the log to the loaf pan (with baking paper)
Rest for 20 minutes
Brush it with the butter-milk mix.
Bake at 180°C for 30–35 minutes, or until beautifully golden brown. Dont use the grill
Brush it again with butter-milk so it shines.
This is my result:
It doesnt look as nice as in the video but it was tasty. And it is not actually difficult. I made mistake as using the grill and I think I should have tighted the roll better and use the rolling pin to press the choco chips. I was surprised how easy was to knead it.
This book is about the value of rethinking (mental flexibility). This is a path to learning more and living with fewer regrets. This can be hard because it means abandom parts of oneself. The process is based always in the scientific method, formulating a theory and trying to find counterexamples.
The process of learning is not to affirm our beliefs, it is to evolve them. And being (too) smart can be counterproducent because narrows our mind to what we dont know. I liked the example from the iphone, when Steve jobs was adamant of the product because would kill the ipod money making, or stubbornness from Blackberry to evolve. So in this case, you need a balance between confidence and competence.
These are the mental models that need to rethink
Cult leader: I am always right!
Politician: We are right, they are wrong!
Preacher: I am right
Prosecutor: You are wrong.
I like the references to the “impostor syndrome”. It always keeps you on your toes and push you to grow because you never know it all.
Who you are should be about your values and not your believes. That way we can be flexible. For example, when making a forecast, make a list of conditions that should hold true and other list of conditions that should change it. This makes you honest and detached from an opinion/believe.
This can produces discussions. But need to see it in the positive way, intellectual chemistry is enjoying disagreements. We learn more from people who challenge our thought process than those who affirm it (focus is in your thought process and not in you as a persona, that is a totally different matter). These conversation are focused in the “how” instead of “why”. Giving too many facts about are reasoning make the other part defensive (coming too strong). As well, we need to be open to change ours, find common ground. This is from the debate between IBM computer and Harish. As well you dont change people’s opinions, they do themselves, and based on “You can lead a horse to water, but you can’t make it drink.” So if the other person says there is nothing that would change its mind, then…. So it is around asking questions, be invested, like a dance and not a war (it is called motivational interviewing: examples like vaccines ) To be honest, I struggle to ask questions to people, like I am not curious (or it is a way to hide… but when people ask me, I talk….)
There is a part about applying to a jobs and using an example where the person didnt hide its shortcomings, just ack-ed in the paper and then went with the reason why it should be hired. I need to apply that to myself.
Some topics are difficult. Just acknowledge the complexity, show the range of perspectives: gun control, inmigration
Regarding learning, the best way is to teach it. And the active learning (more than the lecture type). Repeating is good = “jack of rough drafts, master of crafts”. So education should be more than gathering information, but develop the habits to revise our drafts and keep learning. I think this matches the IT culture of continues intergration/delivery, error soon and often, etc This creates the culture of growth and rethinking instead of sticking to “tradition/best practices” (examples from the NASA accidents) This takes too humility (improve better than proving oneself)
Another good one: Sunk cost (difficult to turn around when you are deep in something, and you can’t stop carry on with it) / Grit. Gritty mountaineers are more likely to die on expeditions. “There is a fine line between heroic persistence and foolish stubbornness. Sometimes the best kind of grit is gritting your teeth and turning around” I think the whole book goes around to when to do exactly that.
In general, explore (action) and then dig. And save time for a couple of times a year to do check-ups and rethink what you are doing.
The book finishes with the “take action” speech from Roosevelt in 1932. Accepts uncertainty, ack errors, learns from others and rethink plans
The book gives a different view from other sources, where they tell you to get grit, no plan B, etc etc. This proves there is no solution for all. So I take it as another tool.
This was another summer reading. Quite interesting because the author takes ageing as an illness and not as the last part of life.
I have come to realise that yes, we live longer, but not healthier… and I think there is an interest for that so you are hook to some medicines (always business). Personally, I dont see the point to be old and not being able to do anything for myself. Even worse, when your brain starts to fail… you dont even notice.
The first part is mainly the research and why the author says ageing is an illness. If shows how organism have evolved based on reproduction and repair. He explains it as “The Information theory of ageing” The DNA is digital but then the building process are analogical and that is where the information leaks and the problems starts. I can’t really explain all the biological details but it is an interesting theory.
How to live longer? He recommends many things, from fasting, eating less meat, exercise, cold/hot endeavours, avoid toxic materials and obviously there are pills you can take. To be honest all the recommendations look nothing special, I think they are sane, and is something good because everybody can do it.
The last part is the ethical / philosophical part. This is the hardest because that changes may things in our world. There will be more people (we need to produce more food! consumption – capitalism), people will work longer so less opportunities for young generations, politically we will be in a much more conservative (politically – super-rich want to stay…) world, how religion will handle people leave longer?, how people will handle to live so long?, will people want to die? It is interesting.
The author wants goverments to fund research in ageing because that can have more benefits and will solve problems like cancer or brain illnesses.
It is a bit psychological / philosophical about how to trade, live or just making decisions. Life is always changing and one must adapt and always keep learning/reading.
The main thema is the multidisciplinary so one can different mental models to discover a pattern. He gives a lot of stick about how badly is psychology taught in schools and universities (although he has only read a couple of books!) It mention the importance to have check-list (like pilots, surgeons, etc) and practice your mental models!
Their investment has been always long-term and based on compound-interest and rarely in Tech companies. I think their strategy is very different from Investment banks, Hedge Funds, etc. But I wonder if that model is going to carry on working in a market where those long-term investments are going to be still valid.
Anyway, I will not be rich or good investor (not my goal) but interesting the focus in keep learning/reading and having different models in your head to try to understand the world.
I have added several links about MRC before, but wanted to read the OpenAI paper for myself.
0 Abstract tail latency dominates performance of synchrounous pretraining jobs MRC (Multipath Reliable Connection) = new RDMA-based transport and a bit of UET, packet spraying, adaptive LB based on ECN, out-of-order memory placement, select ack and packet trimming to mitigate incast. RDMA: only support write and write-with-immediate multi-plane clos -> >100k in 2-tier, high switch radix static source routing SRv6, bypass failures
1 Intro solution needs: LB, incast, handle link and fabric failures gracefully disable dynamic routing!, only static paths with SRv6
2 Multi-plane topology co-design T0=TOR, 64x800G. Use 8x100G instead -> 8 planes of T0. TO connects to 256 NIC and 256 T1 (spines) -> total 131072 GPUs in 2-tier many advantages: latency, more nodes reachable in 1 hope, less cost and power (2-tier only), less impact link failure problems: survice link and nic port failures. load all network planes and LB all many paths!
2.1 MRC overview extends RoCEv2 + UET features (multi-path)
each packet has the RDMA virt address and remote key -> receiving nic can write at arrival, no matter order.
each packet has an entropy value EV (32 bits) Sender rotates the EV for each packet -> LB (packet spraying)
PFC disabled (it doesnt work with so many possible paths)
fast selective retransmissin = Selective-ACK.
under incast -> packet trimming = packet is not dropped, reaches destination, destination triggers NACk = retranmission Each EV corresponds to a specific path on a specific network plane
For each EV, MRC keeps a few bits of state about path health. ECN used but disabled in the last hop to the receiver -> ECN acts as LB signaling (different
MRC senders do not coordinate when choosing their EV sets)
When packet lost, EV path is stopped then MRC sends background probes to verify, if enough probes succedd -> EV resurrected
2.2 Static SR difficult to maintain large ECMP sets. MRC avoids failed paths, then dynamic routing re-routes -> changes ECMP -> disturb LB => disable dynamic routing How to map EVs to network paths? In the MRC nic, at QP startup a set of EVs are chosen, bits in each EV directly embed the path choice available at each hop in the network. SRv6: use microsegment ID (uSID), where destination ipv6 is 32b prefix followed by a seq of 16b uSIDs each corresponding to a specific switch along the path. Each swith left-shifts the uSID part of address. Switch has a static forwarding table, configured when installed, rarely changed. uN forwarding is done at line rate. MRC packets are ipv6 in ipv6 encapsulated. outer dst = srv6 path, inner dst = dst nic
2.3 Mapping EVs to SRv6 address with srv6, ev is not hashed by switches, but sill needs to be carried in data packets so received can echo it. SRv6 address can’t be echoed because it is erasedd by the shiffiting process during forwarding algo mapping between EV and its SRv6 address. *** COMPLEX need to review last part
2.4 Choosing working paths On QP startup, MRC must select a set of EVs, each mapping to a unique path on a specific plane. EVs are equally split across the planes, then randomly selects a subset of path within each plane. No necessary to use Clustermapper to set denylists for failed T0-T1 links. *We have to rum-up large training jobs slowly to avoid destabilizing the power grid. On the reverse path:
Reverse path: many QPs are unidirectiona at any instant. Keep small reserve EV set for control packets, with at least one EV per plane. Each RTT that the QP is acive inbound but generates no outbound traffic, the receiver send an EV prbe packet using a randomly chosen EV. If the probe is acked the reverse EV for that plane is set to the probe’s EV. If data traffic is sent, the reverse EV is updated from data SACKs instead of needing EV probes.
3 Operations With MRC, Most network failures dont require quick reactions from netops. Link-failures and flapping links between T0-T1 can be ignored!!! MRC spreads traffic across enough paths that when a link used by a QP flaps, only a very small number of packets per QP are lost, and the corresponding EV is removed. The missing pacet is selectvily retransm on a different path. MRC maps paths out when they drop, and only brings back when enough probes succedd over time -> less coordination with netops Can reboot T1 switch easily. NIC-T0 and T0 switches are more problematic -> After link drop, remapping all the EVs fro the many QPs in use is not instant. MRC uses a port state bitmap in SACK packets to notify remote QP endpoints that the port is down, so they also remap their EVs to avoid the failed plane. This takes a few seconds. CLustermapper agent running on all cluster nodes together probe every link in the network every ms!! This check NIC-T0 links and T0 switches. Agent send probes source-routed to the T0 and back to the same agent. Each agent also probes a subset of T1 switches, so all T0-T1 links are probed. ICMP probes are handled by CP, so low frequency. With SRv6, the switch treats a probe like another data traffic, by DP -> higher frequency.
4 Inter-plane Loading Keep all planes evenly loaded <- when MRC maps an EV out of its active set, it replaces it with one from the same plane -> aovid false incast at destination
5 Experiments flows: T0-local or cross-T1
5.1 Training Results
Link flaps almost no impact -> low priority at operations level
NIC-TO links does affect performance, but most events are transient and job recover full speed quickl. optical transceiver glitch in T0. NIC and Switch dont match the time when the port was down. Still job didnt crash and fully recover. This is rarer that individual link flaps.
T1 switch reboot: QP packet lost only at T1 failure. reboot took 2 minutes and no impact during reboot as all QP wer mapped out of the bad path. throughput largely unaffected.
NIC transceiver are SPOF, they flap, but rarely. A different optical design might avoid this issue.
5.2 Testbed results (MRC in different NICs: mellanox cx-8, amd pollara, broadcom thor ultra)
5.2.1 p2p communicatio performance – cluster B cx-8. t0-local and cross-t1 = aprox 770Gbps (96% theorical peak bw) t0-local 5.09 us and cross-t1 6.54 us (extra switch hop). High latency effect only short-message, negligible for large
5.2.2 MRC response to link down and flap events – Cluster B less 1 sec interruptions during failure detection . MRC detecs link down event and rebalances EV across remaining planes and updates link0state btmap in SACK packets to notify remote endpoint. T0-T1 failures have a substantially smaller impact than nic-t0 failures, because MRC sprays packets from each QP across a large number of paths.
5.2.3 MRC behavior with T0/T1 switch failured – cluster B T0 switch failure -> bw drops 100Gps. MRC failure handling is driven by end2end path availability rather than specific location or type of underlying fabric fault -> swithc-level failures manifest a predictable reduction of usable path diversity, preserve app progress and maintein stable throughpput T1 switch failure -> no degradation is observer. QP are sprayed across a large number or paths and sufficient alternative EVs remain available to sustain lost of capacity.
5.2.4 Robustness to path-level packet loss Introducing errors in a EV, caused it to get inactivated and activate another “spare” EV
5.2.5 Load balancing accross EVs Upon detection of congestion via ECN, MRC triggers traffic distribution to rebalance load across the available EVs. MRC can effectively rebalance traffic across EVs in repspomse to dynamic load changes.
5.2.6 NCCL collective execution at scale sendrecv benchmark: 92GBps in 42k GPUs
5.2.7 Comparison with RoCE MRC 1QP sparying across 256 paths achieves better performanc that RoCE with 16 QPs At 1% loss, RoCE is not usable. The same for MRC because the induced lost affected all planes. For all message sizes MRC outperforms RoCE but the differnce is greater in the regime that is bw-bound (larger message size)
At smaller message size, the collective is more latency-bound At bigger message size, the collective is more bandwidth-bound
5.2.8 Collateral Damange (Incast)
Configuring DCQCN properlyis very hard because it is traffic pattern specific to the point some hyperscalers have disabled it.
6 Related Work Load balancing effectiveness is defined by distribution granularity: per flow, per subflow and per packet. RocE2 uses per-flow ECMP. Per-packet load balancing (or packet spraying) has been proposed for CLOS networks to reduce amounf of state per (virtual) path -> use ECN or similar
Multipath TCP: must keep state per subflow. Used by Google Falcon to replace RoCE2 in Nic
MRC changes RoCE2 to enable packet-level load balancing, selective retrans and improve reliability in multi-plae networks: its target deployment is best-effort (lossuy) networks that support packet trimming.
MRC is similar to UltraEthernetTransport (to replace RoCE2)
7 Conclusion MRC is designed to LB a multi-plane network by spraying each QP across all planes and many paths in each plane, performing fine-grain active LB and routing around failures. Disabled dynamic routing, use SRv6 source routing with static routes in the switch
This is blog about MRC from a competitor. Really to see how other side sees it and shows the limitations and differences
I am not keen of hypes but I could find some truths in this book.
One of the first things is to question the Brules = Bullshit rules. Those are the rules passed on us by society, family, religion, etc. I tell myself that I need that certification, I need to save, I need to know X, then Y, Z. And I know some are excuses…
I struggle with the concept of working hard and enjoy life. The ideal is to enjoy your job, but I dont see myself enjoying my job working 12h a day. I tell myself I would like to work in a bakery for 1 year, like a sabatical. No balls yet to do that. I am waiting for the moment…
I find it useful, because I can see the positive things of my life and where to improve. And most of the book is around those 12 points.
Related to the b-rules, we have models of reality embedded deep within that we are not really aware of (what you don’t know you believe!) Example: you are enough and you have nothing to prove. This means you need to rewrite your models of reality (ie: you are attractive, you are good enough, etc). Two questions then:
Is my model of reality absolute or relative truth?
Does this really mean what I think it means?
Regarding setting a vision:
We confuse b-rules with goals: having a certain job, appearance, etc is b-rule.
We are notoriously bad at predicting just what we can do in a given time frame: a) we tend to overestimate what we can do in short term (1/2-1y) and underestimate what we can do in long-term (3y)
Goals are part of a vision: but some goals are part of b-rules so how to identify:
means goals (not good):
means goals usually have a “so” in the them: Get this job so I will be happy
means goals are often about meeting or conforming to b-rules: have a degree
end goals (good)
end goals are about following your heart
end goals are often feelings
Something I do every night is to gave grace/gratitude. I can’t really explain but it calms you down, it put things in perspective, and you sleep better. I trully believe that I am the luckiest person, whatever happens, period.
The next thing, it is forgiveness. I found it difficult, but makes sense, it is a way to liberate yourself. I need to do that with the gratitude.
Last thing, is “to give”: To be happy, make others happy. Who can you help if you are unhappy?
Be unfuckwithable: Extraordinary minds do not need to seek validation from outside opinion or through the attainment of goals. Instead, they are truly at peace with themselves and the world around them. They live fearlessly, immune to criticism or praise and fueled by their own inner happiness and self-love.
exercises:
The person in the mirror (self-love)
Self-gratitude (for appreciating yourself)
Become present (to remove sudden fear and anxiety)
The authors meditation six pack, daily, no max of 15 minutes.
Compassion
Gratitude
Forgiveness
Future dreams
Perfect day
The Blessing
In general, I can find things that resonate and I need to put in practice. I should re-read again at some point
SR-IOV (Single Root I/O Virtualization) is an extension to the PCI Express specification that lets a single physical device, like a network adapter, present itself as multiple separate virtual devices. Each virtual machine gets its own direct access to the hardware, bypassing the hypervisor’s software layer and delivering network performance close to what you’d get on bare metal. It was designed by the PCI-SIG standards body specifically to solve the performance bottleneck that virtualization creates when many VMs share one network card.
From this article about Meta Superintelligence, came across this link about Meta backbone designs at scale for EBB
opensm: I can’t find many blog posts with real hands-on about IB things. And this is a good one. It doesnt just show you the configuration, but the problems you can find. It seems it is better to use the Mellanox’s opensm
systemctl status opensm –no-pager
sudo sminfo
sudo ibnetdiscover
sudo saquery NR | grep -E “lid|NodeDescription”
sudo tail -f /var/log/opensm.log
IB cable EEPROM: Interesting how critical can be having the correct cable from the EEPROM.
The label on a cable is marketing. The EEPROM inside it is a contract, and InfiniBand only honors contracts.
It is really humbling how three people started all this on their own. We capable of horrible things but as well, amazing things. So maybe your effort is just a drop of water but it can add up.
I had no idea about the deforestation mafia of Red Kehmr in Cambodia and how that financed the war. And worst, how both sides were profiting from it. As always, the population is the one that pays the consequences.
That follows the diamonds from Angola, the petrol from Guinea, the wars of Siorra Leone and Liberia, etc.
I think of several countries as corrupted, but as the book shows, it is the first work with the financial engineering and PR/Law firms that allow all the mone to be moved away from those countries
If we dont allow those people to buy property, ferraris, etc it would be less convenient…. and make all the companies accountable.
At the end of the day, while fiscal paradise exists, this will continue, but at least there are people like GW that will pull the carpet and show the ugliness…