When using Virtualbox I am getting the error: Memory shortage avoided

I am posting this here because I don’t know where to start to track down the issue.

I have allot of VM’s and i get this error pretty consistantly.

I am not sure what logs or info to post here.

Let me know what a good place to start might be and we can go from there.

Where do you get this message from?

  • system log?
  • virtualbox itself (when run from e terminal prompt, perhaps?)
  • from a VM running inside virtualbox?

cave:
I do not use VirtualBox, so I cannot delve in any deeper.

While I am running the Virtual Machine . It happened when the OS I was running was doing an update. If I can find the complete message I will post it here. It disappeared off the screen and it crashed the Virtual Machine so I had to start it up again.

so it appears to be the second of the above mentioned possibilities …
… message came from inside some OS running inside VB

What OS that might have been is unknown as of now - but may be important information :wink:

Sorry for the vague responses but I have several OS’s and it doesn’t matter which one I am in.

It might be a Virtual Box setting for Memory or CPU . I don’t know . That is why I am looking for some guidance. I reran the crashed Virtual Machine and it worked without crashing this time.

But I know it will happen again. Is there a Virtualbox log I can post. I don’t know where it puts it.

Thanks

Edit 1:

I’m thinking it might be an issue with how much memory my Host is using and the Virtual machine needs. Is there some commands I can use to check the memory?

so: this (my assumption) is not true:

The message came not from an OS running inside VirtualBox - but from VirtualBox itself.

That is where I am out - as I do not use VirtualBox
and thus could even not try to verify …

I think the host’s swap will be used when needed by the VirtualBox process - but I don’t truly now.

How to check or alter the amount of memory assigned to the VM in the case of VirtualBox:
I don’t know. (I don’t use it)
perhaps simply give it more … if you can

See my edit to my post.

Yes I that seems to be it.

It might be that the total amount of RAM specified for the VMs is large compared to the available RAM. Posting some system info (for instance, the results of inxi -zv8) would help, and also a list of the RAM allocated to each VM.

You can use (for instance) top to see how much memory is being used, and whether or not swap is being used (or even available).

1 Like

like @Phemisters said:
you can only assign a portion of the RAM you actually, physically, have.

The OS this occured with is still shrouded in mystery. :wink:

1 Like

First the OS I am testing with in the VM is Debian Testing.

Here is some more info:

[demo@Manjaro ~]$ inxi -zv8
System:
  Kernel: 6.18.0-rc7-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 15.2.1
    clocksource: tsc avail: acpi_pm
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.18-x86_64
    root=UUID=45ca132d-4a37-4dc3-afa0-be2e80d6a4a2 rw quiet
    udev.log_priority=3 libata.noacpi=1 kvm.enable_virt_at_load=0
  Desktop: KDE Plasma v: 6.5.3 tk: Qt v: N/A info: frameworks v: 6.20.0
    wm: kwin_x11 with: plank tools: xscreensaver,xscreensaver-systemd vt: 2
    dm: SDDM Distro: Manjaro base: Arch Linux
Machine:
  Type: Convertible System: HP product: HP Spectre x360 Convertible 15-df1xxx
    v: N/A serial: <superuser required> Chassis: type: 31
    serial: <superuser required>
  Mobo: HP model: 863F v: 54.24 serial: <superuser required>
    part-nu: 7UT64UA#ABA uuid: <superuser required> Firmware: UEFI vendor: AMI
    v: F.32 date: 12/08/2023
Battery:
  ID-1: BAT0 charge: 90.5 Wh (100%) condition: 90.5/90.5 Wh (100%)
    volts: 12.95 min: 11.55 model: HP Primary type: Li-ion serial: <filter>
    charging: status: full cycles: 55
