Sleep Process and Policies

Regularly getting good sleep is the single most important physiological factor for maintaining my energy, intentionality, and focus.

Almost everyone has felt for themselves how much being tired or sleep deprived is a drag it is on their effectiveness and quality of life. And it's common wisdom that it's important and healthy to "get enough sleep" is good for you. But I've found that there's a level beyond merely getting enough sleep.

When I get 9 hours of very high quality sleep (resting heart rate below 51, HRV above 50), what I wimsically call "mega sleep", my focus and alertness is palpably better than baseline. It's like being on a stimulant, except it's the best stimulant I've ever tried, without the attendant contraction of my awareness (or other side effects). It feels amazing, and I have some much energetic capacity for doing stuff and making progress.

Additionally, while focusing hard for many days in a row is draining, I find that I get most of the benefits of a rest day from high quality sleep. Sleeping deeply for 9 hours every day gives me the physiological capacity to lock in on a project and work for weeks at a time.1

For theses reasons, the foundation of my systems for maintaining high momentum and energy is to prioritize getting very high quality sleep, on a daily basis.

Sleep is not the end all be all. Even when I'm getting megasleep, I need to make sure not to mess up the energy benefits by eating at the wrong times. And having that expanded capacity, I need to additional make sure to spend it well, instead of frittering my focus away on low value distractions. But I'm so much more effective when I'm extremely well rested, that sleep (and exercise, which supports my sleep) is the single highest priority of my self-support systems.

[TODO: Insert a picture of my nighttime HRV graph over time]

Meta

The main sleep metric that I optimize is my average HRV over the period that I'm asleep, measured by my oura ring. I keep an eye on a few other metrics (also measured by oura) as well, including lowest resting heart rate, total sleep time, sleep efficiency, and sleep latency.

Also, before I look at any oura data, every morning, I log my subjective feeling of restedness and alertness. That, along with my focus data and tracking when I ship something, can serve as an outer loop verifying that nighttime HRV actually translates into the outcomes I care about.

I used to test interventions by doing occasional randomized controlled trials. For about the length of a month, I would flip a (digital) coin every night to randomize whether I took a particular supplement or did a particular sleep intervention, and then I would compare to my oura data after the fact.

These days, I use my sleep bandit app instead, which more elegantly addresses the explore exploit tradeoff. Every night, the app randomly assigns an intervention (and in some cases a dosage) with the measured probability that that intervention improves my nighttime HRV, based on past data.2 Now, I'm continually testing interventions, and I'm not giving up the benefit of an intervention that works, 50% of the time, while testing it.

Interventions in this doc, for which I have the data, are notated with their current measured effect on my nighttime HRV, compared to the baseline nights when I didn't use that intervention (but did, probabilistically do every other intervention), in brackets. eg

0.3 mg of melatonin [+3.1 ms]

My nighttime HRV has been improving over the past year, and in recent months, and this does introduce a bias that might be inflating these estimates in the short term, but they should converge eventually.

Schedule

I’ve lived on a number of different sleep schedules, depending on the circumstances, and the people that I’m working with, including waking up at 4 or 5 in the morning, waking up at 10 or 11 in the morning, and waking up at 4:00 in the afternoon and mostly being awake during the night, and even a 26 hour schedule in which my sleep periods are not synced up with the days of the week.

Since 2021, I’ve kept to a mostly biphasic sleep schedule: Sleeping for 6 to 9 hours at night, and about an hour in the mid to late afternoon.

Historically, on days when I don't nap, I've felt notably more tired by the evening, and am a lot less motivated to get stuff done. By napping in the middle of my day, I effectively get two, stacked, high focus work days for each calendar day. But, as my sleep quality has improved and I get mega-sleep more often, I find that an afternoon nap is less important.

At the time of this writing, I wake up at 9:30 AM, and go to sleep at about 12:30 AM, with a nap from about 4:30 to 5:30 or 5:00 to 6:00 in the late afternoon. When I’m on an earlier or a later schedule, all the times in this document are adjusted up or down accordingly.

Sleep-supporting practices

Support for sleep during the day

Exercise

One of the clearest impacts on my nighttime HRV is doing intense exercise, and Cardio Interval Training in particular, during the day.

Analysis of my sleep data shows that very roughly, every day of intense cardio interval training depresses my nighttime HRV by about 1-1.5ms, that night. But after that short term effect, each interval session raises subsequent nighttime HRV by about 1 ms, and that effect decays with a half-life of roughly two to six weeks.

