You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Adjust instance RAM maximum value for 2 TiB gimlets #7918
Customers deploying these gimlets are requesting larger instances than this. In order to support this, Nexus has to be aware that these gimlets have more of a reservoir to allocate from, and offer larger instance sizes accordingly.
I managed to get some 384 GiB VMs to run but they aren't all stable, e.g., this one went to the GRUB menu after I ran sysbench for a while. This is what I see in the serial console at the moment:
GNU GRUB version 2.12
Ŀ
*Ubuntu
Advanced options for Ubuntu
UEFI Firmware Settings
Use the ^ and v keys to select which entry is highlighted.
Press enter to boot the selected OS, `e' to edit the commands
before booting or `c' for a command-line. ESC to return previous
menu.
The complete dump files for some of the panics can be found at /staff/core/omicron-7918.
cc @iximeow@pfmooney
The illumos fix allowed instances with >512 GiB memory to come up. I was able to start 756/896/960 GiB instances consistently. But with 1 TiB instances, there appear to be some sort of timeout or slowness in the control plane workflow. The log below shows such an occurrence after propolis HTTP came up (notably, at 06:34:10.494Z, there was a request handling cancelled (client disconnected) warning with request latency_us = 60000433)
23:03:22.237Z INFO SledAgent (InstanceManager): Propolis HTTP server online
file = sled-agent/src/instance.rs:2101
instance_id = 38e05be0-4030-4bfe-b784-e2c67ab3dba4
propolis_id = 2e841ee3-736b-4c36-88c8-cc9d6c752e79
23:03:22.558Z INFO SledAgent (InstanceManager): result of instance_ensure call is Ok(InstanceEnsureResponse { migrate: None })
file = sled-agent/src/instance.rs:1128
instance_id = 38e05be0-4030-4bfe-b784-e2c67ab3dba4
propolis_id = 2e841ee3-736b-4c36-88c8-cc9d6c752e79
23:03:22.559Z INFO SledAgent (InstanceManager): observed new Propolis state
file = sled-agent/src/instance.rs:986
instance_id = 38e05be0-4030-4bfe-b784-e2c67ab3dba4
propolis_id = 2e841ee3-736b-4c36-88c8-cc9d6c752e79
state = ObservedPropolisState { vmm_state: PropolisInstanceState(Starting), migration_in: None, migration_out: None, time: 2025-05-03T23:03:22.559412449Z }
the propolis state change should be rather quick (<0.5s). The 1 TiB propolis zone simply failed to come up all the way (i.e., instance_watcher wasn't giving up prematurely). Unfortunately I can't find the corresponding propolis log to see what was actually going on - the zone was uninstalled without invoking zone-bundle collection.
@pfmooney / @iximeow - I am able to run a 1 TiB memory VM (with 64 vcpus) without problem on dublin using this commit. I ran some sysbench tests (cpu/memory benchmarks) as well as a MySQL benchmark for 12 hours. Things are looking stable to me so I think the omicron side of changes can be merged to main.
well. i didn't totally mean to close this since 2 TiB gimlets could/should allow VM sizes upwards of 1.5 TiB of memory. but as we discovered above and in the notes on #8160, oxidecomputer/propolis#907 needs to get resolved and that updated Propolis needs to get pulled in before we do that. otherwise OVMF won't know how to do PCI and instances won't have disks.
but, 1024 GiB is much more than 256 GiB so we're 4x better than before!!
Since #8527 we're back to "no known technical limit on RAM size", though we still cap allowed instance sizes out of caution for unknown unknowns. oxidecomputer/console#2858 bumps the console side up to 1536 GiB, and that's where we're at for now!
Activity
askfongjojo commentedon Apr 27, 2025
Turned out we can't just bump up the memory to something much higher than 256 GiB.
VMs with 512 GiB memory or more cause the sled to panic:
I managed to get some 384 GiB VMs to run but they aren't all stable, e.g., this one went to the GRUB menu after I ran sysbench for a while. This is what I see in the serial console at the moment:
The complete dump files for some of the panics can be found at
/staff/core/omicron-7918.cc @iximeow @pfmooney
pfmooney commentedon Apr 28, 2025
This has been filed as illumos#17403, with a pending CR to fix it here.
pfmooney commentedon Apr 30, 2025
The illumos#17403 fix has been merged upstream. Once it's pulled into helios, we should be in a position to retry running large guests.
pfmooney commentedon May 2, 2025
As of oxidecomputer/illumos-gate@47b4405, that fix has been merged into stlouis.
askfongjojo commentedon May 3, 2025
The illumos fix allowed instances with >512 GiB memory to come up. I was able to start 756/896/960 GiB instances consistently. But with 1 TiB instances, there appear to be some sort of timeout or slowness in the control plane workflow. The log below shows such an occurrence after propolis HTTP came up (notably, at 06:34:10.494Z, there was a
request handling cancelled (client disconnected)warning with request latency_us = 60000433)askfongjojo commentedon May 3, 2025
Here are the corresponding log lines from nexus:
askfongjojo commentedon May 3, 2025
Looking at the 960 GiB sled-agent log lines,
the propolis state change should be rather quick (<0.5s). The 1 TiB propolis zone simply failed to come up all the way (i.e., instance_watcher wasn't giving up prematurely). Unfortunately I can't find the corresponding propolis log to see what was actually going on - the zone was uninstalled without invoking zone-bundle collection.
askfongjojo commentedon May 3, 2025
Ok, I got the propolis log this time with another 1 TiB instance by tailing the propolis log directly from outside the zone:
The error it hit was
VM initialization failed: failed to join VM object creation task: failed to add high memory region.askfongjojo commentedon May 4, 2025
Filed oxidecomputer/propolis#903 for follow-up.
pfmooney commentedon May 5, 2025
I found some constants which need to be adjusted up in order to allow this to work.
askfongjojo commentedon May 13, 2025
@pfmooney / @iximeow - I am able to run a 1 TiB memory VM (with 64 vcpus) without problem on dublin using this commit. I ran some sysbench tests (cpu/memory benchmarks) as well as a MySQL benchmark for 12 hours. Things are looking stable to me so I think the omicron side of changes can be merged to main.
askfongjojo commentedon May 15, 2025
On Dublin, I made a VM with 1100585369600 bytes (1025 GiB) memory and it booted up successfully.
However, resizing the VM to 1105954078720 bytes (1030 GiB) or above resulted in the following error, as seen on the serial console:
@iximeow @david-crespo
iximeow commentedon May 15, 2025
well. i didn't totally mean to close this since 2 TiB gimlets could/should allow VM sizes upwards of 1.5 TiB of memory. but as we discovered above and in the notes on #8160, oxidecomputer/propolis#907 needs to get resolved and that updated Propolis needs to get pulled in before we do that. otherwise OVMF won't know how to do PCI and instances won't have disks.
but, 1024 GiB is much more than 256 GiB so we're 4x better than before!!
Raise Nexus' VM memory limit to 1T (#8160)
iximeow commentedon Jul 15, 2025
Since #8527 we're back to "no known technical limit on RAM size", though we still cap allowed instance sizes out of caution for unknown unknowns. oxidecomputer/console#2858 bumps the console side up to 1536 GiB, and that's where we're at for now!