Memory Used On global_status mariadb
Local testing on toy test instance:
show global status like 'memory_used' 276360624
show session status like 'memory_used'; 69608
Looking the code the &quot;global memory used&quot; is the total of all the per connection memory allocations, but exclude actual global allocations like key_buffer, innodb_buffer_pool etc.