Wifi slow, is it expected?

Hi guys,

while copying large files via WIFI I realized that the transfer speeds I am getting are much slower from what I know from my windows laptop. There I was able to get speeds up to 70MB/s, whereas with QubesOS on a Novacustom v54 the max speed I get is 10-15MB/s. Wondering if that can be related to the wifi card , but I explicitly choose the more expensive Wifi 7 card and was assuming that it should reach same or even higher speed than my old laptop, which I own for > 2 years now. Here is the pci info from sys-net and dom0:

My sys-net is based on fedora 42. Is there anything I can configure differently from a configuration perspective? My wifi equipment is from Ubiquiti so I don’t assume it to be the problem.

Things I tried so far:

  • assign pcores to sys-net
  • assign sys-net as direct netvm (to rule out firewall or similar issues)

Any hints?

Thanks!

2 Likes

Further debugging:

  1. Have you tried running speedtest or some other test directly from sys-net and from an AppVM?
  2. Have you tried this on another Linux distro?
1 Like

@Atrate

  1. speedtest seems to be specific to internet connection. I am talking about LAN via Wifi. Basically copying a large file from my NAS to laptop and vice versa
  2. no, this is something I did not do. Would need to boot a live cd from USB and check the speed there, right?
1 Like

Test speed with iperf
https://software.es.net/iperf/

2 Likes

ok, I have tested with iperf3:

This reflects kind of the speeds I am getting. Would the next step be to test with another linux distribution? What would be a good choice here?

1 Like

Not sure if this applies to you. But, had a similar issue on my WiFi. I was getting about half the download and 1/3 the upload speeds I was expecting.

For me I opened terminals in both sys-firewall and sys-net, then ran top in both terminals. At the same time I ran a speed test in an AppVM. The processor was basically loafing (never more than 5%). But, I was using swap memory. I kept increasing the memory in settings then restarting until my swap memory usage was zero. For me that mean 2Gb in sys-firewall, and 925mb in sys-net.

Once I increased the memory and restarted the sys-firewall and sys-net qubes I starting getting the full WiFi throughput expected.

1 Like

You gave 2GB to sys-firewall? That’s something; my time around the forums got me the impression that if the sys-firewall’s template is minimal, it can do well with 1 GB (and even less) RAM.


But I can also say I am suspicious of the WiFi performance under QubesOS 4.2.4. Whenever I am on wifi, the qubes use a lot more CPU than when I am using ethernet. Maybe related, maybe not.

I have 64Gb or ram, and never really use more than 50Gb. So, from my perspective allocating extra ram is not material. (At least in how I currently use Qubes) I really didn’t try with less. Just set the max at 2Gb and it worked.

Also, I set all the sys-* qubes to 1 VCPU. (I think the default is 2??)

1 Like

Yeah, I have mine set to following values:

sys-net: 1050 MB initial memory (excluded from memory balancing) with 1 vCPU
sys-firewall: 1050 MB initial memory (excluded from memory balancing) with 1 vCPU

So, your own experimentation showed that 2 GB is when swapping stops; I might try that value with mine as well.

I use a lot of VMs and with the GUI disabled for sys-firewall I do completely fine with just 400MB of RAM. If you want to prevent a qube from using swap, set swappiness to 10 (low swapping) or 1 (almost no swapping if it can be avoided)

1 Like

Ballpark figures? I usually have 10 to 15 qubes running concurrently. That’s why I thought I should increase the RAM for sys-net and sys-firewall.

If you installed WiFi 7 wifi card in your computer you wont get those speeds if your WiFi router supports WiFi 7.

If you are using a custom DNS or a DNS that isn’t on your router you def would want to adjust the MTU size till you get less packet loss and optimization. I had an issue with speed and it was Quad9 was not optimized with MTU.

Similar amounts to you, sometimes more, but not by a lot.

1 Like

Thanks. I didn’t think of reducing the swapppiness. Just reduced to 20 (from 60) and cut the ram to 1 GB. Ram is split about 1/3 each for used, buffer/cache, and free. And, swap usage is still zero. Could probably fine tune more if I used a min qube. But, that is for another day.

I have checked the CPU and memory situation during iperf. CPU idle (1%), swap using 70 MB (out of 1024MB), memory 490MB (out of 900MB). So for me it is not a resource issue.

My old laptop has a wifi 6 card and was able to provide speeds >60MB/s. My new laptop has a wifi 7 card and provides speed of 10-15MB/s on same wifi :slight_smile:

Will check suggestion with MTU

1 Like

Tried different MTU sizes, no difference. In fact the speed was even slower with smaller MTU sizes.

I have started a discussion on the Novacustom forum QubesOS wifi speed - NovaCustom Community. Maybe there is a known issue related to that laptop/wifi card.

Ok guys, I know where the problem is… I was testing the file transfer in Thunar (File Manager), which uses gvfs to mount smb shares. This seems to be generally slow. After mounting the folder directly and accessing files it was much faster and I was able to achieve 40+MB/s.

Thank you all for reading and trying to help!