If that model is trustworthy, one day of cardio interval training tends to have an effect of about +0.7 ms on every night over the next month. Further, doing cardio interval training every 3 days for 90 days has a total accumulated effect of +11.5 ms on the night of the ninetieth day, and training every other day has an accumulated effect of +17.5 ms on the ninetieth day (though this is going out on a bit of a limb, since it's ignoring likely saturation effects, and I don't have enough measured data to verify yet).

In practice I typically do cardio interval training between every other and every third day.

Pre-sleep routine

Pre-sleep fast

I don’t eat anything for at least four hours before bed. The cutoff for the last time that I'll eat anything is 7:00 pm.

However, I will sometimes drink liquid meal replacement (Soylent or huel) in the hours before, or even immediately before bed. I haven't observed this to have an impact on my sleep metrics.

Supplements

Every night, around a half hour before I go to sleep (usually just before I leave the office), I take...

I’ve set an alarm that rings at (currently) 11:40pm as a signal to wind down work, brush my teeth, and take my sleep supplements.

I used to take...

...but both of these had a negaitve effect on my sleep metrics.

Magnesium L-theronate is the only variation of magnesium that passes through the blood brain barrier, and is supposed to have recuperative benefits (eg it helps replenish depleted neurotransmitters). Perhaps thes benefits outweigh the measured cost on my recovery? Maybe I should only take Magnesium on particular days (days where I took an anphatmine?) Maybe if I took it earlier in the day it would have less of an impact on my sleep? All of this is currently unclear.

Pre-sleep behavioral interventions

Big six lymph reset

After I take my sleep supplements, I'll do a big six lymph reset as described here. [+3.3 ms]

Acupressure mat

[Data is still coming in for this one]

Sleep systems and setup

If I’m restless

Mostly, I don’t have any difficulty falling asleep these days. In the past, I would sometimes lie down to go to sleep and my mind would be churning or my physiology activated, or otherwise not be able to fall asleep. That doesn’t really happen any more. I’m not sure why. Presumably one or several of the interventions above resolved it.

That said, if I've been lying in bed for 40 minutes or more, and haven't fallen asleep yet, I'll get out of bed and do something else (as is the standard recommendation). However, when I get up like this, there are only three activities that I allow myself, so that I don't get hooked by something stimulating and stay up for an extra hour when I could have been asleep.

Journal

I have a chromebook that is set up just for journaling. I've blocked that everything except roam, google docs (for my tracking spreadsheets and forms), and toggl.

This way, when I'm restless, I can get up and journal in Roam, typically outlining and thinking through whatever churning thoughts were keeping me awake, without the temptation of browsing the internet more generally (which is motivationally-sticky, and doesn’t help me get to sleep).

Meditation/HRV breathing

Alternatively, I might get up and either meditate or do a few minutes of HRV breathing (probably with biofeedback) to increase my parasympathetic activation.

Drink Soylent/Huel

Eating actives the parasympathetic and enteric nervous system, and is one way to calm sympathetic activation. That's why stress eating is a thing.

However, eating in the hours before bed harms sleep quality. So it isn't a good idea to eat just before bed.

However-however, my initial experiments suggest that liquid food doesn't worsen my sleep, so I'll sometimes have a bottle of soylent or huel non-dairy milk if I'm restless.

Waking up

One of the most important inputs to good sleep is waking up consistently at the same time every day. If I focus on making my morning wakeup good, falling asleep will follow, not automatically, than more easily than otherwise.

External Systems

Behavioral practices

See also:


  1. The physiological component is only half of the equation, however. The other half is psychological—a matter of meaning and value to me rather than just biological capacity. The work has to be worth for me to dedicate myself to it like that. 

  2. Actually, it's not quite that simple, because there are some built in adjustments that compensate for small sample sizes, which nudges the system toward correcting possible self-reinforcing errors faster. 

  3. For more on the impact of melatonin, Gwern’s page says it all. 

  4. When I first decided that I wanted to start mouthtaping, it wasn’t feasible for me. I just couldn’t breath through my nose well enough, while lying down, to fall asleep. (For a while I had a bounty up, requesting a way to learn to breath through my nose.) I eventually solved this by taking a nasal decongestant that cleared up my nose enough that I could fall asleep with mouthtape on, and after a few nights of that, my sinuses opened up enough that I was able to breath through my nose normally. I think that for the first 27 years of my life, my sinuses were chronically inflamed, but practice breathing through my nose started a positive feedback cycle. 

  5. I used to get conjunctivitis, in the springtime, reliably, just about every year. I think this is because I would have seasonal allergies, which would cause me to rub my eyes, and then rubbing my eyes would cause them to get infected. I haven't had conjunctivitis since 2021, which is the year that I started mouth taping.