Minecraft 1.16.5 RAM Distribution/Allocation for Integrated Servers vs Dedicated

I have been wondering for a while, and wasnt able to find anything meaningful through google

When you run an Integrated Singleplayer Server
1) how does the provided ram get used between the Client and the Server?

How does this affect Ram Requirements for a Server to operate?
Say a modpack for Singleplayer says it requires 7 Gigabytes and it runs stabely with 4 gigabytes
for a dedicated Server host, will it need less, or the same amount because the RAM isnt also handling the Client?

I am writing this while tired, there may be repeated sections, i apologize for that.
Was this page helpful?