Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Internet is incredibly slow and unstable
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
raid
n00b
n00b


Joined: 13 Jul 2023
Posts: 12

PostPosted: Fri Apr 19, 2024 8:01 pm    Post subject: Internet is incredibly slow and unstable Reply with quote

Especially on Gentoo, my internet is very unstable. Sometimes it beings faster but generally slow. It downloads nearly 1 MB/sec but often on 30-40 KB/sec. I tested it on Mint-Windows and it was faster than Gentoo. What can I do about that?

Last edited by raid on Sat Apr 20, 2024 1:55 pm; edited 2 times in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54276
Location: 56N 3W

PostPosted: Fri Apr 19, 2024 8:49 pm    Post subject: Reply with quote

raid,

With the help here you fix it. First we need more information

As its OK on mint but not on Gentoo the finger points to your Gentoo install or configuration. Lets try to look at the differences.
Post the following far both installs please.

Code:
lspci -nnk
They should be identical. Differences need to be investigated.

The whole of dmesg. That's big, so its a pastebin each.
We are looking for networking starting.

Describe how you configure, build and install your Gentoo kernel.
If you use a ready made kernel which one?

Describe how you connect to the internet. Wired/Wifi ...

Post the output of
Code:
route -n
form both Mint and Gentoo.

Code:
ifconfig
from both would be good too.
Of particular interest is the error report
Code:
        RX packets 198688  bytes 134309823 (128.0 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 129591  bytes 17296657 (16.4 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


This should give us a few pointers.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
raid
n00b
n00b


Joined: 13 Jul 2023
Posts: 12

PostPosted: Sat Apr 20, 2024 1:51 pm    Post subject: Reply with quote

Hi NeddySeagoon,

Thank you for reply. My kernel is Xanmod Kernel which manually configurated. I'm using wifi for connecting to modem.

Here is the lspci results:

Gentoo:
Code:
02:00.0 Network controller [0280]: Intel Corporation Wireless 7265 [8086:095a] (rev 59)
   Subsystem: Intel Corporation Dual Band Wireless-AC 7265 [Stone Peak 2 AC] [8086:5010]
   Kernel driver in use: iwlwifi
   Kernel modules: iwlwifi

Mint:
Code:
02:00.0 Network controller [0280]: Intel Corporation Wireless 7265 [8086:095a] (rev 59)
   Subsystem: Intel Corporation Dual Band Wireless-AC 7265 [8086:5010]
   Kernel driver in use: iwlwifi
   Kernel modules: iwlwifi


Also you can see the full log here:
Gentoo: https://bpa.st/HUEQ
Mint: https://bpa.st/B7BQ

Here is the route -n results:

Gentoo:
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.1.1     0.0.0.0         UG    600    0        0 wlp2s0
192.168.1.0     0.0.0.0         255.255.255.0   U     600    0        0 wlp2s0

Mint:
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.1.1     0.0.0.0         UG    600    0        0 wlp2s0
10.0.3.0        0.0.0.0         255.255.255.0   U     0      0        0 lxcbr0
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 wlp2s0
192.168.1.0     0.0.0.0         255.255.255.0   U     600    0        0 wlp2s0


And ifconfig results:

Gentoo:
Code:
enp1s0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 2c:f0:5d:e4:ef:3d  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 34  bytes 2692 (2.6 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 34  bytes 2692 (2.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.38  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::67b1:2acd:649b:f41a  prefixlen 64  scopeid 0x20<link>
        ether 5c:e4:2a:09:71:da  txqueuelen 1000  (Ethernet)
        RX packets 7054  bytes 8126457 (7.7 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 5205  bytes 689913 (673.7 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Mint:
Code:
enp1s0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 2c:f0:5d:e4:ef:3d  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 27  bytes 2581 (2.5 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 27  bytes 2581 (2.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 
lxcbr0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 10.0.3.1  netmask 255.255.255.0  broadcast 10.0.3.255
        ether 00:16:3e:00:00:00  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 
wlp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.38  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::460e:cd81:52d:545c  prefixlen 64  scopeid 0x20<link>
        ether 5c:e4:2a:09:71:da  txqueuelen 1000  (Ethernet)
        RX packets 40469  bytes 54994237 (52.4 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 27596  bytes 2982642 (2.8 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4189
Location: Bavaria

PostPosted: Sat Apr 20, 2024 2:02 pm    Post subject: Reply with quote

I would like to look into your kernel .config; and that together with the output of "dmesg" (after booting Gentoo).

Please use wgetpaste for both files: https://wiki.gentoo.org/wiki/Wgetpaste

(Because you have no errors it could be a problem with regulator db; I also want check some general kernel settings)
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
raid
n00b
n00b


Joined: 13 Jul 2023
Posts: 12

PostPosted: Sat Apr 20, 2024 3:13 pm    Post subject: Reply with quote

Here is it:

Dmesg: http://0x0.st/Xo4R.txt
Config: http://0x0.st/Xo45.txt
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54276
Location: 56N 3W

PostPosted: Sat Apr 20, 2024 3:31 pm    Post subject: Reply with quote

raid,

Code:
CONFIG_IWLWIFI_DEBUG=y
CONFIG_IWLWIFI_DEVICE_TRACING=y


Kernel DEBUG options are allowed to interfere or even prevent normal device operation so should not be selected.
Turn those options off and rebuild your kernel.

You way want to wait for pietinger to reply too. He way have more to add about other aspects of the kernel that I have not had time to check.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
raid
n00b
n00b


Joined: 13 Jul 2023
Posts: 12

PostPosted: Sat Apr 20, 2024 3:45 pm    Post subject: Reply with quote

NeddySeagoon wrote:
raid,

Code:
CONFIG_IWLWIFI_DEBUG=y
CONFIG_IWLWIFI_DEVICE_TRACING=y


Kernel DEBUG options are allowed to interfere or even prevent normal device operation so should not be selected.
Turn those options off and rebuild your kernel.

You way want to wait for pietinger to reply too. He way have more to add about other aspects of the kernel that I have not had time to check.


Thanks for that, I'll try.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4189
Location: Bavaria

PostPosted: Sat Apr 20, 2024 4:18 pm    Post subject: Reply with quote

My first question is: Have you emerged net-wireless/wireless-regdb ? (If not please do)

Of course always listen to @Neddy ;-)

These are just notes:
Code:
[    0.000000] DMI: Micro-Star International Co., Ltd. MS-7C09/H310M PRO-VDH PLUS (MS-7C09), BIOS 1.70 11/30/2020

[    0.065694] Memory: 16181492K/16644392K available

[    0.093361] smpboot: CPU0: Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz (family: 0x6, model: 0x9e, stepping: 0xb)

[    0.915838] intel_pstate: HWP enabled

[    9.580526] vboxdrv: loading out-of-tree module taints kernel.
[    9.591986] vboxdrv: Found 4 processor cores/threads

[   18.385962] warning: `iwconfig' uses wireless extensions which will stop working for Wi-Fi 7 hardware; use nl80211

[   25.102046] wlp2s0: 80 MHz not supported, disabling VHT


My remarks:
Code:
1.
# CONFIG_X86_INTEL_LPSS is not set
2.
CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL is not set
3.
CONFIG_X86_ACPI_CPUFREQ=y
4.
# CONFIG_TRANSPARENT_HUGEPAGE is not set
# CONFIG_LRU_GEN is not set
5.
# CONFIG_NL80211_TESTMODE is not set
6.
CONFIG_I2C_I801=y
CONFIG_I2C_ISCH=y
CONFIG_I2C_ISMT=y
CONFIG_I2C_PIIX4=y
# CONFIG_PINCTRL is not set
7.
# CONFIG_LPC_ICH is not set
CONFIG_LPC_SCH=y
# CONFIG_MFD_INTEL_LPSS_ACPI is not set
# CONFIG_MFD_INTEL_LPSS_PCI is not set
8.
# CONFIG_USB_UAS is not set
9.
# CONFIG_INTEL_IDMA64 is not set
10.
# CONFIG_IRQ_REMAP is not set
11.
CONFIG_DEBUG_PREEMPT=y

1. Enable it; without every setting in (7) is useless
2. Please read: https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_Configuring_Kernel_Version_6.6#Part_3_-_Must_Haves
3. You have HWP enabled and dont need it (but it doesnt hurt)
4. I recommend it for more performance; it is in chapter 2 of above link
5. Maybe enable it ... and check out new dmesg
6. You will need only I801 ... but without PINCTRL it is useless ... but if you dont miss anything (soem sensors using i2c) then it doesnt matter
7. You probably will NOT need SCH ... but ICH ... and one of the others ... enabling all 3 gets you on a safe side (see also my remark below *)
8. Enable it
9. Please read (*)
10 Enable it !
11. This was a default in older default kernel configurations. Now it is not a default anymore ... you might disable it because you also have no hardening configurations.

*) My recommendation is always the same when doing a manual kernel configuration: Boot with an UbuntuLiveCD and check all modules with "lsmod" ... If you dont find IDMA64 then your system does not use it ... the same with PINCTRL and MFD (be aware: INTEL_LPSS is configurred statically into the kernel in most distributions).
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
raid
n00b
n00b


Joined: 13 Jul 2023
Posts: 12

PostPosted: Sat Apr 20, 2024 7:30 pm    Post subject: Reply with quote

Emerged wireless-regdb. I configured the kernel according your suggestions. It's stable for now. I'll see what will happen in future. Thank you for all replies.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum