utimes(2) delayed for 90 seconds

Issues related to applications and software problems
Post Reply
Bernd65536
Posts: 3
Joined: 2019/07/23 11:09:17

utimes(2) delayed for 90 seconds

Post by Bernd65536 » 2019/07/23 11:35:21

Backup and compile jobs needs large times because at random files utimes() syscalls have a 90 second delay. (CentOS-7.6, xfs filesystem). What's going up here?

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: utimes(2) delayed for 90 seconds

Post by TrevorH » 2019/07/23 11:51:23

How are you measuring this?
Is it a VM? and if so, what is the underlying hardware and how overcommitted is it?
If it is not a VM then what hardware?
Also, what is the output from uname -r
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Bernd65536
Posts: 3
Joined: 2019/07/23 11:09:17

Re: utimes(2) delayed for 90 seconds

Post by Bernd65536 » 2019/07/23 12:17:12

Kernel is 3.10.0-957.12.1.el7.x86_64, Hardware is Intel S2600WFT Board with Dual Xeon Silver 4114, 96 GB RAM, filesystem is xfs (exported by nfs).

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: utimes(2) delayed for 90 seconds

Post by aks » 2019/07/24 18:58:02

At a guess NFS will be the problem here ("NFS is always the problem" - my new trade mark).

utimes() updates the file's last access and modification times.

AFAIK NFS is always synchronous (and yes, many very clever people over many years have tried to solve this is a "generic" way and have failed IMO).
Start looking at your networking (that's what I would do).
Or don't depend on file change meta-data for your backup, which may be hard, depending on your use case.

You might be able to mask last access change (don't care about access in a backup case), rather than mask modification time. Off hand, I do not know how to do (and don't really care). Although, given they are the same syscall, it somehow seems unlikely - although somebody else may just know the answer (if I cared, I'd start looking at mount -o options).

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: utimes(2) delayed for 90 seconds

Post by hunter86_bg » 2019/07/25 18:17:30

Can you try mounting the NFS with 'noatime,nodiratime' options and try again ?
Yet, you will loose access times and that could pose a problem for some software.

Bernd65536
Posts: 3
Joined: 2019/07/23 11:09:17

Re: utimes(2) delayed for 90 seconds

Post by Bernd65536 » 2019/09/23 13:39:31

mount options for most clients are always (from /proc/mounts):

Code: Select all

ro,noatime,nodiratime,vers=4.1,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=4,sec=sys,clientaddr=...,local_lock=none,addr=...
But some clients (with old mounts) have only relatime

Post Reply