Dear TrueNAS community.
I have a somewhat beefy server 512GB RAM with AMD EPYC 7662 64-Core Processor. My OS version is TrueNAS-13.0-U2
The dashboard shows Services 116.5GB, ZFS Cache 14.9GB and Free 380GB. I have a few VMs totaling 76GB and in order not to worry about memory, I’ve set the vfs.zfs.arc_max to 372GB well below the suggested level. I arrived at this number by giving myself a 16GB buffer instead of 4GB on an allowance of up to 124GB in VMs if i wanted too which i never reached.
Whilst trying to create a new baby VM 4GB I’m getting below error which i read as memory overcommit.
Your kind assistance is greatly appreciated.
Thanks in advance.
Error: Traceback (most recent call last):
File “/usr/local/lib/python3.9/site-packages/middlewared/main.py”, line 139, in call_method
result = await self.middleware._call(message[‘method’], serviceobj, methodobj, params, app=self)
File “/usr/local/lib/python3.9/site-packages/middlewared/main.py”, line 1246, in _call
return await self.run_in_executor(prepared_call.executor, methodobj, *prepared_call.args)
File “/usr/local/lib/python3.9/site-packages/middlewared/main.py”, line 1151, in run_in_executor
return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
File “/usr/local/lib/python3.9/concurrent/futures/thread.py”, line 58, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/local/lib/python3.9/site-packages/middlewared/schema.py”, line 979, in nf
return f(*args, **kwargs)
File “/usr/local/lib/python3.9/site-packages/middlewared/plugins/vm.py”, line 1594, in start
self.middleware.call_sync(‘vm.init_guest_vmemory’, vm, options[‘overcommit’])
File “/usr/local/lib/python3.9/site-packages/middlewared/main.py”, line 1294, in call_sync
return self.run_coroutine(methodobj(*prepared_call.args))
File “/usr/local/lib/python3.9/site-packages/middlewared/main.py”, line 1334, in run_coroutine
return fut.result()
File “/usr/local/lib/python3.9/concurrent/futures/_base.py”, line 438, in result
return self.__get_result()
File “/usr/local/lib/python3.9/concurrent/futures/_base.py”, line 390, in __get_result
raise self._exception
File “/usr/local/lib/python3.9/site-packages/middlewared/plugins/vm.py”, line 1227, in init_guest_vmemory
setvmem = await self.__set_guest_vmemory(guest_memory, overcommit)
File “/usr/local/lib/python3.9/site-packages/middlewared/plugins/vm.py”, line 1219, in __set_guest_vmemory
sysctl.filter(‘vfs.zfs.arc.max’)[0].value = new_arc_max
OSError: [Errno 22] Invalid argument