You are not logged in.

#1 2021-12-19 21:14:20

navailable
Member
Registered: 2021-12-19
Posts: 6

[SOLVED] 5 Seconds Delay (ping, pacman, git clone etc.)

I connect to the internet by running dhclient command on USB archiso image. When I try ping or git clone commands on archiso USB image, it does it instantly without waiting.
You can see on the video:
https://drive.google.com/file/d/1VuUqym … sp=sharing

But after the installation, it always take 5 seconds to do it's thing. Pinging, downloading files or pacman -S something.

I only use networkmanager package and enabled NetworkManager.service to connect internet on my installation. I just want to know what's the reason that takes 5 seconds to do the process.

Here is the video on my installation:
https://drive.google.com/file/d/1a-8IXo … sp=sharing

I know it's a weird question but I just want to know why that thing happens. It's also a little bit annoying that delays 5 seconds for whatever the reason.

Last edited by navailable (2022-01-05 17:56:48)

Offline

#2 2021-12-19 21:39:04

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 26,168
Website

Re: [SOLVED] 5 Seconds Delay (ping, pacman, git clone etc.)

I'd first suspect DNS issues.  Is there a delay if you ping an IP address?  Either way, please post the output of the following to list enabled services:

find /etc/systemd/ ! -name *.conf -type f -o -type l

"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2021-12-19 22:04:25

navailable
Member
Registered: 2021-12-19
Posts: 6

Re: [SOLVED] 5 Seconds Delay (ping, pacman, git clone etc.)

I just tried pinging google by it's IP address (142.250.186.46) and it did that instantly. So now I also suspect that it's a DNS issue. Should I change my DNS server on router?

Here's the output:

/etc/systemd/user/default.target.wants/xdg-user-dirs-update.service
/etc/systemd/user/sockets.target.wants/gpg-agent.socket
/etc/systemd/user/sockets.target.wants/gcr-ssh-agent.socket
/etc/systemd/user/sockets.target.wants/pulseaudio.socket
/etc/systemd/user/sockets.target.wants/p11-kit-server.socket
/etc/systemd/user/sockets.target.wants/gpg-agent-ssh.socket
/etc/systemd/user/sockets.target.wants/dirmngr.socket
/etc/systemd/user/sockets.target.wants/gpg-agent-browser.socket
/etc/systemd/user/sockets.target.wants/gpg-agent-extra.socket
/etc/systemd/system/getty.target.wants/getty@tty1.service
/etc/systemd/system/display-manager.service
/etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service
/etc/systemd/system/network-online.target.wants/NetworkManager-wait-online.service
/etc/systemd/system/multi-user.target.wants/NetworkManager.service
/etc/systemd/system/multi-user.target.wants/iwd.service
/etc/systemd/system/multi-user.target.wants/dhcpcd.service
/etc/systemd/system/multi-user.target.wants/dhclient@interface.service
/etc/systemd/system/multi-user.target.wants/remote-fs.target

Offline

#4 2021-12-19 22:08:40

seth
Member
Registered: 2012-09-03
Posts: 26,306

Re: [SOLVED] 5 Seconds Delay (ping, pacman, git clone etc.)

You've networkmanager, iwd, dhcpcd and dhclient activated together creating a situation like this:
LargeWarmLadybird-max-1mb.gif

Pick one, disable the others and see whether that has positive impact.

Also

dig google.com
dig @8.8.8.8 google.com

Offline

#5 2021-12-19 22:44:56

navailable
Member
Registered: 2021-12-19
Posts: 6

Re: [SOLVED] 5 Seconds Delay (ping, pacman, git clone etc.)

Oh I was testing them and I already removed them but they appeared as enabled. smile

So I moved to my old Arch installation backup, here are the all enabled services:

