I was on 4000 IU but the blood test wasn't quite up to snuff according to my GP, so he said do 8000. My blood levels went to the top of the range, but I started getting tennis/golfers elbow symptoms. I know there's no relationship, but I dropped back to 4000 and the elbow issues are gone. Yes, I'm nuts. It's probably a random correlation. But I think sun exposure is better, so I try to get outside every day.
There is a suggestion that serum vitamin D raised from ingesting vitamin D isn't the same as vitamin D from the sun. There's not the same vitamin D intracellularly. Years ago they noticed people who were healthier also had higher vitamin D (this was before widespread supplementation). But those people were outside more because that's where healthy people go. They tried to "control for" various factors, but whenever I see those words, my BS sense turns on. Epidemiology is so often misleading, and I'm not sure about this one, so the preferred source for me is the sun. And for those worried about skin cancer, if you don't burn and monitor, your mortality risk is higher by avoiding the sun! This, according to a big UK biobank study (yes, epidemiology again, sigh, but it's not a horrible study).