LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-26-2024, 06:39 PM   #16
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,448
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553

Maybe this might help:

https://blog.kylemanna.com/hardware/...s-e1000e-i219/

Try plugging your network cable into the other socket and reboot.
 
Old 03-27-2024, 01:57 AM   #17
henca
Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 959

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Quote:
Originally Posted by dimm0k View Post
I'm getting decent LAN speeds
Code:
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec   113 MBytes   944 Mbits/sec    0    247 KBytes       
[  5]   1.00-2.00   sec   111 MBytes   935 Mbits/sec    0    247 KBytes       
[  5]   2.00-3.00   sec   111 MBytes   932 Mbits/sec    0    247 KBytes       
[  5]   3.00-4.00   sec   112 MBytes   935 Mbits/sec    0    247 KBytes       
[  5]   4.00-5.00   sec   111 MBytes   934 Mbits/sec    0    247 KBytes       
[  5]   5.00-6.00   sec   112 MBytes   936 Mbits/sec    0    247 KBytes       
[  5]   6.00-7.00   sec   111 MBytes   934 Mbits/sec    0    247 KBytes       
[  5]   7.00-8.00   sec   111 MBytes   934 Mbits/sec    0    247 KBytes       
[  5]   8.00-9.00   sec   111 MBytes   931 Mbits/sec    0    247 KBytes       
[  5]   9.00-10.00  sec   112 MBytes   938 Mbits/sec    0    247 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec  1.09 GBytes   935 Mbits/sec    0             sender
[  5]   0.00-10.00  sec  1.09 GBytes   934 Mbits/sec                  receiver