/etc/systemd/user/default.target.wants/xdg-user-dirs-update.service
/etc/systemd/user/pipewire-session-manager.service
/etc/systemd/user/pipewire.service.wants/pipewire-media-session.service
/etc/systemd/user/sockets.target.wants/gcr-ssh-agent.socket
/etc/systemd/user/sockets.target.wants/pipewire.socket
/etc/systemd/user/sockets.target.wants/gpg-agent-browser.socket
/etc/systemd/user/sockets.target.wants/dirmngr.socket
/etc/systemd/user/sockets.target.wants/pipewire-pulse.socket
/etc/systemd/user/sockets.target.wants/gpg-agent.socket
/etc/systemd/user/sockets.target.wants/p11-kit-server.socket
/etc/systemd/user/sockets.target.wants/gpg-agent-extra.socket
/etc/systemd/user/sockets.target.wants/gpg-agent-ssh.socket
/etc/systemd/system/dbus-org.rnd2.cpupower_gui.helper.service
/etc/systemd/system/dbus-org.freedesktop.timesync1.service
/etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service
/etc/systemd/system/dbus-org.freedesktop.thermald.service
/etc/systemd/system/dbus-org.freedesktop.Avahi.service
/etc/systemd/system/network-online.target.wants/NetworkManager-wait-online.service
/etc/systemd/system/display-manager.service
/etc/systemd/system/multi-user.target.wants/sshd.service
/etc/systemd/system/multi-user.target.wants/clamav-daemon.service
/etc/systemd/system/multi-user.target.wants/vncserver-x11-serviced.service
/etc/systemd/system/multi-user.target.wants/containerd.service
/etc/systemd/system/multi-user.target.wants/acpid.service
/etc/systemd/system/multi-user.target.wants/docker.service
/etc/systemd/system/multi-user.target.wants/NetworkManager.service
/etc/systemd/system/multi-user.target.wants/thermald.service
/etc/systemd/system/multi-user.target.wants/remote-fs.target
/etc/systemd/system/multi-user.target.wants/clamav-freshclam.service
/etc/systemd/system/multi-user.target.wants/vncserver-virtuald.service
/etc/systemd/system/multi-user.target.wants/reflector.service
/etc/systemd/system/multi-user.target.wants/cronie.service
/etc/systemd/system/multi-user.target.wants/avahi-daemon.service
/etc/systemd/system/multi-user.target.wants/cpupower-gui.service
/etc/systemd/system/multi-user.target.wants/libvirtd.service
/etc/systemd/system/getty.target.wants/getty@tty1.service
/etc/systemd/system/sockets.target.wants/virtlogd.socket
/etc/systemd/system/sockets.target.wants/libvirtd.socket
/etc/systemd/system/sockets.target.wants/docker.socket
/etc/systemd/system/sockets.target.wants/clamav-daemon.socket
/etc/systemd/system/sockets.target.wants/libvirtd-ro.socket
/etc/systemd/system/sockets.target.wants/virtlockd.socket
/etc/systemd/system/sockets.target.wants/avahi-daemon.socket
/etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service
/etc/systemd/system/timers.target.wants/pamac-cleancache.timer

Also;

[navailable@marchine ~]$ dig google.com

; <<>> DiG 9.16.23 <<>> google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 56278
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;google.com.			IN	A

;; ANSWER SECTION:
google.com.		300	IN	A	142.250.186.142

;; Query time: 80 msec
;; SERVER: 80.80.80.80#53(80.80.80.80)
;; WHEN: Mon Dec 20 01:43:04 +03 2021
;; MSG SIZE  rcvd: 55
[navailable@marchine ~]$ dig @8.8.8.8 google.com

; <<>> DiG 9.16.23 <<>> @8.8.8.8 google.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 22163
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;google.com.			IN	A

;; ANSWER SECTION:
google.com.		190	IN	A	142.250.200.238

;; Query time: 76 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Mon Dec 20 01:43:56 +03 2021
;; MSG SIZE  rcvd: 55

Offline

#6 2021-12-19 23:18:05

navailable
Member
Registered: 2021-12-19
Posts: 6

Re: [SOLVED] 5 Seconds Delay (ping, pacman, git clone etc.)

Solved! It was my DNS server that I use on router. Which was Freenom World (80.80.80.80 , 80.80.81.81)

I changed to something else. smile

Now it works without 5 seconds delay. Thanks for the help!

Last edited by navailable (2021-12-19 23:18:38)

Offline

#7 2021-12-20 06:57:05

seth
Member
Registered: 2012-09-03
Posts: 26,306

Re: [SOLVED] 5 Seconds Delay (ping, pacman, git clone etc.)

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Since your router does not seem to cache the configured DNS, you might want to look into a local cache, https://wiki.archlinux.org/title/Domain … NS_servers

Offline

#8 2022-01-05 17:34:30

navailable
Member
Registered: 2021-12-19
Posts: 6

Re: [SOLVED] 5 Seconds Delay (ping, pacman, git clone etc.)

I don't know how to mark the topic as "solved" but I found the solution.

[SOLUTION]

* I installed systemd-resolvconf
* I enabled systemd-networkd and also systemd-resolved

Now it works as I wanted by using networkmanager and enabling NetworkManager and systemd-networkd & systemd-resolved

It works and it does not matter which DNS server I'm using. That's great!

https://streamable.com/6v87r0

Last edited by navailable (2022-01-05 18:11:10)

Offline

#9 2022-01-05 17:52:51

Slithery
Forum Moderator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 4,851

Re: [SOLVED] 5 Seconds Delay (ping, pacman, git clone etc.)

navailable wrote:

I don't know how to mark the topic as "solved" but I found the solution.

CoC - How to post


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

Board footer

Powered by FluxBB