Memory:
  System RAM: total: 16 GiB available: 15.25 GiB used: 10.62 GiB (69.6%)
  Message: For most reliable report, use superuser + dmidecode.
  Array-1: capacity: 32 GiB slots: 2 modules: 2 EC: None
    max-module-size: 16 GiB note: est.
  Device-1: Bottom - Slot 1 (left) type: DDR4 detail: synchronous
    size: 8 GiB speed: 2667 MT/s volts: note: check curr: 1 min: 1 max: 1
    width (bits): data: 64 total: 64 manufacturer: Samsung
    part-no: M471A1K43CB1-CTD serial: <filter>
  Device-2: Bottom - Slot 2 (right) type: DDR4 detail: synchronous
    size: 8 GiB speed: 2667 MT/s volts: note: check curr: 1 min: 1 max: 1
    width (bits): data: 64 total: 64 manufacturer: Samsung
    part-no: M471A1K43CB1-CTD serial: <filter>
PCI Slots:
  Permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: Intel Core i7-10510U bits: 64 type: MT MCP
    arch: Comet/Whiskey Lake note: check gen: core 10 level: v3 note: check
    built: 2018 process: Intel 14nm family: 6 model-id: 0x8E (142)
    stepping: 0xC (12) microcode: 0x100
  Topology: cpus: 1x dies: 1 clusters: 4 cores: 4 threads: 8 tpc: 2
    smt: enabled cache: L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB
    desc: 4x256 KiB L3: 8 MiB desc: 1x8 MiB
  Speed (MHz): avg: 1300 min/max: 400/4900 scaling: driver: intel_pstate
    governor: powersave cores: 1: 1300 2: 1300 3: 1300 4: 1300 5: 1300 6: 1300
    7: 1300 8: 1300 bogomips: 36799
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat
    arch_capabilities arch_perfmon art avx avx2 bmi1 bmi2 bts clflush
    clflushopt cmov constant_tsc cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64
    dtherm dts epb ept ept_ad erms est f16c flexpriority flush_l1d fma fpu
    fsgsbase fxsr ht hwp hwp_act_window hwp_epp hwp_notify ibpb ibrs
    ibrs_enhanced ida intel_pt invpcid lahf_lm lm mca mce md_clear mmx
    monitor movbe mpx msr mtrr nonstop_tsc nopl nx pae pat pbe pcid pclmulqdq
    pdcm pdpe1gb pebs pge pln pni popcnt pse pse36 pts rdrand rdseed rdtscp
    rep_good sdbg sep sgx smap smep ss ssbd sse sse2 sse4_1 sse4_2 ssse3
    stibp syscall tm tm2 tpr_shadow tsc tsc_adjust tsc_deadline_timer vme vmx
    vnmi vpid x2apic xgetbv1 xsave xsavec xsaveopt xsaves xtopology xtpr
  Vulnerabilities:
  Type: gather_data_sampling mitigation: Microcode
  Type: ghostwrite status: Not affected
  Type: indirect_target_selection mitigation: Aligned branch/return thunks
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data mitigation: Clear CPU buffers; SMT vulnerable
  Type: old_microcode status: Not affected
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed mitigation: Enhanced IBRS
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Enhanced / Automatic IBRS; IBPB:
    conditional; PBRSB-eIBRS: SW sequence; BHI: SW loop, KVM: SW loop
  Type: srbds mitigation: Microcode
  Type: tsa status: Not affected
  Type: tsx_async_abort status: Not affected
  Type: vmscape mitigation: IBPB before exit to userspace
Graphics:
  Device-1: Intel CometLake-U GT2 [UHD Graphics] vendor: Hewlett-Packard
    driver: i915 v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20
    ports: active: eDP-1 empty: DP-1,DP-2 bus-ID: 00:02.0 chip-ID: 8086:9b41
    class-ID: 0300
  Device-2: NVIDIA GP108M [GeForce MX250] vendor: Hewlett-Packard
    driver: N/A alternate: nouveau, nova_core non-free: 550-580.xx+
    status: current (as of 2025-11; EOL~2026-12-xx) arch: Pascal code: GP10x
    process: TSMC 16nm built: 2016-2021 pcie: gen: 3 speed: 8 GT/s lanes: 4
    bus-ID: 3b:00.0 chip-ID: 10de:1d13 class-ID: 0302
  Device-3: Chicony HP Wide Vision FHD Camera driver: uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-5:4 chip-ID: 04f2:b67b
    class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 21.1.21 with: Xwayland v: 24.1.9
    compositor: kwin_x11 driver: X: loaded: modesetting alternate: fbdev,vesa
    dri: iris gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3840x2160 s-dpi: 300 s-size: 325x182mm (12.80x7.17")
    s-diag: 372mm (14.66")
  Monitor-1: eDP-1 model: AU Optronics 0x30eb built: 2017 res: N/A dpi: 284
    gamma: 1.2 chroma: red: x: 0.647 y: 0.337 green: x: 0.310 y: 0.608 blue:
    x: 0.153 y: 0.047 white: x: 0.314 y: 0.329 size: 344x193mm (13.54x7.6")
    diag: 394mm (15.5") ratio: 16:9 modes: 3840x2160
  EDID-Warnings: 1: parse_edid: unknown flag 2
  API: EGL v: 1.5 hw: drv: intel iris platforms: device: 0 drv: iris
    device: 1 drv: swrast gbm: drv: iris surfaceless: drv: iris x11: drv: iris
    inactive: wayland
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: intel mesa v: 25.2.7-arch1.1
    glx-v: 1.4 direct-render: yes renderer: Mesa Intel UHD Graphics (CML GT2)
    device-ID: 8086:9b41 memory: 14.89 GiB unified: yes
  API: Vulkan v: 1.4.328 layers: 5 device: 0 type: integrated-gpu name: Intel
    UHD Graphics (CML GT2) driver: mesa intel v: 25.2.7-arch1.1
    device-ID: 8086:9b41 surfaces: N/A
  Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo
    de: kscreen-console,kscreen-doctor wl: wayland-info
    x11: xdpyinfo, xprop, xrandr
Audio:
  Device-1: Intel Comet Lake PCH-LP cAVS vendor: Hewlett-Packard
    driver: sof-audio-pci-intel-cnl alternate: snd_soc_avs,
    snd_sof_pci_intel_cnl, snd_hda_intel bus-ID: 00:1f.3 chip-ID: 8086:02c8
    class-ID: 0401
  API: ALSA v: k6.18.0-rc7-1-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: N/A
  Server-2: PipeWire v: 1.4.9 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel Comet Lake PCH-LP CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:02f0 class-ID: 0280
  IF: wlan0 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  IF-ID-1: tailscale0 state: unknown speed: -1 duplex: full mac: N/A
  IP v4: <filter> scope: global
  IP v6: <filter> scope: global
  IP v6: <filter> virtual: stable-privacy proto kernel_ll scope: link
  Info: services: NetworkManager, systemd-networkd, systemd-timesyncd,
    wpa_supplicant
  WAN IP: <filter>
Bluetooth:
  Device-1: Realtek Bluetooth Radio driver: btusb v: 0.8 type: USB rev: 1.1
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-2:3 chip-ID: 0bda:8771
    class-ID: e001 serial: <filter>
  Report: btmgmt ID: hci0 rfk-id: 3 state: up address: <filter> bt-v: 5.1
    lmp-v: 10 status: discoverable: no pairing: no class-ID: 6c0000
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 1.82 TiB used: 970.13 GiB (52.1%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung
    model: SSD 970 EVO Plus 1TB size: 931.51 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 tech: SSD serial: <filter>
    fw-rev: 2B2QEXM7 temp: 47.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: Seagate model: ST31000528AS
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B type: USB
    rev: 2.0 spd: 480 Mb/s lanes: 1 mode: 2.0 tech: HDD rpm: 7200
    serial: <filter> scheme: MBR
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 163 GiB size: 160.13 GiB (98.24%) used: 69.93 GiB (43.7%)
    fs: ext4 dev: /dev/nvme0n1p11 maj-min: 259:11 label: Manjaro
    uuid: 45ca132d-4a37-4dc3-afa0-be2e80d6a4a2
  ID-2: /boot/efi raw-size: 499 MiB size: 498 MiB (99.80%)
    used: 206.7 MiB (41.5%) fs: vfat dev: /dev/nvme0n1p2 maj-min: 259:2
    label: N/A uuid: 385A-127E
  ID-3: /home raw-size: 315 GiB size: 308.99 GiB (98.09%)
    used: 213.04 GiB (68.9%) fs: ext4 dev: /dev/nvme0n1p8 maj-min: 259:8
    label: Data for Manjaro uuid: 1f7a0eb8-f3e9-46ef-a88a-e3ae0ed0233d
  ID-4: /run/media/demo/c3e9d924-c5b9-4b74-a90f-95a5b750a6d4
    raw-size: 826.61 GiB size: 813.44 GiB (98.41%) used: 686.96 GiB (84.5%)
    fs: ext4 dev: /dev/sda5 maj-min: 8:5 label: N/A
    uuid: c3e9d924-c5b9-4b74-a90f-95a5b750a6d4
Swap:
  Alert: No swap data was found.
Unmounted:
  ID-1: /dev/nvme0n1p1 maj-min: 259:1 size: 529 MiB fs: <superuser required>
    label: N/A uuid: N/A
  ID-2: /dev/nvme0n1p10 maj-min: 259:10 size: 2 GiB fs: ext4 label: N/A
    uuid: 7b881044-e7f4-4adb-8f7c-03a4bf158c1a
  ID-3: /dev/nvme0n1p12 maj-min: 259:12 size: 90 GiB fs: ext4 label: N/A
    uuid: bf3d30bc-88b6-4660-914b-1f3f7b5d4334
  ID-4: /dev/nvme0n1p13 maj-min: 259:13 size: 16 GiB fs: swap label: N/A
    uuid: 24f2c822-affd-40ce-a183-d76c98c31df5
  ID-5: /dev/nvme0n1p3 maj-min: 259:3 size: 16 MiB fs: <superuser required>
    label: N/A uuid: N/A
  ID-6: /dev/nvme0n1p4 maj-min: 259:4 size: 267.92 GiB fs: ntfs label: N/A
    uuid: EAEA681CEA67E375
  ID-7: /dev/nvme0n1p5 maj-min: 259:5 size: 1.05 GiB fs: ntfs label: N/A
    uuid: 929AD9469AD9280D
  ID-8: /dev/nvme0n1p6 maj-min: 259:6 size: 961 MiB fs: ntfs label: N/A
    uuid: 863E127D3E126709
  ID-9: /dev/nvme0n1p7 maj-min: 259:7 size: 3 MiB fs: ufs label: N/A
    uuid: 6354a81a1b0b8929
  ID-10: /dev/nvme0n1p9 maj-min: 259:9 size: 74.57 GiB fs: ext4
    label: Arch Linux uuid: 91f4ccdf-2376-48ab-a390-91ea0bc4b02a
  ID-11: /dev/sda1 maj-min: 8:1 size: 500 MiB fs: ext4 label: N/A
    uuid: c1a75a88-3b14-454f-9aba-719f5cdb87c8
  ID-12: /dev/sda3 maj-min: 8:3 size: 4.88 GiB fs: swap label: N/A
    uuid: 741acc87-2a25-4339-9d36-5c9816e3659f
  ID-13: /dev/sda4 maj-min: 8:4 size: 1 KiB fs: <superuser required>
    label: N/A uuid: N/A
USB:
  Hub-1: 1-0:1 info: hi-speed hub with single TT ports: 12 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Device-1: 1-1:2 info: SimpleTech 1TB SimpleDrive II USB External Hard
    Drive type: mass storage driver: usb-storage interfaces: 1 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 power: 2mA
    chip-ID: 4971:ce17 class-ID: 0806 serial: <filter>
  Device-2: 1-2:3 info: Realtek Bluetooth Radio type: bluetooth
    driver: btusb interfaces: 2 rev: 1.1 speed: 12 Mb/s (1.4 MiB/s) lanes: 1
    mode: 1.1 power: 500mA chip-ID: 0bda:8771 class-ID: e001 serial: <filter>
  Device-3: 1-5:4 info: Chicony HP Wide Vision FHD Camera type: video
    driver: uvcvideo interfaces: 4 rev: 2.0 speed: 480 Mb/s (57.2 MiB/s)
    lanes: 1 mode: 2.0 power: 500mA chip-ID: 04f2:b67b class-ID: 0e02
    serial: <filter>
  Device-4: 1-9:5 info: Synaptics type: <vendor specific> driver: N/A
    interfaces: 1 rev: 2.0 speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1
    power: 100mA chip-ID: 06cb:00bb class-ID: ff00 serial: <filter>
  Hub-2: 2-0:1 info: super-speed hub ports: 6 rev: 3.1
    speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
    class-ID: 0900
  Hub-3: 3-0:1 info: hi-speed hub with single TT ports: 2 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Hub-4: 4-0:1 info: super-speed hub ports: 2 rev: 3.1
    speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
    class-ID: 0900
Sensors:
  System Temperatures: cpu: 60.0 C pch: 59.0 C mobo: N/A
  Fan Speeds (rpm): N/A
Repos:
  Packages: pm: pacman pkgs: 1943 libs: 357 tools: pamac,trizen,yay
  Active pacman repo servers in: /etc/pacman.d/chaotic-mirrorlist
    1: https://geo-mirror.chaotic.cx/$repo/$arch
    2: https://cdn-mirror.chaotic.cx/$repo/$arch
    3: https://br-mirror.chaotic.cx/$repo/$arch
    4: https://cl-mirror.chaotic.cx/$repo/$arch
    5: https://cl-2-mirror.chaotic.cx/$repo/$arch
    6: https://de-2-mirror.chaotic.cx/$repo/$arch
    7: https://de-4-mirror.chaotic.cx/$repo/$arch
    8: https://gb-mirror.chaotic.cx/$repo/$arch
    9: https://gr-mirror.chaotic.cx/$repo/$arch
    10: https://in-mirror.chaotic.cx/$repo/$arch
    11: https://in-2-mirror.chaotic.cx/$repo/$arch
    12: https://in-4-mirror.chaotic.cx/$repo/$arch
    13: https://sg-mirror.chaotic.cx/$repo/$arch
    14: https://kr-mirror.chaotic.cx/$repo/$arch
    15: https://es-mirror.chaotic.cx/$repo/$arch
    16: https://es-2-mirror.chaotic.cx/$repo/$arch
    17: https://us-mi-mirror.chaotic.cx/$repo/$arch
    18: https://us-ut-mirror.chaotic.cx/$repo/$arch
    19: https://vn-mirror.chaotic.cx/$repo/$arch
  Active pacman repo servers in: /etc/pacman.d/mirrorlist
    1: https://cofractal-ewr.mm.fcix.net/manjaro/unstable/$repo/$arch
    2: https://forksystems.mm.fcix.net/manjaro/unstable/$repo/$arch
    3: https://mirrors.gigenet.com/manjaro/unstable/$repo/$arch
    4: https://ohioix.mm.fcix.net/manjaro/unstable/$repo/$arch
    5: https://repo.ialab.dsu.edu/manjaro/unstable/$repo/$arch
    6: https://nnenix.mm.fcix.net/manjaro/unstable/$repo/$arch
    7: https://irltoolkit.mm.fcix.net/manjaro/unstable/$repo/$arch
    8: https://mirrors.ocf.berkeley.edu/manjaro/unstable/$repo/$arch
Processes:
  CPU top: 5 of 318
  1: cpu: 386% command: /lpr
    started-by: ../../projects/sech.me_boinc_Amicable/amicable_v_3_0 pid: 11609
    mem: 189.1 MiB (1.2%)
  2: cpu: 100% command: ps pid: 466930 mem: 4.15 MiB (0.0%)
  3: cpu: 76.8% command: VirtualBoxVM pid: 459201 mem: 2322.5 MiB (14.8%)
  4: cpu: 27.9% command: vivaldi-bin pid: 426288 mem: 468.4 MiB (2.9%)
  5: cpu: 27.0% command: vivaldi-bin pid: 426248 mem: 190.7 MiB (1.2%)
  Memory top: 5 of 318
  1: mem: 2322.5 MiB (14.8%) command: VirtualBoxVM pid: 459201 cpu: 76.8%
  2: mem: 1348.0 MiB (8.6%) command: clamd pid: 1068 cpu: 0.0%
  3: mem: 636.4 MiB (4.0%) command: vivaldi-bin pid: 426084 cpu: 4.3%
  4: mem: 507.3 MiB (3.2%) command: plasmashell pid: 2377 cpu: 0.2%
  5: mem: 468.4 MiB (2.9%) command: vivaldi-bin pid: 426288 cpu: 27.9%
Info:
  Processes: 318 Power: uptime: 23h 13m states: freeze,mem,disk
    suspend: s2idle wakeups: 2 hibernate: platform avail: shutdown, reboot,
    suspend, test_resume image: 6.05 GiB services: org_kde_powerdevil,upowerd
    Init: systemd v: 258 default: graphical tool: systemctl
  Compilers: clang: 21.1.6 gcc: 15.2.1 Shell: Bash v: 5.3.3
    running-in: alacritty inxi: 3.3.40
top - 10:53:09 up 23:15,  1 user,  load average: 10.51, 10.09, 10.03
Tasks: 318 total, 3 running, 314 sleep, 1 d-sleep, 0 stopped, 0 zombie
top - 10:53:09 up 23:15,  1 user,  load average: 10.51, 10.09, 10.03
Tasks: 318 total, 4 running, 313 sleep, 1 d-sleep, 0 stopped, 0 zombie
top - 10:53:41 up 23:16,  1 user,  load average: 11.37, 10.33, 10.12
Tasks: 318 total, 2 running, 316 sleep, 0 d-sleep, 0 stopped, 0 zombie
%Cpu(s):  6.5 us,  8.3 sy, 83.6 ni,  0.0 id,  0.0 wa,  1.2 hi,  0.3 si,  0.0 st
MiB Mem :  15618.6 total,   2991.5 free,  10855.4 used,   4394.7 buff/cache
MiB Swap:      0.0 total,      0.0 free,      0.0 used.   4763.2 avail Mem

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
  11609 boinc     39  19 3578724 193592   1676 S 666.9   1.2     89,55 amicable_v_3_0
 459201 demo      20   0 5419716   2.3g   2.1g S  62.0  14.9  17:25.97 VirtualBoxVM
 426248 demo      20   0   33.2g 189784 107012 S  13.3   1.2  26:52.75 vivaldi-bin
 426288 demo      20   0 1395.4g 461672 134712 S  11.6   2.9  27:48.28 vivaldi-bin
   1178 root      20   0  979016 175368  90440 S   6.6   1.1  57:46.63 Xorg
   2264 demo      20   0 2628492 388636  52004 S   5.3   2.4  43:56.58 kwin_x11
 426084 demo      20   0   33.2g 652112 406768 S   1.0   4.1   4:19.82 vivaldi-bin
 430942 demo      20   0 1914796 249376 148776 S   1.0   1.6   1:27.80 VirtualBox

Since you are running VMs I would certainly consider adding some swap: Swap - Manjaro

I don’t think you’ve said how much RAM the VMs are allocated in VirtualBox, but you certainly don’t have much room left in RAM if the VMs request more:

MiB Mem :  15618.6 total,   2991.5 free,  10855.4 used,   4394.7 buff/cache
MiB Swap:      0.0 total,      0.0 free,      0.0 used.   4763.2 avail Mem

When RAM is all allocated, I can imagine VirtualBox will allow a VM to fail or at least abort processing in the VM with out-of-memory errors.

2 Likes

You should always ensure your host has sufficient swap. How much depends on the load you put on the host, meaning the number of concurrently running guests.

1 Like

I am always tinkering with the memory for each of the VM’s. Right now the Debian Testing is set at about 7GB. I could probably lower that

I have a 16GB swap file on the system. Not sure why it doesn’t show up.

Maybe not in my fstab. I will check that out.

… because the inxi output is from your host? :wink:

Your host doesn’t have any swap.

Debian runs just fine with just 2 GB of RAM

Changed the Debian to 2048MB on the memory setting. I will see how that performs.

Here is my lsblk -f:

[demo@Manjaro ~]$ lsblk -f
NAME         FSTYPE FSVER LABEL            UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sda
├─sda1       ext4   1.0                    c1a75a88-3b14-454f-9aba-719f5cdb87c8
├─sda3       swap   1                      741acc87-2a25-4339-9d36-5c9816e3659f
├─sda4
└─sda5       ext4   1.0                    c3e9d924-c5b9-4b74-a90f-95a5b750a6d4   85.1G    84% /run/media/demo/c3e9d924-c5b9-4b74-a90f-95a5b750a6d4
nvme0n1
├─nvme0n1p1
├─nvme0n1p2  vfat   FAT32                  385A-127E                             291.3M    42% /boot/efi
├─nvme0n1p3
├─nvme0n1p4  ntfs                          EAEA681CEA67E375
├─nvme0n1p5  ntfs                          929AD9469AD9280D
├─nvme0n1p6  ntfs                          863E127D3E126709
├─nvme0n1p7  ufs    2                      6354a81a1b0b8929
├─nvme0n1p8  ext4   1.0   Data for Manjaro 1f7a0eb8-f3e9-46ef-a88a-e3ae0ed0233d   80.2G    69% /home
├─nvme0n1p9  ext4   1.0   Arch Linux       91f4ccdf-2376-48ab-a390-91ea0bc4b02a
├─nvme0n1p10 ext4   1.0                    7b881044-e7f4-4adb-8f7c-03a4bf158c1a
├─nvme0n1p11 ext4   1.0   Manjaro          45ca132d-4a37-4dc3-afa0-be2e80d6a4a2   81.7G    44% /
├─nvme0n1p12 ext4   1.0                    bf3d30bc-88b6-4660-914b-1f3f7b5d4334
└─nvme0n1p13 swap   1                      24f2c822-affd-40ce-a183-d76c98c31df5

Is the 24f2c822-affd-40ce-a183-d76c98c31df5 what I put in the fstab file for swap UUID?

Yes, I think you’d want something like this in the fstab:

UUID=24f2c822-affd-40ce-a183-d76c98c31df5       none    swap    defaults        0       0

I now have this as swap:

Swap:
  Kernel: swappiness: 10 (default 60) cache-pressure: 100 (default) zswap: yes
    compressor: zstd max-pool: 20%
  ID-1: swap-1 type: partition size: 16 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/nvme0n1p13 maj-min: 259:13 label: N/A
    uuid: 24f2c822-affd-40ce-a183-d76c98c31df5
1 Like

I will monitor situation now that I have made these changes and see how it goes.

I don’t want to mark this solved just yet.

Edit 1:

I have run several OS’s and none have crashed yet. Maybe these settings are working.

I think with the lowering of the Machine memory down to 2048 and the addition of the Swap it has solved I think the original issue.

Now about the Swap file. Shouldn’t it clear itself out after not being used anymore?

After going in and out of VM’s it just seems to keep growing.

               total        used        free      shared  buff/cache   available
Mem:           15618       11890        1802        3557        5819        3728
Swap:          16382        1150       15232
Total:         32001       13040       17034
1 Like