Code:
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.8.42  netmask 255.255.255.0  broadcast 192.168.8.255
        inet6 fe80::c6d2:28a6:5a68:3b54  prefixlen 64  scopeid 0x20<link>
        ether 38:d5:47:af:45:30  txqueuelen 1000  (Ethernet)
        RX packets 226109  bytes 88800169 (84.6 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1658861  bytes 2457711326 (2.2 GiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 20  memory 0xdc100000-dc120000
So you are using eth0 which probably is a wired connection (can be verified by studying the output from dmesg) and you are getting as good network speed as can be expected on a 1 Gb/s network connection.

My guess is that your complaint might be related to your internet connection. Do you know for sure that you have bandwidth problems with internet or could it be that you have latency problems, maybe related to slow DNS lookups?

If you are waiting long for something like a DNS lookup that can be shown in the output of:

Code:
strace -f -t -T ping -c 1 www.google.com
regards Henrik
 
Old 03-28-2024, 02:14 PM   #18
dimm0k
Member
 
Registered: May 2008
Location: Brooklyn ZOO
Distribution: Slackware64 14.2
Posts: 564

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by rkelsen View Post
Maybe this might help:

https://blog.kylemanna.com/hardware/...s-e1000e-i219/

Try plugging your network cable into the other socket and reboot.
I've tried using both ethernet connections available to this desktop, but they are both showing the same slow results

Quote:
Originally Posted by henca View Post
So you are using eth0 which probably is a wired connection (can be verified by studying the output from dmesg) and you are getting as good network speed as can be expected on a 1 Gb/s network connection.

My guess is that your complaint might be related to your internet connection. Do you know for sure that you have bandwidth problems with internet or could it be that you have latency problems, maybe related to slow DNS lookups?

If you are waiting long for something like a DNS lookup that can be shown in the output of:

Code:
strace -f -t -T ping -c 1 www.google.com
regards Henrik
Code:
PING www.google.com (142.250.81.228) 56(84) bytes of data.
64 bytes from lga25s74-in-f4.1e100.net (142.250.81.228): icmp_seq=1 ttl=58 time=19.1 ms

--- www.google.com ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 19.094/19.094/19.094/0.000 ms
Seems like okay speeds for the DNS lookup. I know for certain the internet connection allowed for this device is being throttled somewhere, but the internet connection itself is fine. Other connected devices to the router do not have this problem.

The only thing I can think of is this desktop is connected to a VLAN, something I set up a couple of months ago. The router is a mikrotik that's handling the VLANs and so far it's worked well except for this case. The desktop is wired into a dumb Netgear switch that is not capable of handling VLANs so the router is marking the port this switch is connected to as untagged. Does this shed any light to anyone providing assistance in the matter? From my understanding Linux is pretty strict when it comes to VLANs and I can't help but wonder if this is the issue. Being that the port this desktop and switch is connected to is untagged I should not need to make any changes in Linux to be able to use this port right?
 
Old 03-28-2024, 03:44 PM   #19
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,785

Rep: Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464
What happens if you change MTU to 1360?
 
Old 03-28-2024, 05:01 PM   #20
jkh2cpu
Member
 
Registered: Feb 2014
Location: Michigan, USA
Distribution: slackware
Posts: 281

Rep: Reputation: 60
Hmmm. If there is a vlan involved in your network, as root run iwconfig. Look for PowerManagement. It should be off. If it is on, you'll need to add something in /etc/NetworkManager/conf.d that runs this bit of script:

# File to be place under /etc/NetworkManager/conf.d
[connection]
# Values are 0 (use default), 1 (ignore/don't touch), 2 (disable) or 3 (enable).
wifi.powersave = 2

I ran into this problem a few weeks ago about the time that I had to switch to wifi to connect my network boxes at home, and when I did that, a ping time to something on the network ranged from 45 to over 200 ms, which it really bad. A bit of sluthing on the net found the code snippet.

HTH.
 
Old 03-29-2024, 06:03 AM   #21
henca
Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 959

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Quote:
Originally Posted by henca View Post
Code:
strace -f -t -T ping -c 1 www.google.com
Quote:
Originally Posted by dimm0k View Post
Code:
PING www.google.com (142.250.81.228) 56(84) bytes of data.
64 bytes from lga25s74-in-f4.1e100.net (142.250.81.228): icmp_seq=1 ttl=58 time=19.1 ms

--- www.google.com ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 19.094/19.094/19.094/0.000 ms
Seems like okay speeds for the DNS lookup.
The above shows that once you have done the DNS lookup you get a decent latency. However, the interesting part to see would have been how long time it would take to perform the DNS lookup which the (rather big) output of strace would have shown. When I run the suggested command on my system I get:

Code:
bash-4.3# strace -f -t -T ping -c 1 www.google.com
11:34:09 execve("/bin/ping", ["ping", "-c", "1", "www.google.com"], [/* 70 vars */]) = 0 <0.000166>
11:34:09 brk(NULL)                      = 0xbd0000 <0.000046>
11:34:09 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f403985d000 <0.000006>
11:34:09 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) <0.000005>
11:34:09 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 <0.000005>
11:34:09 fstat(3, {st_mode=S_IFREG|0644, st_size=414223, ...}) = 0 <0.000004>
11:34:09 mmap(NULL, 414223, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f40397f7000 <0.000005>
11:34:09 close(3)                       = 0 <0.000004>
11:34:09 open("/lib64/libcap.so.2", O_RDONLY|O_CLOEXEC) = 3 <0.000005>
11:34:09 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\30\0\0\0\0\0\0"..., 832) = 832 <0.000004>
11:34:09 fstat(3, {st_mode=S_IFREG|0755, st_size=20216, ...}) = 0 <0.000004>
11:34:09 mmap(NULL, 2115496, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f4039434000 <0.000004>
11:34:09 mprotect(0x7f4039438000, 2097152, PROT_NONE) = 0 <0.000006>
11:34:09 mmap(0x7f4039638000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4000) = 0x7f4039638000 <0.000005>
11:34:09 close(3)                       = 0 <0.000004>
11:34:09 open("/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 <0.000005>
11:34:09 read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\360\10\2\0\0\0\0\0"..., 832) = 832 <0.000004>
11:34:09 fstat(3, {st_mode=S_IFREG|0755, st_size=2076824, ...}) = 0 <0.000004>
11:34:09 mmap(NULL, 3967456, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f403906b000 <0.000005>
11:34:09 mprotect(0x7f403922b000, 2093056, PROT_NONE) = 0 <0.000006>
11:34:09 mmap(0x7f403942a000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1bf000) = 0x7f403942a000 <0.000006>
11:34:09 mmap(0x7f4039430000, 14816, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f4039430000 <0.000004>
11:34:09 close(3)                       = 0 <0.000004>
11:34:09 open("/lib64/libattr.so.1", O_RDONLY|O_CLOEXEC) = 3 <0.000005>
11:34:09 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@\23\0\0\0\0\0\0"..., 832) = 832 <0.000004>
11:34:09 fstat(3, {st_mode=S_IFREG|0755, st_size=17768, ...}) = 0 <0.000004>
11:34:09 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f40397f6000 <0.000004>
11:34:09 mmap(NULL, 2113048, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f4038e67000 <0.000005>
11:34:09 mprotect(0x7f4038e6b000, 2093056, PROT_NONE) = 0 <0.000006>
11:34:09 mmap(0x7f403906a000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7f403906a000 <0.000005>
11:34:09 close(3)                       = 0 <0.000004>
11:34:09 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f40397f5000 <0.000004>
11:34:09 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f40397f4000 <0.000004>
11:34:09 arch_prctl(ARCH_SET_FS, 0x7f40397f5700) = 0 <0.000012>
11:34:09 mprotect(0x7f403942a000, 16384, PROT_READ) = 0 <0.000006>
11:34:09 mprotect(0x7f403985e000, 4096, PROT_READ) = 0 <0.000006>
11:34:09 munmap(0x7f40397f7000, 414223) = 0 <0.000009>
11:34:09 brk(NULL)                      = 0xbd0000 <0.000004>
11:34:09 brk(0xbf1000)                  = 0xbf1000 <0.000005>
11:34:09 capget({_LINUX_CAPABILITY_VERSION_3, 0}, NULL) = 0 <0.000004>
11:34:09 capget({_LINUX_CAPABILITY_VERSION_3, 0}, {CAP_CHOWN|CAP_DAC_OVERRIDE|CAP_DAC_READ_SEARCH|CAP_FOWNER|CAP_FSETID|CAP_KILL|CAP_SETGID|CAP_SETUID|CAP_SETPCAP|CAP_LINUX_IMMUTABLE|CAP_NET_BIND_SERVICE|CAP_NET_BROADCAST|CAP_NET_ADMIN|CAP_NET_RAW|CAP_IPC_LOCK|CAP_IPC_OWNER|CAP_SYS_MODULE|CAP_SYS_RAWIO|CAP_SYS_CHROOT|CAP_SYS_PTRACE|CAP_SYS_PACCT|CAP_SYS_ADMIN|CAP_SYS_BOOT|CAP_SYS_NICE|CAP_SYS_RESOURCE|CAP_SYS_TIME|CAP_SYS_TTY_CONFIG|CAP_MKNOD|CAP_LEASE|CAP_AUDIT_WRITE|CAP_AUDIT_CONTROL|CAP_SETFCAP|CAP_MAC_OVERRIDE|CAP_MAC_ADMIN|CAP_SYSLOG|CAP_WAKE_ALARM|CAP_BLOCK_SUSPEND|CAP_AUDIT_READ, CAP_CHOWN|CAP_DAC_OVERRIDE|CAP_DAC_READ_SEARCH|CAP_FOWNER|CAP_FSETID|CAP_KILL|CAP_SETGID|CAP_SETUID|CAP_SETPCAP|CAP_LINUX_IMMUTABLE|CAP_NET_BIND_SERVICE|CAP_NET_BROADCAST|CAP_NET_ADMIN|CAP_NET_RAW|CAP_IPC_LOCK|CAP_IPC_OWNER|CAP_SYS_MODULE|CAP_SYS_RAWIO|CAP_SYS_CHROOT|CAP_SYS_PTRACE|CAP_SYS_PACCT|CAP_SYS_ADMIN|CAP_SYS_BOOT|CAP_SYS_NICE|CAP_SYS_RESOURCE|CAP_SYS_TIME|CAP_SYS_TTY_CONFIG|CAP_MKNOD|CAP_LEASE|CAP_AUDIT_WRITE|CAP_AUDIT_CONTROL|CAP_SETFCAP|CAP_MAC_OVERRIDE|CAP_MAC_ADMIN|CAP_SYSLOG|CAP_WAKE_ALARM|CAP_BLOCK_SUSPEND|CAP_AUDIT_READ, 0}) = 0 <0.000004>
11:34:09 capget({_LINUX_CAPABILITY_VERSION_3, 0}, NULL) = 0 <0.000004>
11:34:09 capset({_LINUX_CAPABILITY_VERSION_3, 0}, {0, CAP_NET_ADMIN|CAP_NET_RAW, 0}) = 0 <0.000004>
11:34:09 prctl(PR_SET_KEEPCAPS, 1)      = 0 <0.000004>
11:34:09 getuid()                       = 0 <0.000003>
11:34:09 setuid(0)                      = 0 <0.000004>
11:34:09 prctl(PR_SET_KEEPCAPS, 0)      = 0 <0.000004>
11:34:09 getuid()                       = 0 <0.000004>
11:34:09 geteuid()                      = 0 <0.000004>
11:34:09 capget({_LINUX_CAPABILITY_VERSION_3, 0}, NULL) = 0 <0.000004>
11:34:09 capget({_LINUX_CAPABILITY_VERSION_3, 0}, {0, CAP_NET_ADMIN|CAP_NET_RAW, 0}) = 0 <0.000004>
11:34:09 capset({_LINUX_CAPABILITY_VERSION_3, 0}, {CAP_NET_RAW, CAP_NET_ADMIN|CAP_NET_RAW, 0}) = 0 <0.000004>
11:34:09 socket(PF_INET, SOCK_RAW, IPPROTO_ICMP) = 3 <0.000008>
11:34:09 capget({_LINUX_CAPABILITY_VERSION_3, 0}, NULL) = 0 <0.000003>
11:34:09 capget({_LINUX_CAPABILITY_VERSION_3, 0}, {CAP_NET_RAW, CAP_NET_ADMIN|CAP_NET_RAW, 0}) = 0 <0.000004>
11:34:09 capset({_LINUX_CAPABILITY_VERSION_3, 0}, {0, CAP_NET_ADMIN|CAP_NET_RAW, 0}) = 0 <0.000004>
11:34:09 getpid()                       = 1070 <0.000004>
11:34:09 open("/etc/resolv.conf", O_RDONLY|O_CLOEXEC) = 4 <0.000006>
11:34:09 fstat(4, {st_mode=S_IFREG|0644, st_size=64, ...}) = 0 <0.000004>
11:34:09 read(4, "#search lkp.se\nnameserver 192.16"..., 4096) = 64 <0.000004>
11:34:09 read(4, "", 4096)              = 0 <0.000004>
11:34:09 close(4)                       = 0 <0.000004>
11:34:09 uname({sysname="Linux", nodename="nazgul", ...}) = 0 <0.000004>
11:34:09 socket(PF_LOCAL, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 4 <0.000005>
11:34:09 connect(4, {sa_family=AF_LOCAL, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory) <0.000006>
11:34:09 close(4)                       = 0 <0.000005>
11:34:09 socket(PF_LOCAL, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 4 <0.000004>
11:34:09 connect(4, {sa_family=AF_LOCAL, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory) <0.000005>
11:34:09 close(4)                       = 0 <0.000004>
11:34:09 open("/etc/nsswitch.conf", O_RDONLY|O_CLOEXEC) = 4 <0.000004>
11:34:09 fstat(4, {st_mode=S_IFREG|0644, st_size=1083, ...}) = 0 <0.000004>
11:34:09 read(4, "#\n# /etc/nsswitch.conf\n#\n# An ex"..., 4096) = 1083 <0.000004>
11:34:09 read(4, "", 4096)              = 0 <0.000004>
11:34:09 close(4)                       = 0 <0.000004>
11:34:09 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 4 <0.000004>
11:34:09 fstat(4, {st_mode=S_IFREG|0644, st_size=414223, ...}) = 0 <0.000004>
11:34:09 mmap(NULL, 414223, PROT_READ, MAP_PRIVATE, 4, 0) = 0x7f40397f7000 <0.000005>
11:34:09 close(4)                       = 0 <0.000004>
11:34:09 open("/lib64/libnss_files.so.2", O_RDONLY|O_CLOEXEC) = 4 <0.000005>
11:34:09 read(4, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P!\0\0\0\0\0\0"..., 832) = 832 <0.000004>
11:34:09 fstat(4, {st_mode=S_IFREG|0755, st_size=56056, ...}) = 0 <0.000003>
11:34:09 mmap(NULL, 2168600, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x7f4038c55000 <0.000005>
11:34:09 mprotect(0x7f4038c60000, 2093056, PROT_NONE) = 0 <0.000007>
11:34:09 mmap(0x7f4038e5f000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0xa000) = 0x7f4038e5f000 <0.000007>
11:34:09 mmap(0x7f4038e61000, 22296, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f4038e61000 <0.000005>
11:34:09 close(4)                       = 0 <0.000004>
11:34:09 mprotect(0x7f4038e5f000, 4096, PROT_READ) = 0 <0.000005>
11:34:09 munmap(0x7f40397f7000, 414223) = 0 <0.000008>
11:34:09 open("/etc/host.conf", O_RDONLY|O_CLOEXEC) = 4 <0.000005>
11:34:09 fstat(4, {st_mode=S_IFREG|0644, st_size=27, ...}) = 0 <0.000004>
11:34:09 read(4, "order hosts, bind\nmulti on\n", 4096) = 27 <0.000004>
11:34:09 read(4, "", 4096)              = 0 <0.000004>
11:34:09 close(4)                       = 0 <0.000004>
11:34:09 open("/etc/hosts", O_RDONLY|O_CLOEXEC) = 4 <0.000005>
11:34:09 fstat(4, {st_mode=S_IFREG|0644, st_size=712, ...}) = 0 <0.000004>
11:34:09 read(4, "#\n# hosts\t\tThis file describes a"..., 4096) = 712 <0.000003>
11:34:09 read(4, "", 4096)              = 0 <0.000004>
11:34:09 close(4)                       = 0 <0.000004>
11:34:09 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 4 <0.000005>
11:34:09 fstat(4, {st_mode=S_IFREG|0644, st_size=414223, ...}) = 0 <0.000004>
11:34:09 mmap(NULL, 414223, PROT_READ, MAP_PRIVATE, 4, 0) = 0x7f40397f7000 <0.000004>
11:34:09 close(4)                       = 0 <0.000004>
11:34:09 open("/lib64/libnss_dns.so.2", O_RDONLY|O_CLOEXEC) = 4 <0.000005>
11:34:09 read(4, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@\17\0\0\0\0\0\0"..., 832) = 832 <0.000004>
11:34:09 fstat(4, {st_mode=S_IFREG|0755, st_size=31048, ...}) = 0 <0.000003>
11:34:09 mmap(NULL, 2121960, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x7f4038a4e000 <0.000005>
11:34:09 mprotect(0x7f4038a53000, 2097152, PROT_NONE) = 0 <0.000006>
11:34:09 mmap(0x7f4038c53000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x5000) = 0x7f4038c53000 <0.000005>
11:34:09 close(4)                       = 0 <0.000004>
11:34:09 open("/lib64/libresolv.so.2", O_RDONLY|O_CLOEXEC) = 4 <0.000004>
11:34:09 read(4, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@9\0\0\0\0\0\0"..., 832) = 832 <0.000004>
11:34:09 fstat(4, {st_mode=S_IFREG|0755, st_size=113400, ...}) = 0 <0.000004>
11:34:09 mmap(NULL, 2206280, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x7f4038833000 <0.000005>
11:34:09 mprotect(0x7f403884a000, 2097152, PROT_NONE) = 0 <0.000006>
11:34:09 mmap(0x7f4038a4a000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x17000) = 0x7f4038a4a000 <0.000006>
11:34:09 mmap(0x7f4038a4c000, 6728, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f4038a4c000 <0.000005>
11:34:09 close(4)                       = 0 <0.000003>
11:34:09 mprotect(0x7f4038a4a000, 4096, PROT_READ) = 0 <0.000005>
11:34:09 mprotect(0x7f4038c53000, 4096, PROT_READ) = 0 <0.000005>
11:34:09 munmap(0x7f40397f7000, 414223) = 0 <0.000007>
11:34:09 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4 <0.000005>
11:34:09 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.43.3")}, 16) = 0 <0.000009>
11:34:09 poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}]) <0.000004>
11:34:09 sendto(4, "b\7\1\0\0\1\0\0\0\0\0\0\3www\6google\3com\0\0\1\0\1", 32, MSG_NOSIGNAL, NULL, 0) = 32 <0.000010>
11:34:09 poll([{fd=4, events=POLLIN}], 1, 5000) = 1 ([{fd=4, revents=POLLIN}]) <0.000441>
11:34:09 ioctl(4, FIONREAD, [296])      = 0 <0.000004>
11:34:09 recvfrom(4, "b\7\201\200\0\1\0\1\0\4\0\10\3www\6google\3com\0\0\1\0\1"..., 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.43.3")}, [16]) = 296 <0.000005>
11:34:09 close(4)                       = 0 <0.000006>
11:34:09 socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4 <0.000004>
11:34:09 connect(4, {sa_family=AF_INET, sin_port=htons(1025), sin_addr=inet_addr("172.217.21.164")}, 16) = 0 <0.000005>
11:34:09 getsockname(4, {sa_family=AF_INET, sin_port=htons(33440), sin_addr=inet_addr("192.168.43.9")}, [16]) = 0 <0.000004>
11:34:09 close(4)                       = 0 <0.000005>
11:34:09 setsockopt(3, SOL_RAW, ICMP_FILTER, ~(ICMP_ECHOREPLY|ICMP_DEST_UNREACH|ICMP_SOURCE_QUENCH|ICMP_REDIRECT|ICMP_TIME_EXCEEDED|ICMP_PARAMETERPROB), 4) = 0 <0.000005>
11:34:09 setsockopt(3, SOL_IP, IP_RECVERR, [1], 4) = 0 <0.000004>
11:34:09 setsockopt(3, SOL_SOCKET, SO_SNDBUF, [324], 4) = 0 <0.000004>
11:34:09 setsockopt(3, SOL_SOCKET, SO_RCVBUF, [65536], 4) = 0 <0.000004>
11:34:09 getsockopt(3, SOL_SOCKET, SO_RCVBUF, [131072], [4]) = 0 <0.000004>
11:34:09 fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 94), ...}) = 0 <0.000004>
11:34:09 write(1, "PING www.google.com (172.217.21."..., 59PING www.google.com (172.217.21.164) 56(84) bytes of data.
) = 59 <0.000005>
11:34:09 setsockopt(3, SOL_SOCKET, SO_TIMESTAMP, [1], 4) = 0 <0.000004>
11:34:09 setsockopt(3, SOL_SOCKET, SO_SNDTIMEO, "\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 16) = 0 <0.000004>
11:34:09 setsockopt(3, SOL_SOCKET, SO_RCVTIMEO, "\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 16) = 0 <0.000004>
11:34:09 rt_sigaction(SIGINT, {0x404430, [], SA_RESTORER|SA_INTERRUPT, 0x7f40390a0480}, NULL, 8) = 0 <0.000004>
11:34:09 rt_sigaction(SIGALRM, {0x404430, [], SA_RESTORER|SA_INTERRUPT, 0x7f40390a0480}, NULL, 8) = 0 <0.000004>
11:34:09 rt_sigaction(SIGQUIT, {0x404420, [], SA_RESTORER|SA_INTERRUPT, 0x7f40390a0480}, NULL, 8) = 0 <0.000004>
11:34:09 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 <0.000004>
11:34:09 ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0 <0.000004>
11:34:09 ioctl(1, TIOCGWINSZ, {ws_row=79, ws_col=166, ws_xpixel=1015, ws_ypixel=1031}) = 0 <0.000004>
11:34:09 sendmsg(3, {msg_name(16)={sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("172.217.21.164")}, msg_iov(1)=[{"\10\0\270\265\4.\0\1!\231\6f\0\0\0\0HI\f\0\0\0\0\0\20\21\22\23\24\25\26\27"..., 64}], msg_controllen=0, msg_flags=0}, 0) = 64 <0.000008>
11:34:09 setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={10, 0}}, NULL) = 0 <0.000004>
11:34:09 recvmsg(3, {msg_name(16)={sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("172.217.21.164")}, msg_iov(1)=[{"E`\0T\0\0\0\0r\1\232\32\254\331\25\244\300\250+\t\0\0\300\265\4.\0\1!\231\6f"..., 192}], msg_controllen=32, [{cmsg_len=32, cmsg_level=SOL_SOCKET, cmsg_type=0x1d /* SCM_??? */}], msg_flags=0}, 0) = 84 <0.004619>
11:34:09 open("/etc/hosts", O_RDONLY|O_CLOEXEC) = 4 <0.000006>
11:34:09 fstat(4, {st_mode=S_IFREG|0644, st_size=712, ...}) = 0 <0.000005>
11:34:09 read(4, "#\n# hosts\t\tThis file describes a"..., 4096) = 712 <0.000005>
11:34:09 read(4, "", 4096)              = 0 <0.000004>
11:34:09 close(4)                       = 0 <0.000005>
11:34:09 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4 <0.000007>
11:34:09 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.43.3")}, 16) = 0 <0.000007>
11:34:09 poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}]) <0.000004>
11:34:09 sendto(4, "xM\1\0\0\1\0\0\0\0\0\0\003164\00221\003217\003172\7in-a"..., 45, MSG_NOSIGNAL, NULL, 0) = 45 <0.000008>
11:34:09 poll([{fd=4, events=POLLIN}], 1, 5000) = 1 ([{fd=4, revents=POLLIN}]) <0.000709>
11:34:09 ioctl(4, FIONREAD, [498])      = 0 <0.000004>
11:34:09 recvfrom(4, "xM\201\200\0\1\0\2\0\r\0\10\003164\00221\003217\003172\7in-a"..., 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.43.3")}, [16]) = 498 <0.000004>
11:34:09 close(4)                       = 0 <0.000006>
11:34:09 write(1, "64 bytes from fra07s64-in-f164.1"..., 9164 bytes from fra07s64-in-f164.1e100.net (172.217.21.164): icmp_seq=1 ttl=114 time=4.61 ms
) = 91 <0.000006>
11:34:09 write(1, "\n", 1
)              = 1 <0.000005>
11:34:09 write(1, "--- www.google.com ping statisti"..., 39--- www.google.com ping statistics ---
) = 39 <0.000005>
11:34:09 write(1, "1 packets transmitted, 1 receive"..., 601 packets transmitted, 1 received, 0% packet loss, time 0ms
) = 60 <0.000005>
11:34:09 write(1, "rtt min/avg/max/mdev = 4.615/4.6"..., 50rtt min/avg/max/mdev = 4.615/4.615/4.615/0.000 ms
) = 50 <0.000005>
11:34:09 exit_group(0)                  = ?
11:34:09 +++ exited with 0 +++
bash-4.3# exit
In the example above I ran the command as root to be able to successfully perform the ping, the icmp in ping will not be allowed when run together with strace as a normal user. However, even when running as a normal user you will be able to see the time a DNS lookup takes. In my example above, the ping itself showed 4.6 ms which is rather decent and you get slightly worse results with your 19.1 ms.

The timestamps to the left above shows when each call was started, the times to the right show how long time each call took. If so you wish, you can have better resolution on the timestamps to the right if you run "strace -tt" instead of "strace -t".

At row 99 above you can see that my system connects to my internal caching DNS server 192.168.43.3 and that only took 0.000009 seconds.
At row 101 a question about www.google.com is sent to the DNS server, sending that question took 0.000010 seconds.
At row 102 a reply is received, getting that reply took 0.000441 seconds.

I repeat those rows again to make it easier to read:

Code:
11:34:09 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.43.3")}, 16) = 0 <0.000009>
11:34:09 poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}]) <0.000004>
11:34:09 sendto(4, "b\7\1\0\0\1\0\0\0\0\0\0\3www\6google\3com\0\0\1\0\1", 32, MSG_NOSIGNAL, NULL, 0) = 32 <0.000010>
11:34:09 poll([{fd=4, events=POLLIN}], 1, 5000) = 1 ([{fd=4, revents=POLLIN}]) <0.000441>



If you want to know why the ping package takes longer time for you traceroute is a good command:

Code:
nazgul:~> traceroute www.google.com
traceroute to www.google.com (172.217.21.164), 30 hops max, 60 byte packets
 1  trollet.lkp.se (192.168.43.1)  0.217 ms  0.259 ms  0.257 ms
 2  dd-wrt (192.168.67.1)  0.587 ms  0.816 ms  0.972 ms
 3  10.4.255.252 (10.4.255.252)  2.832 ms  3.225 ms  3.224 ms
 4  10.2.253.1 (10.2.253.1)  2.843 ms  2.888 ms  2.934 ms
 5  10.1.254.245 (10.1.254.245)  3.274 ms  3.273 ms  3.323 ms
 6  62.119.101.241 (62.119.101.241)  3.369 ms  3.097 ms  3.135 ms
 7  ti3163c360-ae67-0.ti.telenor.net (146.172.20.250)  5.715 ms  3.922 ms  4.208 ms
 8  ti3002b400-ae3-0.ti.telenor.net (146.172.105.57)  4.383 ms  4.384 ms  4.430 ms
 9  148.122.10.54 (148.122.10.54)  4.990 ms  5.109 ms  5.162 ms
10  * * *
11  142.251.48.38 (142.251.48.38)  7.749 ms 142.251.48.40 (142.251.48.40)  5.948 ms 142.251.65.80 (142.251.65.80)  6.864 ms
12  142.250.56.92 (142.250.56.92)  5.940 ms 108.170.233.10 (108.170.233.10)  4.963 ms 142.250.56.92 (142.250.56.92)  4.468 ms
13  192.178.73.203 (192.178.73.203)  5.852 ms  5.900 ms 142.251.250.251 (142.251.250.251)  4.525 ms
14  fra07s64-in-f164.1e100.net (172.217.21.164)  4.994 ms 108.170.233.41 (108.170.233.41)  6.192 ms arn11s03-in-f4.1e100.net (172.217.21.164)  5.163 ms
In my case above I can see that the big time addition (3.224 ms) is at my fibre connection between my outer firewall (dd-wrt) and my ISP internal network (10.4.255.252).

Could your VLAN configuration be a problem? Perhaps if you have configured your /etc/resolv.conf to use a DNS server on another VLAN which you are unable to reach. Any unreachable DNS server listed in /etc/resolv.conf will make DNS lookups slower.

regards Henrik
 
Old 04-01-2024, 05:11 PM   #22
dimm0k
Member
 
Registered: May 2008
Location: Brooklyn ZOO
Distribution: Slackware64 14.2
Posts: 564

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by Petri Kaukasoina View Post
What happens if you change MTU to 1360?
not much of a difference with this change unfortunately

Quote:
Originally Posted by jkh2cpu View Post
Hmmm. If there is a vlan involved in your network, as root run iwconfig. Look for PowerManagement. It should be off. If it is on, you'll need to add something in /etc/NetworkManager/conf.d that runs this bit of script:

# File to be place under /etc/NetworkManager/conf.d
[connection]
# Values are 0 (use default), 1 (ignore/don't touch), 2 (disable) or 3 (enable).
wifi.powersave = 2

I ran into this problem a few weeks ago about the time that I had to switch to wifi to connect my network boxes at home, and when I did that, a ping time to something on the network ranged from 45 to over 200 ms, which it really bad. A bit of sluthing on the net found the code snippet.

HTH.
unfortunately my WiFi NIC is not even showing up - another mystery I'll have to look into solving once I get this wired issue resolved.

Quote:
Originally Posted by henca View Post
The above shows that once you have done the DNS lookup you get a decent latency. However, the interesting part to see would have been how long time it would take to perform the DNS lookup which the (rather big) output of strace would have shown. When I run the suggested command on my system I get:

Code:
bash-4.3# strace -f -t -T ping -c 1 www.google.com
11:34:09 execve("/bin/ping", ["ping", "-c", "1", "www.google.com"], [/* 70 vars */]) = 0 <0.000166>
11:34:09 brk(NULL)                      = 0xbd0000 <0.000046>
11:34:09 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f403985d000 <0.000006>
11:34:09 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) <0.000005>
11:34:09 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 <0.000005>
11:34:09 fstat(3, {st_mode=S_IFREG|0644, st_size=414223, ...}) = 0 <0.000004>
11:34:09 mmap(NULL, 414223, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f40397f7000 <0.000005>
11:34:09 close(3)                       = 0 <0.000004>
11:34:09 open("/lib64/libcap.so.2", O_RDONLY|O_CLOEXEC) = 3 <0.000005>
11:34:09 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\30\0\0\0\0\0\0"..., 832) = 832 <0.000004>
11:34:09 fstat(3, {st_mode=S_IFREG|0755, st_size=20216, ...}) = 0 <0.000004>
11:34:09 mmap(NULL, 2115496, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f4039434000 <0.000004>
11:34:09 mprotect(0x7f4039438000, 2097152, PROT_NONE) = 0 <0.000006>
11:34:09 mmap(0x7f4039638000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4000) = 0x7f4039638000 <0.000005>
11:34:09 close(3)                       = 0 <0.000004>
11:34:09 open("/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 <0.000005>
11:34:09 read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\360\10\2\0\0\0\0\0"..., 832) = 832 <0.000004>
11:34:09 fstat(3, {st_mode=S_IFREG|0755, st_size=2076824, ...}) = 0 <0.000004>
11:34:09 mmap(NULL, 3967456, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f403906b000 <0.000005>
11:34:09 mprotect(0x7f403922b000, 2093056, PROT_NONE) = 0 <0.000006>
11:34:09 mmap(0x7f403942a000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1bf000) = 0x7f403942a000 <0.000006>
11:34:09 mmap(0x7f4039430000, 14816, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f4039430000 <0.000004>
11:34:09 close(3)                       = 0 <0.000004>
11:34:09 open("/lib64/libattr.so.1", O_RDONLY|O_CLOEXEC) = 3 <0.000005>
11:34:09 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@\23\0\0\0\0\0\0"..., 832) = 832 <0.000004>
11:34:09 fstat(3, {st_mode=S_IFREG|0755, st_size=17768, ...}) = 0 <0.000004>
11:34:09 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f40397f6000 <0.000004>
11:34:09 mmap(NULL, 2113048, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f4038e67000 <0.000005>
11:34:09 mprotect(0x7f4038e6b000, 2093056, PROT_NONE) = 0 <0.000006>
11:34:09 mmap(0x7f403906a000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7f403906a000 <0.000005>
11:34:09 close(3)                       = 0 <0.000004>
11:34:09 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f40397f5000 <0.000004>
11:34:09 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f40397f4000 <0.000004>
11:34:09 arch_prctl(ARCH_SET_FS, 0x7f40397f5700) = 0 <0.000012>
11:34:09 mprotect(0x7f403942a000, 16384, PROT_READ) = 0 <0.000006>
11:34:09 mprotect(0x7f403985e000, 4096, PROT_READ) = 0 <0.000006>
11:34:09 munmap(0x7f40397f7000, 414223) = 0 <0.000009>
11:34:09 brk(NULL)                      = 0xbd0000 <0.000004>
11:34:09 brk(0xbf1000)                  = 0xbf1000 <0.000005>
11:34:09 capget({_LINUX_CAPABILITY_VERSION_3, 0}, NULL) = 0 <0.000004>
11:34:09 capget({_LINUX_CAPABILITY_VERSION_3, 0}, {CAP_CHOWN|CAP_DAC_OVERRIDE|CAP_DAC_READ_SEARCH|CAP_FOWNER|CAP_FSETID|CAP_KILL|CAP_SETGID|CAP_SETUID|CAP_SETPCAP|CAP_LINUX_IMMUTABLE|CAP_NET_BIND_SERVICE|CAP_NET_BROADCAST|CAP_NET_ADMIN|CAP_NET_RAW|CAP_IPC_LOCK|CAP_IPC_OWNER|CAP_SYS_MODULE|CAP_SYS_RAWIO|CAP_SYS_CHROOT|CAP_SYS_PTRACE|CAP_SYS_PACCT|CAP_SYS_ADMIN|CAP_SYS_BOOT|CAP_SYS_NICE|CAP_SYS_RESOURCE|CAP_SYS_TIME|CAP_SYS_TTY_CONFIG|CAP_MKNOD|CAP_LEASE|CAP_AUDIT_WRITE|CAP_AUDIT_CONTROL|CAP_SETFCAP|CAP_MAC_OVERRIDE|CAP_MAC_ADMIN|CAP_SYSLOG|CAP_WAKE_ALARM|CAP_BLOCK_SUSPEND|CAP_AUDIT_READ, CAP_CHOWN|CAP_DAC_OVERRIDE|CAP_DAC_READ_SEARCH|CAP_FOWNER|CAP_FSETID|CAP_KILL|CAP_SETGID|CAP_SETUID|CAP_SETPCAP|CAP_LINUX_IMMUTABLE|CAP_NET_BIND_SERVICE|CAP_NET_BROADCAST|CAP_NET_ADMIN|CAP_NET_RAW|CAP_IPC_LOCK|CAP_IPC_OWNER|CAP_SYS_MODULE|CAP_SYS_RAWIO|CAP_SYS_CHROOT|CAP_SYS_PTRACE|CAP_SYS_PACCT|CAP_SYS_ADMIN|CAP_SYS_BOOT|CAP_SYS_NICE|CAP_SYS_RESOURCE|CAP_SYS_TIME|CAP_SYS_TTY_CONFIG|CAP_MKNOD|CAP_LEASE|CAP_AUDIT_WRITE|CAP_AUDIT_CONTROL|CAP_SETFCAP|CAP_MAC_OVERRIDE|CAP_MAC_ADMIN|CAP_SYSLOG|CAP_WAKE_ALARM|CAP_BLOCK_SUSPEND|CAP_AUDIT_READ, 0}) = 0 <0.000004>
11:34:09 capget({_LINUX_CAPABILITY_VERSION_3, 0}, NULL) = 0 <0.000004>
11:34:09 capset({_LINUX_CAPABILITY_VERSION_3, 0}, {0, CAP_NET_ADMIN|CAP_NET_RAW, 0}) = 0 <0.000004>
11:34:09 prctl(PR_SET_KEEPCAPS, 1)      = 0 <0.000004>
11:34:09 getuid()                       = 0 <0.000003>
11:34:09 setuid(0)                      = 0 <0.000004>
11:34:09 prctl(PR_SET_KEEPCAPS, 0)      = 0 <0.000004>
11:34:09 getuid()                       = 0 <0.000004>
11:34:09 geteuid()                      = 0 <0.000004>
11:34:09 capget({_LINUX_CAPABILITY_VERSION_3, 0}, NULL) = 0 <0.000004>
11:34:09 capget({_LINUX_CAPABILITY_VERSION_3, 0}, {0, CAP_NET_ADMIN|CAP_NET_RAW, 0}) = 0 <0.000004>
11:34:09 capset({_LINUX_CAPABILITY_VERSION_3, 0}, {CAP_NET_RAW, CAP_NET_ADMIN|CAP_NET_RAW, 0}) = 0 <0.000004>
11:34:09 socket(PF_INET, SOCK_RAW, IPPROTO_ICMP) = 3 <0.000008>
11:34:09 capget({_LINUX_CAPABILITY_VERSION_3, 0}, NULL) = 0 <0.000003>
11:34:09 capget({_LINUX_CAPABILITY_VERSION_3, 0}, {CAP_NET_RAW, CAP_NET_ADMIN|CAP_NET_RAW, 0}) = 0 <0.000004>
11:34:09 capset({_LINUX_CAPABILITY_VERSION_3, 0}, {0, CAP_NET_ADMIN|CAP_NET_RAW, 0}) = 0 <0.000004>
11:34:09 getpid()                       = 1070 <0.000004>
11:34:09 open("/etc/resolv.conf", O_RDONLY|O_CLOEXEC) = 4 <0.000006>
11:34:09 fstat(4, {st_mode=S_IFREG|0644, st_size=64, ...}) = 0 <0.000004>
11:34:09 read(4, "#search lkp.se\nnameserver 192.16"..., 4096) = 64 <0.000004>
11:34:09 read(4, "", 4096)              = 0 <0.000004>
11:34:09 close(4)                       = 0 <0.000004>
11:34:09 uname({sysname="Linux", nodename="nazgul", ...}) = 0 <0.000004>
11:34:09 socket(PF_LOCAL, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 4 <0.000005>
11:34:09 connect(4, {sa_family=AF_LOCAL, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory) <0.000006>
11:34:09 close(4)                       = 0 <0.000005>
11:34:09 socket(PF_LOCAL, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 4 <0.000004>
11:34:09 connect(4, {sa_family=AF_LOCAL, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory) <0.000005>
11:34:09 close(4)                       = 0 <0.000004>
11:34:09 open("/etc/nsswitch.conf", O_RDONLY|O_CLOEXEC) = 4 <0.000004>
11:34:09 fstat(4, {st_mode=S_IFREG|0644, st_size=1083, ...}) = 0 <0.000004>
11:34:09 read(4, "#\n# /etc/nsswitch.conf\n#\n# An ex"..., 4096) = 1083 <0.000004>
11:34:09 read(4, "", 4096)              = 0 <0.000004>
11:34:09 close(4)                       = 0 <0.000004>
11:34:09 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 4 <0.000004>
11:34:09 fstat(4, {st_mode=S_IFREG|0644, st_size=414223, ...}) = 0 <0.000004>
11:34:09 mmap(NULL, 414223, PROT_READ, MAP_PRIVATE, 4, 0) = 0x7f40397f7000 <0.000005>
11:34:09 close(4)                       = 0 <0.000004>
11:34:09 open("/lib64/libnss_files.so.2", O_RDONLY|O_CLOEXEC) = 4 <0.000005>
11:34:09 read(4, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P!\0\0\0\0\0\0"..., 832) = 832 <0.000004>
11:34:09 fstat(4, {st_mode=S_IFREG|0755, st_size=56056, ...}) = 0 <0.000003>
11:34:09 mmap(NULL, 2168600, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x7f4038c55000 <0.000005>
11:34:09 mprotect(0x7f4038c60000, 2093056, PROT_NONE) = 0 <0.000007>
11:34:09 mmap(0x7f4038e5f000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0xa000) = 0x7f4038e5f000 <0.000007>
11:34:09 mmap(0x7f4038e61000, 22296, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f4038e61000 <0.000005>
11:34:09 close(4)                       = 0 <0.000004>
11:34:09 mprotect(0x7f4038e5f000, 4096, PROT_READ) = 0 <0.000005>
11:34:09 munmap(0x7f40397f7000, 414223) = 0 <0.000008>
11:34:09 open("/etc/host.conf", O_RDONLY|O_CLOEXEC) = 4 <0.000005>
11:34:09 fstat(4, {st_mode=S_IFREG|0644, st_size=27, ...}) = 0 <0.000004>
11:34:09 read(4, "order hosts, bind\nmulti on\n", 4096) = 27 <0.000004>
11:34:09 read(4, "", 4096)              = 0 <0.000004>
11:34:09 close(4)                       = 0 <0.000004>
11:34:09 open("/etc/hosts", O_RDONLY|O_CLOEXEC) = 4 <0.000005>
11:34:09 fstat(4, {st_mode=S_IFREG|0644, st_size=712, ...}) = 0 <0.000004>
11:34:09 read(4, "#\n# hosts\t\tThis file describes a"..., 4096) = 712 <0.000003>
11:34:09 read(4, "", 4096)              = 0 <0.000004>
11:34:09 close(4)                       = 0 <0.000004>
11:34:09 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 4 <0.000005>
11:34:09 fstat(4, {st_mode=S_IFREG|0644, st_size=414223, ...}) = 0 <0.000004>
11:34:09 mmap(NULL, 414223, PROT_READ, MAP_PRIVATE, 4, 0) = 0x7f40397f7000 <0.000004>
11:34:09 close(4)                       = 0 <0.000004>
11:34:09 open("/lib64/libnss_dns.so.2", O_RDONLY|O_CLOEXEC) = 4 <0.000005>
11:34:09 read(4, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@\17\0\0\0\0\0\0"..., 832) = 832 <0.000004>
11:34:09 fstat(4, {st_mode=S_IFREG|0755, st_size=31048, ...}) = 0 <0.000003>
11:34:09 mmap(NULL, 2121960, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x7f4038a4e000 <0.000005>
11:34:09 mprotect(0x7f4038a53000, 2097152, PROT_NONE) = 0 <0.000006>
11:34:09 mmap(0x7f4038c53000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x5000) = 0x7f4038c53000 <0.000005>
11:34:09 close(4)                       = 0 <0.000004>
11:34:09 open("/lib64/libresolv.so.2", O_RDONLY|O_CLOEXEC) = 4 <0.000004>
11:34:09 read(4, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@9\0\0\0\0\0\0"..., 832) = 832 <0.000004>
11:34:09 fstat(4, {st_mode=S_IFREG|0755, st_size=113400, ...}) = 0 <0.000004>
11:34:09 mmap(NULL, 2206280, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x7f4038833000 <0.000005>
11:34:09 mprotect(0x7f403884a000, 2097152, PROT_NONE) = 0 <0.000006>
11:34:09 mmap(0x7f4038a4a000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x17000) = 0x7f4038a4a000 <0.000006>
11:34:09 mmap(0x7f4038a4c000, 6728, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f4038a4c000 <0.000005>
11:34:09 close(4)                       = 0 <0.000003>
11:34:09 mprotect(0x7f4038a4a000, 4096, PROT_READ) = 0 <0.000005>
11:34:09 mprotect(0x7f4038c53000, 4096, PROT_READ) = 0 <0.000005>
11:34:09 munmap(0x7f40397f7000, 414223) = 0 <0.000007>
11:34:09 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4 <0.000005>
11:34:09 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.43.3")}, 16) = 0 <0.000009>
11:34:09 poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}]) <0.000004>
11:34:09 sendto(4, "b\7\1\0\0\1\0\0\0\0\0\0\3www\6google\3com\0\0\1\0\1", 32, MSG_NOSIGNAL, NULL, 0) = 32 <0.000010>
11:34:09 poll([{fd=4, events=POLLIN}], 1, 5000) = 1 ([{fd=4, revents=POLLIN}]) <0.000441>
11:34:09 ioctl(4, FIONREAD, [296])      = 0 <0.000004>
11:34:09 recvfrom(4, "b\7\201\200\0\1\0\1\0\4\0\10\3www\6google\3com\0\0\1\0\1"..., 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.43.3")}, [16]) = 296 <0.000005>
11:34:09 close(4)                       = 0 <0.000006>
11:34:09 socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4 <0.000004>
11:34:09 connect(4, {sa_family=AF_INET, sin_port=htons(1025), sin_addr=inet_addr("172.217.21.164")}, 16) = 0 <0.000005>
11:34:09 getsockname(4, {sa_family=AF_INET, sin_port=htons(33440), sin_addr=inet_addr("192.168.43.9")}, [16]) = 0 <0.000004>
11:34:09 close(4)                       = 0 <0.000005>
11:34:09 setsockopt(3, SOL_RAW, ICMP_FILTER, ~(ICMP_ECHOREPLY|ICMP_DEST_UNREACH|ICMP_SOURCE_QUENCH|ICMP_REDIRECT|ICMP_TIME_EXCEEDED|ICMP_PARAMETERPROB), 4) = 0 <0.000005>
11:34:09 setsockopt(3, SOL_IP, IP_RECVERR, [1], 4) = 0 <0.000004>
11:34:09 setsockopt(3, SOL_SOCKET, SO_SNDBUF, [324], 4) = 0 <0.000004>
11:34:09 setsockopt(3, SOL_SOCKET, SO_RCVBUF, [65536], 4) = 0 <0.000004>
11:34:09 getsockopt(3, SOL_SOCKET, SO_RCVBUF, [131072], [4]) = 0 <0.000004>
11:34:09 fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 94), ...}) = 0 <0.000004>
11:34:09 write(1, "PING www.google.com (172.217.21."..., 59PING www.google.com (172.217.21.164) 56(84) bytes of data.
) = 59 <0.000005>
11:34:09 setsockopt(3, SOL_SOCKET, SO_TIMESTAMP, [1], 4) = 0 <0.000004>
11:34:09 setsockopt(3, SOL_SOCKET, SO_SNDTIMEO, "\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 16) = 0 <0.000004>
11:34:09 setsockopt(3, SOL_SOCKET, SO_RCVTIMEO, "\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 16) = 0 <0.000004>
11:34:09 rt_sigaction(SIGINT, {0x404430, [], SA_RESTORER|SA_INTERRUPT, 0x7f40390a0480}, NULL, 8) = 0 <0.000004>
11:34:09 rt_sigaction(SIGALRM, {0x404430, [], SA_RESTORER|SA_INTERRUPT, 0x7f40390a0480}, NULL, 8) = 0 <0.000004>
11:34:09 rt_sigaction(SIGQUIT, {0x404420, [], SA_RESTORER|SA_INTERRUPT, 0x7f40390a0480}, NULL, 8) = 0 <0.000004>
11:34:09 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 <0.000004>
11:34:09 ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0 <0.000004>
11:34:09 ioctl(1, TIOCGWINSZ, {ws_row=79, ws_col=166, ws_xpixel=1015, ws_ypixel=1031}) = 0 <0.000004>
11:34:09 sendmsg(3, {msg_name(16)={sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("172.217.21.164")}, msg_iov(1)=[{"\10\0\270\265\4.\0\1!\231\6f\0\0\0\0HI\f\0\0\0\0\0\20\21\22\23\24\25\26\27"..., 64}], msg_controllen=0, msg_flags=0}, 0) = 64 <0.000008>
11:34:09 setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={10, 0}}, NULL) = 0 <0.000004>
11:34:09 recvmsg(3, {msg_name(16)={sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("172.217.21.164")}, msg_iov(1)=[{"E`\0T\0\0\0\0r\1\232\32\254\331\25\244\300\250+\t\0\0\300\265\4.\0\1!\231\6f"..., 192}], msg_controllen=32, [{cmsg_len=32, cmsg_level=SOL_SOCKET, cmsg_type=0x1d /* SCM_??? */}], msg_flags=0}, 0) = 84 <0.004619>
11:34:09 open("/etc/hosts", O_RDONLY|O_CLOEXEC) = 4 <0.000006>
11:34:09 fstat(4, {st_mode=S_IFREG|0644, st_size=712, ...}) = 0 <0.000005>
11:34:09 read(4, "#\n# hosts\t\tThis file describes a"..., 4096) = 712 <0.000005>
11:34:09 read(4, "", 4096)              = 0 <0.000004>
11:34:09 close(4)                       = 0 <0.000005>
11:34:09 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4 <0.000007>
11:34:09 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.43.3")}, 16) = 0 <0.000007>
11:34:09 poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}]) <0.000004>
11:34:09 sendto(4, "xM\1\0\0\1\0\0\0\0\0\0\003164\00221\003217\003172\7in-a"..., 45, MSG_NOSIGNAL, NULL, 0) = 45 <0.000008>
11:34:09 poll([{fd=4, events=POLLIN}], 1, 5000) = 1 ([{fd=4, revents=POLLIN}]) <0.000709>
11:34:09 ioctl(4, FIONREAD, [498])      = 0 <0.000004>
11:34:09 recvfrom(4, "xM\201\200\0\1\0\2\0\r\0\10\003164\00221\003217\003172\7in-a"..., 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.43.3")}, [16]) = 498 <0.000004>
11:34:09 close(4)                       = 0 <0.000006>
11:34:09 write(1, "64 bytes from fra07s64-in-f164.1"..., 9164 bytes from fra07s64-in-f164.1e100.net (172.217.21.164): icmp_seq=1 ttl=114 time=4.61 ms
) = 91 <0.000006>
11:34:09 write(1, "\n", 1
)              = 1 <0.000005>
11:34:09 write(1, "--- www.google.com ping statisti"..., 39--- www.google.com ping statistics ---
) = 39 <0.000005>
11:34:09 write(1, "1 packets transmitted, 1 receive"..., 601 packets transmitted, 1 received, 0% packet loss, time 0ms
) = 60 <0.000005>
11:34:09 write(1, "rtt min/avg/max/mdev = 4.615/4.6"..., 50rtt min/avg/max/mdev = 4.615/4.615/4.615/0.000 ms
) = 50 <0.000005>
11:34:09 exit_group(0)                  = ?
11:34:09 +++ exited with 0 +++
bash-4.3# exit
In the example above I ran the command as root to be able to successfully perform the ping, the icmp in ping will not be allowed when run together with strace as a normal user. However, even when running as a normal user you will be able to see the time a DNS lookup takes. In my example above, the ping itself showed 4.6 ms which is rather decent and you get slightly worse results with your 19.1 ms.

The timestamps to the left above shows when each call was started, the times to the right show how long time each call took. If so you wish, you can have better resolution on the timestamps to the right if you run "strace -tt" instead of "strace -t".

At row 99 above you can see that my system connects to my internal caching DNS server 192.168.43.3 and that only took 0.000009 seconds.
At row 101 a question about www.google.com is sent to the DNS server, sending that question took 0.000010 seconds.
At row 102 a reply is received, getting that reply took 0.000441 seconds.

I repeat those rows again to make it easier to read:

Code:
11:34:09 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.43.3")}, 16) = 0 <0.000009>
11:34:09 poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}]) <0.000004>
11:34:09 sendto(4, "b\7\1\0\0\1\0\0\0\0\0\0\3www\6google\3com\0\0\1\0\1", 32, MSG_NOSIGNAL, NULL, 0) = 32 <0.000010>
11:34:09 poll([{fd=4, events=POLLIN}], 1, 5000) = 1 ([{fd=4, revents=POLLIN}]) <0.000441>



If you want to know why the ping package takes longer time for you traceroute is a good command:

Code:
nazgul:~> traceroute www.google.com
traceroute to www.google.com (172.217.21.164), 30 hops max, 60 byte packets
 1  trollet.lkp.se (192.168.43.1)  0.217 ms  0.259 ms  0.257 ms
 2  dd-wrt (192.168.67.1)  0.587 ms  0.816 ms  0.972 ms
 3  10.4.255.252 (10.4.255.252)  2.832 ms  3.225 ms  3.224 ms
 4  10.2.253.1 (10.2.253.1)  2.843 ms  2.888 ms  2.934 ms
 5  10.1.254.245 (10.1.254.245)  3.274 ms  3.273 ms  3.323 ms
 6  62.119.101.241 (62.119.101.241)  3.369 ms  3.097 ms  3.135 ms
 7  ti3163c360-ae67-0.ti.telenor.net (146.172.20.250)  5.715 ms  3.922 ms  4.208 ms
 8  ti3002b400-ae3-0.ti.telenor.net (146.172.105.57)  4.383 ms  4.384 ms  4.430 ms
 9  148.122.10.54 (148.122.10.54)  4.990 ms  5.109 ms  5.162 ms
10  * * *
11  142.251.48.38 (142.251.48.38)  7.749 ms 142.251.48.40 (142.251.48.40)  5.948 ms 142.251.65.80 (142.251.65.80)  6.864 ms
12  142.250.56.92 (142.250.56.92)  5.940 ms 108.170.233.10 (108.170.233.10)  4.963 ms 142.250.56.92 (142.250.56.92)  4.468 ms
13  192.178.73.203 (192.178.73.203)  5.852 ms  5.900 ms 142.251.250.251 (142.251.250.251)  4.525 ms
14  fra07s64-in-f164.1e100.net (172.217.21.164)  4.994 ms 108.170.233.41 (108.170.233.41)  6.192 ms arn11s03-in-f4.1e100.net (172.217.21.164)  5.163 ms
In my case above I can see that the big time addition (3.224 ms) is at my fibre connection between my outer firewall (dd-wrt) and my ISP internal network (10.4.255.252).

Could your VLAN configuration be a problem? Perhaps if you have configured your /etc/resolv.conf to use a DNS server on another VLAN which you are unable to reach. Any unreachable DNS server listed in /etc/resolv.conf will make DNS lookups slower.

regards Henrik
I am using AdGuardHome as a DNS server, which is reachable from this Slack machine. I've even tried disabling that and using Google's 8.8.8.8 and while the ping and traceroute results are much better, the speed of the connection is still lacking. While DNS resolution may be slower with AdGuardHome, that should not affect download speeds? Once the DNS is resolved for a download it should not matter from what I understand, or am I incorrect here?
 
Old 04-02-2024, 01:38 AM   #23
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,785

Rep: Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464
Does 'sysctl net.ipv4.tcp_ecn=0' help? Or 'sysctl net.ipv4.tcp_ecn=1'. (The default value is 2.)

Do you filter out icmp packets somewhere? Don't.

Last edited by Petri Kaukasoina; 04-02-2024 at 01:54 AM.
 
Old 04-02-2024, 12:51 PM   #24
henca
Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 959

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Quote:
Originally Posted by dimm0k View Post
I am using AdGuardHome as a DNS server, which is reachable from this Slack machine. I've even tried disabling that and using Google's 8.8.8.8 and while the ping and traceroute results are much better,
Did ping and traceroute give shorter latency by switching to another DNS server? The DNS server should not affect those values.


Quote:
Originally Posted by dimm0k View Post
the speed of the connection is still lacking.
Show us the numbers! Something like:
Code:
nazgul:/tmp> wget http://ftp.slackware.com/pub/slackware/slackware64-15.0/ChangeLog.txt
--2024-04-02 19:44:09--  http://ftp.slackware.com/pub/slackware/slackware64-15.0/ChangeLog.txt
Resolving ftp.slackware.com... 64.50.233.100, 64.50.236.52, 140.211.166.134, ...
Connecting to ftp.slackware.com|64.50.233.100|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2105025 (2.0M) [text/plain]
Saving to: 'ChangeLog.txt'

ChangeLog.txt       100%[===================>]   2.01M  1.27MB/s    in 1.6s    

2024-04-02 19:44:11 (1.27 MB/s) - 'ChangeLog.txt' saved [2105025/2105025]

nazgul:/tmp>
It would be nice to see such numbers both from your slow machine and some good working machine.

Quote:
Originally Posted by dimm0k View Post
While DNS resolution may be slower with AdGuardHome, that should not affect download speeds? Once the DNS is resolved for a download it should not matter from what I understand, or am I incorrect here?
No, thats right, once the IP address has been resolved your choice of DNS server should not affect the download speed.

regards Henrik
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Incredibly slow connection speed on BackBox broadsignal Linux - Networking 3 01-18-2016 04:17 PM
[SOLVED] Ubuntu 14.04 - Incredibly slow boot without network mtb Linux - Server 3 07-21-2014 01:36 PM
Incredibly slow HD speed daishin Linux - Laptop and Netbook 6 02-27-2007 09:33 PM
*INCREDIBLY* slow internet access. Urgent help required. adz Linux - Networking 9 08-11-2003 09:39 PM
Why is Red Hat so incredibly slow on my system? carlos123 Linux - General 23 04-04-2003 03:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration