Correct me if I am wrong, but does 5800x3d automatically adjusts its speed based on your needs?
Because in task manager I see that speed is at 4.06GHz, despite it saying that the base speed is 3.40GHz.
5800x3D will boost up to 4.55GHz automatically based on workload and thermal headroom. Its an otherwise locked CPU that's designed as a 'set and forget' outside of DOCP/XMP for the RAM.
Even 7000x3D is 'set and forget' outside of some PBO tuning but is still locked like the 5800x3D at 5.05GHz for the 7800x3D and 5.25GHz on the 3D v-cache CCD on the other two. Some people have done base clock overclocking on 7000x3D which isn't advisable, but even less advisable for the 5800x3D since the base clock can't be asychronous from the PCIe bus base clock like it can on Ryzen 7000, therefore adjusting base clock also overclocks the PCIe bus which can cause instability with any PCIe device.
All core at ~4GHZ sounds about right, if you're using monitoring software, check to see if you're getting maximum boosts to 4.55GHz in lighter loads. Otherwise, the 5800x3D isn't designed for overclocking, neither are the 7000x3D CPUs.