Magnesium is a great supplement in general. You can definitely have too much in your system and that is undesirable, but a bit before bed time along with 1-3mcg of melatonin work well for me. It is nice after workouts. I use magnesium glycinate in powder form, which is more bioavailable than some forms as well.

I also find sauna before bed is good. I have a bed chiller so I can crank up the sauna before bed and not sweat a lot. Generally if I sauna and take the aforementioned supplements I sleep well. Exercise also seems to help me out a lot. If I exercise during the day, and a 4-5 times that week in general, I tend to sleep well.

Sauna and then a lukewarm shower to cool down is also great.

Your report matches my experience as well!

Funny how it's basically do all the things you're supposed to do - exercise, diet, stress management - then sleep is then easier.

Mg or melatonin have 0 effects on me, Mg helps if I over-exercise but thats for muscles regeneration.

I dont have problems normally, just cant sleep in high altitude, 3000m is already showing mild effects. Guess what, I do/did quite a bit of mountaineering, its easy to get above 5000m in himalayas, highest I've been in tent attempting to sleep before summit push was 6000m on Aconcagua. Tried both Mg and melatonin up there over multiple nights, 0 improvements. I had highest O2 blood level measured in 5500m by doctor (mandatory there) from whole group.

Physical effort makes better sleep for literally everybody, thats age old knowledge and I havent met a single exception yet.

> Mg or melatonin have 0 effects on me

> I dont have problems normally

A lot of things don't have effects on people that don't have the problems the thing is trying to solve.

I meant during higher altitude adventures, as rest of my post explains in detail. Did you get to that part?

I wonder if that is an adaptation time problem? It takes about a month for the body to fully adjust. I live at 1500m elevation in the Denver area of Colorado, but I do recall feeling more restless during sleep at elevation before I lived here.