Database budget is the available RAM minus the other services and the OS reserve. The example load adds the page cache, Aria cache, MyISAM cache, redo buffer, 256 MiB planning overhead, 1 MiB per allowed session and an example allocation per active query (2 MiB plus one sort buffer, one join buffer and one temporary table).
These are planning assumptions. Packets, instrumentation, extra joins, multiple temporary tables and other allocations vary. This is neither measured resident memory nor a guaranteed upper bound. Check peak memory and swapping under representative traffic. Apply changes only the controls named above; it does not change your RAM or reserves.