Originally posted by ryao
View Post
Announcement
Collapse
No announcement yet.
A 20 Year Old Chipset Workaround Has Been Hurting Modern AMD Linux Systems
Collapse
X
-
Originally posted by kozman View Post
To me it didn't come off sounding like dumb luck to have found it. Are there even tools for profiling all nooks and crannys of the code to find these kinds of things?
There is apparently support for it in perf-events, but it may not be wired up to be as user friendly as PMC sampling. Unfortunately I don't have any recent enough AMD hardware to play with it. There may be something useful in this recent patch or the discussion around it, or more likely this thread from when the feature was first added. The perf tools seem to change a lot though, and the documentation around how they should be used is not great. I didn't even know about event modifiers or "precise levels" until just now.
...actually, it looks like you can just
perf top -a -e cycles:P
and get full-system profiling with the maximum precision your hardware is capable of. Nice! Most userspace programs don't have debug symbols, though, and I've not had great luck getting perf to use debuginfod.
- Likes 1
Leave a comment:
-
I find this fascinating that someone discovered this after so many years and managed to fix it!
Leave a comment:
-
Originally posted by carewolf View Post
Yeah, you would need to run a kernel profiler, and who does that?
- Likes 3
Leave a comment:
-
Originally posted by bezirg View PostGreat find by the AMD engineer, i hope this lands in 6.0!
So, kudos to Dave Hansen -- and to Intel for apparently fostering a work environment where Dave feels empowered to issue patches aimed squarely at improving Enemy Number One's product line...
Leave a comment:
-
Originally posted by coder View PostThis was obviously found by someone doing workload profiling and then going on a hunt for the offending "dummy reads", as indicated in the patch:
"Sampling certain workloads with IBS on AMD Zen3 system shows that a significant amount of time is spent in the dummy op"
The way you phrased it makes it sound like the issue was discovered through code inspection.
not sure why, I am not the coder type, a “modern” distro that limits to hardware no older than say… 2 years wouldn’t be popular enough to garner dev and users.
I am still attempting to build a kernel without a bunch of stuff that doesn’t look needed…. Until something fails.. oh well.. I know I am an amateur, but it is fun and a learning experience. Lots to read and comprehend.
Leave a comment:
-
Originally posted by Mahboi View PostI wonder how much code clarity, speed and maintenance efficiency we'd have if we canned Linux and rebuilt a new OS from scratch with the experience Linux has given us.
Linux probably has a fair amount of gas left in the tank, but I think the profusion of cores & multithreaded workloads represents a new challenge that it hasn't fully taken onboard. In short, I think Linux relies to heavily on userspace threading for utilization of multiple cores, but that's not the only option.
Anyway, it's not that people aren't trying. How long has Google been working on Fuchsia? But Linux is going to be extremely difficult to displace, due to the amount of industry support behind it.
Leave a comment:
-
Horrid thought because of the necessary workload, but I wonder how much code clarity, speed and maintenance efficiency we'd have if we canned Linux and rebuilt a new OS from scratch with the experience Linux has given us. OpenVPN vs Wireguard style.
Yes yes, I'm just dreaming.
- Likes 2
Leave a comment:
-
Originally posted by Volta View PostIt seems Linux competition is so slow AMD didn't even notice such suboptimal performance.
- Likes 1
Leave a comment:
-
Originally posted by Vistaus View Post
I would love better performance on my AMD system, but I don't want to make the "don't-remove-old-stuff-from-the-kernel" gang mad.
- Likes 1
Leave a comment:
Leave a comment: