đź”— Take a Break You Idiot

Burnout is a real thing. Take care of yourself.

The burnout curve

src: https://thoughtshrapnel.com/2023/09/11/the-burnout-curve.html

When we interviewed people who had burned out, they told us remarkably similar stories.

  1. A relentless work ethic – they had a set of beliefs and stories that drove them to work hard - I will deliver, I won’t let people down, I must give 100% at all times.
  2. Bottomless workload – they joined organizations that rewarded their work ethic with endless work. The harder they worked the more they were given.
  3. Sliding into burnout – thoughts of work became constant. They had trouble switching off in the evenings, work was taking over their life.
  4. Ignoring the warning signs – their body was sending signals that something needed to change. They were tense, irritated, exhausted. But they couldn’t slow down – there was too much to do.
  5. The breakdown – For those who would not listen, the body and brain had a last resort. They shut down. People couldn’t get out of bed, couldn’t drive, couldn’t read. The body refused to go on. The trap for many people is the belief that rest is the solution. So, they took a break – a week, a month or a year. They then went back to the same work, with the same mindset and the same behaviors. They got the same result. The people we interviewed who genuinely overcame burnout followed a common path.
  6. Meeting friends and mentors – they realized they couldn’t repeat their past. They needed new perspectives and a new approach. They got these from family, peers, coaches, therapists and support groups.
  7. Deep reflection – they came off autopilot for the first time in years. They reflected deeply on the past – what caused me to burnout? What was driving me? Then the future – what sort of work and life do I want going forward? How can I move myself towards this vision?
  8. Taking action – they took new actions, sometimes big – change of job, change of career - sometimes small - they set new boundaries, restarted a hobby, got a therapist. Some things helped, some things did not. It didn’t matter. The key thing was they were doing NEW things. They were not repeating their old habits. New actions led to new insights and habits.
  9. Post traumatic growth – when we interviewed people who took this path 2 years after their burnout, the most surprising thing was how much they had grown from the experience.

Captain's log, stardate [-26]5720.00

This week in review:

~more>

Docker CPU Isolation

I recently ran into an issue where I needed to run a docker container with realtime priority but couldn’t use isolcpus or PREEMPT-RT patch. You can use cgroups to isolate a docker container to specific cores and prevent other processes from using that particular code. This is different from cpu pinning where other processes can still use the core that the process is pinned to.

#!/usr/bin/env bash

# install cset
pip install git+https://github.com/lpechacek/cpuset.git future

# delete existing cgroup
cset set -d docker

# create a new cgroup with two cores
cset shield --userset=ur_executor --cpu 0,1  -k on

# tell docker to use system cgroup
/bin/cat <<EOF > /etc/docker/daemon.json
{
    "cgroup-parent": "system"
}
EOF

service docker restart

echo "SETUP SUCCESSFUL"

while running the docker container, add --cgroup-parent=ur_executor to isolate container to ur_executor cgroup

I didn’t end up using this method because it had a very high jitter. There could be some other settings that could reduce jitter but haven’t done a deep dive. docker-realtime

References

Captain's log, stardate [-26]4880.00

This week in review:

~more>

Page 5 of 19