On Sat, 14 Dec 2024, 00:57 nqxjlwvb via illumos-discuss, < discuss@lists.illumos.org> wrote:
> I assigned 8GB of RAM to the OpenIndiana VM but pkg update is still > unhappy. > How do you mean unhappy? What was the output from the tool? The default swap volume size is 2GB. I have tried to bump the swap space > many times until I reached the reasonable value that pkg update agreed to > work, which is 16GB, or twice the amount of physical RAM I assigned to this > VM. > At a high level: illumos systems do not overcommit memory. If a program allocates 1GB with malloc(), then 1GB of space is required to make a reservation for that program to run. That reservation can be backed by RAM or by swap files. If you have an 8GB VM, some amount of that memory will go to various overheads in the kernel and system software. If you run programs that end up allocating more than is left over, you'll need swap to back those allocations. Cheers. ------------------------------------------ illumos: illumos-discuss Permalink: https://illumos.topicbox.com/groups/discuss/T187223d61705d33f-M2895eed7257ffcc374b389ef Delivery options: https://illumos.topicbox.com/groups/discuss/subscription