https://rancher.com/ logo
#rancher-desktop
Title
# rancher-desktop
c

clean-pager-20838

11/03/2022, 12:05 AM
Hi. trying to get similar performance on my local docker as i get on my production k8s cluster... but i think i'm not understanding the rd x lima relation... some questions in case anyone want to chime in
first, i configured it on the rd UI to use 6 CPUs, 16GB ram... but
limactl info
shows
Copy code
"cpuType": {
            "aarch64": "cortex-a72",
            "riscv64": "rv64",
            "x86_64": "host"
        },
        "cpus": 4,
        "memory": "4GiB",
i'm on x86_64
shouldn't those values match the UI?
seems that limactl info is buggy.. on limactl shell i do see 6 cpus identical to my host (minus some flags)
it reports MORE cpu cache in the vm though. can this cause worse performance?
and 100 more bogomips too 😅
f

fast-garage-66093

11/03/2022, 12:15 AM
limactl info
shows the settings from the
default.yaml
template. You should use
limactl ls
to inspect the settings of a specific instance.
c

clean-pager-20838

11/03/2022, 12:15 AM
oh. thanks!
does the CPU type mismatches may cause problems? fearing i might be harming qemu vritualization somehow
f

fast-garage-66093

11/03/2022, 12:17 AM
Well, in general you should not use
limactl
to interact with the RD instance, but it is ok if you know what you are doing, and are careful. E.g. you cannot use
limactl start
on the RD instance and expect it to start up the same way it would as if RD controlled it.
How do you detect the CPU mismatch?
c

clean-pager-20838

11/03/2022, 12:17 AM
good to know! i'm just probing things with limactl
i compared
/proc/cpu
on the host and inside
rdctl shell
f

fast-garage-66093

11/03/2022, 12:19 AM
idk, if you run
ps -ef | grep qemu
, do you see that it runs with
-cpu host
?
It should, and in that case any discrepancy would be due to whatever qemu is doing on your machine
Since you have
/proc/cpu
on the host, I assume you are on Linux. Are you using a recent version of
qemu
?
c

clean-pager-20838

11/03/2022, 12:20 AM
emu-system-x86_64 -m 16384 -cpu host -machine q35,accel=kvm -smp 6,sockets=1,cores=6,threads=1
no :( stuck on an old ubuntu version
Copy code
QEMU emulator version 4.2.1 (Debian 1:4.2-3ubuntu6.23)
that's from 2019 i guess. ubuntu 20.04 is the standard enterprise image we can use
f

fast-garage-66093

11/03/2022, 12:22 AM
The command looks fine; so I don't know if there is anything else to do if you are stuck with that version of qemu
Note that I don't know if a more recent version performs better
c

clean-pager-20838

11/03/2022, 12:23 AM
true. i will try to compile a bleeding edge one. worth the shot. if that is the solution i can think how to publish it to other devs
👍 1
thank you
f

fast-garage-66093

11/03/2022, 12:24 AM
You are welcome
5 Views