LXD not correct memory limits

Hi all, it looks like it has discrepancy between limits.memory, and actual memory on the container.

Tested on lxd 3.0.3 (apt) (container: app1) and lxd 4.20 (snap) (container: grafana)


Try using the correct suffix. free shows IEC units but you set your limit using a base-10 (metric) unit. Using the MiB suffix rather than MB will likely do what you want here.

16384MB is 15625MiB so that seems to line up.

Thank you. And now I feel stupid. :slight_smile: