GNU bug report logs - #31184
tail -f on Network FS not refreshing as soon as the file is changed.

Previous Next

Package: coreutils;

Reported by: Jewsco Pius Jacquez <JewscoPius.Jacquez <at> Amdocs.com>

Date: Mon, 16 Apr 2018 17:26:02 UTC

Severity: normal

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 31184 in the body.
You can then email your comments to 31184 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#31184; Package coreutils. (Mon, 16 Apr 2018 17:26:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jewsco Pius Jacquez <JewscoPius.Jacquez <at> Amdocs.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Mon, 16 Apr 2018 17:26:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jewsco Pius Jacquez <JewscoPius.Jacquez <at> Amdocs.com>
To: "bug-coreutils <at> gnu.org" <bug-coreutils <at> gnu.org>
Subject: tail -f on Network FS not refreshing as soon as the file is changed. 
Date: Mon, 16 Apr 2018 17:11:21 +0000
[Message part 1 (text/plain, inline)]
Hello,

We have a legacy application that is using tail -f command in the application and is running in Redhat 9 under a shared Samba filesystem.

We want to migrate the application to RHEL7 and we noticed that the tail -f command here is not refreshing as soon as the file get changed. In Redhat 9, it is working fine, every write on the file got reflected straight away(no waiting interval).

Is there a way that we can make the tail -f working as it was in Redhat 9? For this reason, we are not able to migrate our Legacy application.

Thanks,
Jewsco
This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement,

you may review at https://www.amdocs.com/about/email-disclaimer <https://www.amdocs.com/about/email-disclaimer>
[Message part 2 (text/html, inline)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#31184; Package coreutils. (Tue, 17 Apr 2018 07:30:02 GMT) Full text and rfc822 format available.

Message #8 received at 31184 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Jewsco Pius Jacquez <JewscoPius.Jacquez <at> Amdocs.com>, 31184 <at> debbugs.gnu.org
Subject: Re: bug#31184: tail -f on Network FS not refreshing as soon as the
 file is changed.
Date: Tue, 17 Apr 2018 00:29:18 -0700
On 16/04/18 10:11, Jewsco Pius Jacquez wrote:
> Hello,
> 
> We have a legacy application that is using tail -f command in the application and is running in Redhat 9 under a shared Samba filesystem.
> 
> We want to migrate the application to RHEL7 and we noticed that the tail -f command here is not refreshing as soon as the file get changed. In Redhat 9, it is working fine, every write on the file got reflected straight away(no waiting interval).
> 
> Is there a way that we can make the tail -f working as it was in Redhat 9? For this reason, we are not able to migrate our Legacy application.

To get around the issue, the undocumented ---disable-inotify option may help
(note the three dashes)

If that does help then there is an issue with the misdetection
of a known file system as local, when it should be treated as remote.
Can you show the file system type for the file you're trying to tail, using:

  stat -f -c '%t %T' /path/to/your/file

cheers,
Pádraig




Information forwarded to bug-coreutils <at> gnu.org:
bug#31184; Package coreutils. (Tue, 17 Apr 2018 15:47:01 GMT) Full text and rfc822 format available.

Message #11 received at 31184 <at> debbugs.gnu.org (full text, mbox):

From: Jewsco Pius Jacquez <JewscoPius.Jacquez <at> Amdocs.com>
To: Pádraig Brady <P <at> draigBrady.com>,
 "31184 <at> debbugs.gnu.org" <31184 <at> debbugs.gnu.org>
Subject: RE: bug#31184: tail -f on Network FS not refreshing as soon as the
 file is changed.
Date: Tue, 17 Apr 2018 15:46:27 +0000
Padraig, thanks for your response,

The ---disable-inotify didn't refresh either.

[root <at> cmilsbtest03 ~]# stat -f -c '%t %T'  /media/samba/test.file
ff534d42 cifs
[root <at> cmilsbtest03 ~]# df -h /media/samba/test.file
Filesystem            Size  Used Avail Use% Mounted on
//10.124.61.52/finance
                       14G   13G  1.6G  89% /media/samba
[root <at> cmilsbtest03 ~]# grep /media/samba /proc/mounts
//10.124.61.52/finance/ /media/samba cifs rw,relatime,sec=ntlm,cache=loose,unc=\134\13410.124.61.52\134finance,username=,uid=0,noforceuid,gid=0,noforcegid,addr=10.124.61.52,unix,posixpaths,serverino,acl,rsize=1048576,wsize=65536,echo_interval=60,actimeo=1 0 0
[root <at> cmilsbtest03 ~]#


Thanks,
Jewsco


-----Original Message-----
From: Pádraig Brady [mailto:P <at> draigBrady.com] 
Sent: Tuesday, April 17, 2018 2:29 AM
To: Jewsco Pius Jacquez <JewscoPius.Jacquez <at> Amdocs.com>; 31184 <at> debbugs.gnu.org
Subject: Re: bug#31184: tail -f on Network FS not refreshing as soon as the file is changed.

On 16/04/18 10:11, Jewsco Pius Jacquez wrote:
> Hello,
> 
> We have a legacy application that is using tail -f command in the application and is running in Redhat 9 under a shared Samba filesystem.
> 
> We want to migrate the application to RHEL7 and we noticed that the tail -f command here is not refreshing as soon as the file get changed. In Redhat 9, it is working fine, every write on the file got reflected straight away(no waiting interval).
> 
> Is there a way that we can make the tail -f working as it was in Redhat 9? For this reason, we are not able to migrate our Legacy application.

To get around the issue, the undocumented ---disable-inotify option may help (note the three dashes)

If that does help then there is an issue with the misdetection of a known file system as local, when it should be treated as remote.
Can you show the file system type for the file you're trying to tail, using:

  stat -f -c '%t %T' /path/to/your/file

cheers,
Pádraig
This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement,

you may review at https://www.amdocs.com/about/email-disclaimer <https://www.amdocs.com/about/email-disclaimer>





Information forwarded to bug-coreutils <at> gnu.org:
bug#31184; Package coreutils. (Tue, 17 Apr 2018 16:07:01 GMT) Full text and rfc822 format available.

Message #14 received at 31184 <at> debbugs.gnu.org (full text, mbox):

From: Erik Auerswald <auerswal <at> unix-ag.uni-kl.de>
To: Jewsco Pius Jacquez <JewscoPius.Jacquez <at> Amdocs.com>
Cc: "31184 <at> debbugs.gnu.org" <31184 <at> debbugs.gnu.org>,
 Pádraig Brady <P <at> draigBrady.com>
Subject: Re: bug#31184: tail -f on Network FS not refreshing as soon as the
 file is changed.
Date: Tue, 17 Apr 2018 18:06:21 +0200
Hi Jewsco,

did you already try the -F option instead of -f?

Thanks,
Erik

On Tue, Apr 17, 2018 at 03:46:27PM +0000, Jewsco Pius Jacquez wrote:
> Padraig, thanks for your response,
> 
> The ---disable-inotify didn't refresh either.
> 
> [root <at> cmilsbtest03 ~]# stat -f -c '%t %T'  /media/samba/test.file
> ff534d42 cifs
> [root <at> cmilsbtest03 ~]# df -h /media/samba/test.file
> Filesystem            Size  Used Avail Use% Mounted on
> //10.124.61.52/finance
>                        14G   13G  1.6G  89% /media/samba
> [root <at> cmilsbtest03 ~]# grep /media/samba /proc/mounts
> //10.124.61.52/finance/ /media/samba cifs rw,relatime,sec=ntlm,cache=loose,unc=\134\13410.124.61.52\134finance,username=,uid=0,noforceuid,gid=0,noforcegid,addr=10.124.61.52,unix,posixpaths,serverino,acl,rsize=1048576,wsize=65536,echo_interval=60,actimeo=1 0 0
> [root <at> cmilsbtest03 ~]#
> 
> 
> Thanks,
> Jewsco
> 
> 
> -----Original Message-----
> From: Pádraig Brady [mailto:P <at> draigBrady.com] 
> Sent: Tuesday, April 17, 2018 2:29 AM
> To: Jewsco Pius Jacquez <JewscoPius.Jacquez <at> Amdocs.com>; 31184 <at> debbugs.gnu.org
> Subject: Re: bug#31184: tail -f on Network FS not refreshing as soon as the file is changed.
> 
> On 16/04/18 10:11, Jewsco Pius Jacquez wrote:
> > Hello,
> > 
> > We have a legacy application that is using tail -f command in the application and is running in Redhat 9 under a shared Samba filesystem.
> > 
> > We want to migrate the application to RHEL7 and we noticed that the tail -f command here is not refreshing as soon as the file get changed. In Redhat 9, it is working fine, every write on the file got reflected straight away(no waiting interval).
> > 
> > Is there a way that we can make the tail -f working as it was in Redhat 9? For this reason, we are not able to migrate our Legacy application.
> 
> To get around the issue, the undocumented ---disable-inotify option may help (note the three dashes)
> 
> If that does help then there is an issue with the misdetection of a known file system as local, when it should be treated as remote.
> Can you show the file system type for the file you're trying to tail, using:
> 
>   stat -f -c '%t %T' /path/to/your/file
> 
> cheers,
> Pádraig
> This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement,
> 
> you may review at https://www.amdocs.com/about/email-disclaimer <https://www.amdocs.com/about/email-disclaimer>
> 
> 
> 
> 




Information forwarded to bug-coreutils <at> gnu.org:
bug#31184; Package coreutils. (Tue, 17 Apr 2018 18:19:02 GMT) Full text and rfc822 format available.

Message #17 received at 31184 <at> debbugs.gnu.org (full text, mbox):

From: Jewsco Pius Jacquez <JewscoPius.Jacquez <at> Amdocs.com>
To: Erik Auerswald <auerswal <at> unix-ag.uni-kl.de>
Cc: "31184 <at> debbugs.gnu.org" <31184 <at> debbugs.gnu.org>,
 Pádraig Brady <P <at> draigBrady.com>
Subject: RE: bug#31184: tail -f on Network FS not refreshing as soon as the
 file is changed.
Date: Tue, 17 Apr 2018 18:18:39 +0000
Yes, it didn't work either.

The closest is this one(below), but still the update is every second only.
# tail --follow=name --max-unchanged-stats=1 --sleep-interval=1  /media/samba/test.file


Thanks,
Jewsco

-----Original Message-----
From: Erik Auerswald [mailto:auerswal <at> unix-ag.uni-kl.de] 
Sent: Tuesday, April 17, 2018 11:06 AM
To: Jewsco Pius Jacquez <JewscoPius.Jacquez <at> Amdocs.com>
Cc: Pádraig Brady <P <at> draigBrady.com>; 31184 <at> debbugs.gnu.org
Subject: Re: bug#31184: tail -f on Network FS not refreshing as soon as the file is changed.

Hi Jewsco,

did you already try the -F option instead of -f?

Thanks,
Erik

On Tue, Apr 17, 2018 at 03:46:27PM +0000, Jewsco Pius Jacquez wrote:
> Padraig, thanks for your response,
> 
> The ---disable-inotify didn't refresh either.
> 
> [root <at> cmilsbtest03 ~]# stat -f -c '%t %T'  /media/samba/test.file
> ff534d42 cifs
> [root <at> cmilsbtest03 ~]# df -h /media/samba/test.file
> Filesystem            Size  Used Avail Use% Mounted on
> //10.124.61.52/finance
>                        14G   13G  1.6G  89% /media/samba
> [root <at> cmilsbtest03 ~]# grep /media/samba /proc/mounts 
> //10.124.61.52/finance/ /media/samba cifs 
> rw,relatime,sec=ntlm,cache=loose,unc=\134\13410.124.61.52\134finance,u
> sername=,uid=0,noforceuid,gid=0,noforcegid,addr=10.124.61.52,unix,posi
> xpaths,serverino,acl,rsize=1048576,wsize=65536,echo_interval=60,actime
> o=1 0 0
> [root <at> cmilsbtest03 ~]#
> 
> 
> Thanks,
> Jewsco
> 
> 
> -----Original Message-----
> From: Pádraig Brady [mailto:P <at> draigBrady.com]
> Sent: Tuesday, April 17, 2018 2:29 AM
> To: Jewsco Pius Jacquez <JewscoPius.Jacquez <at> Amdocs.com>; 
> 31184 <at> debbugs.gnu.org
> Subject: Re: bug#31184: tail -f on Network FS not refreshing as soon as the file is changed.
> 
> On 16/04/18 10:11, Jewsco Pius Jacquez wrote:
> > Hello,
> > 
> > We have a legacy application that is using tail -f command in the application and is running in Redhat 9 under a shared Samba filesystem.
> > 
> > We want to migrate the application to RHEL7 and we noticed that the tail -f command here is not refreshing as soon as the file get changed. In Redhat 9, it is working fine, every write on the file got reflected straight away(no waiting interval).
> > 
> > Is there a way that we can make the tail -f working as it was in Redhat 9? For this reason, we are not able to migrate our Legacy application.
> 
> To get around the issue, the undocumented ---disable-inotify option 
> may help (note the three dashes)
> 
> If that does help then there is an issue with the misdetection of a known file system as local, when it should be treated as remote.
> Can you show the file system type for the file you're trying to tail, using:
> 
>   stat -f -c '%t %T' /path/to/your/file
> 
> cheers,
> Pádraig
> This message and the information contained herein is proprietary and 
> confidential and subject to the Amdocs policy statement,
> 
> you may review at https://www.amdocs.com/about/email-disclaimer 
> <https://www.amdocs.com/about/email-disclaimer>
> 
> 
> 
> 
This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement,

you may review at https://www.amdocs.com/about/email-disclaimer <https://www.amdocs.com/about/email-disclaimer>





Information forwarded to bug-coreutils <at> gnu.org:
bug#31184; Package coreutils. (Wed, 18 Apr 2018 06:40:01 GMT) Full text and rfc822 format available.

Message #20 received at 31184 <at> debbugs.gnu.org (full text, mbox):

From: Bernhard Voelker <mail <at> bernhard-voelker.de>
To: Jewsco Pius Jacquez <JewscoPius.Jacquez <at> Amdocs.com>,
 Erik Auerswald <auerswal <at> unix-ag.uni-kl.de>
Cc: "31184 <at> debbugs.gnu.org" <31184 <at> debbugs.gnu.org>,
 Pádraig Brady <P <at> draigBrady.com>
Subject: Re: bug#31184: tail -f on Network FS not refreshing as soon as the
 file is changed.
Date: Wed, 18 Apr 2018 08:39:19 +0200
On 04/17/2018 08:18 PM, Jewsco Pius Jacquez wrote:
> Yes, it didn't work either.
> 
> The closest is this one(below), but still the update is every second only.
> # tail --follow=name --max-unchanged-stats=1 --sleep-interval=1  /media/samba/test.file

The --sleep-interval option not only accepts integers: see info:

     When using tail without inotify support, you can make
     it more responsive by using a sub-second sleep interval, e.g., via
     an alias like this:

          alias tail='tail -s.1'

>> On 04/17/2018 05:46 PM, Jewsco Pius Jacquez wrote:
>>> [root <at> cmilsbtest03 ~]# stat -f -c '%t %T'  /media/samba/test.file
>>> ff534d42 cifs

But as tail(1) treats CIFS as "remote" [1], there may be some other
effect, e.g. buffering on the CIFS server or on the server writing
to that file.  Are you sure data is available more often?

[1]
https://git.sv.gnu.org/cgit/coreutils.git/tree/src/stat.c?id=e6017741e9#n301

Have a nice day,
Berny




Information forwarded to bug-coreutils <at> gnu.org:
bug#31184; Package coreutils. (Thu, 19 Apr 2018 03:04:02 GMT) Full text and rfc822 format available.

Message #23 received at 31184 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Jewsco Pius Jacquez <JewscoPius.Jacquez <at> Amdocs.com>,
 "31184 <at> debbugs.gnu.org" <31184 <at> debbugs.gnu.org>
Subject: Re: bug#31184: tail -f on Network FS not refreshing as soon as the
 file is changed.
Date: Wed, 18 Apr 2018 20:03:53 -0700
Could you clarify whether the rhel7 version of tail
is too slow when showing updates to the file,
or misses updates to the file entirely.

There have been various fixes to tail, so it
would be worth verifying how the latest behaves, like:

  wget https://ftpmirror.gnu.org/coreutils/coreutils-8.29.tar.xz
  tar -xf coreutils-8.29.tar.xz
  cd coreutils-8.29
  ./configure --quiet && make -j$(nproc)
  src/tail -f /media/samba/test.file

cheers,
Pádraig




Information forwarded to bug-coreutils <at> gnu.org:
bug#31184; Package coreutils. (Thu, 19 Apr 2018 14:44:02 GMT) Full text and rfc822 format available.

Message #26 received at 31184 <at> debbugs.gnu.org (full text, mbox):

From: Jewsco Pius Jacquez <JewscoPius.Jacquez <at> Amdocs.com>
To: Pádraig Brady <P <at> draigBrady.com>,
 "31184 <at> debbugs.gnu.org" <31184 <at> debbugs.gnu.org>
Subject: RE: bug#31184: tail -f on Network FS not refreshing as soon as the
 file is changed.
Date: Thu, 19 Apr 2018 14:43:07 +0000
Pádraig, thanks for your response.

In my reproducer environment, it doesn't totally update. RHEL7 Samba server, RHEL6 Samba client.

Unless I provided the extra interval parameter. 

When I run it in Redhat9, I don't need any extra, it refresh automatically.


[jjacquez <at> cmilsbtest03 src]$ ./tail --version
tail (GNU coreutils) 8.29
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Paul Rubin, David MacKenzie, Ian Lance Taylor,
and Jim Meyering.
[jjacquez <at> cmilsbtest03 src]$ date; time ./tail -f /media/samba/test.file
Thu Apr 19 09:28:48 CDT 2018
Thu Apr 19 09:28:47 CDT 2018
Thu Apr 19 09:28:48 CDT 2018
Thu Apr 19 09:28:48 CDT 2018
Thu Apr 19 09:28:48 CDT 2018
Thu Apr 19 09:28:48 CDT 2018
Thu Apr 19 09:28:48 CDT 2018
Thu Apr 19 09:28:48 CDT 2018
Thu Apr 19 09:28:48 CDT 2018
Thu Apr 19 09:28:48 CDT 2018
Thu Apr 19 09:28:48 CDT 2018


^C
real    10m51.467s
user    0m0.009s
sys     0m0.006s

[jjacquez <at> cmilsbtest03 src]$ date; time ./tail -f /media/samba/test.file
Thu Apr 19 09:39:42 CDT 2018
Thu Apr 19 09:39:38 CDT 2018
Thu Apr 19 09:39:38 CDT 2018
Thu Apr 19 09:39:38 CDT 2018
Thu Apr 19 09:39:38 CDT 2018
Thu Apr 19 09:39:38 CDT 2018
Thu Apr 19 09:39:38 CDT 2018
Thu Apr 19 09:39:38 CDT 2018
Thu Apr 19 09:39:38 CDT 2018
Thu Apr 19 09:39:39 CDT 2018
Thu Apr 19 09:39:39 CDT 2018
^C
real    0m3.908s
user    0m0.000s
sys     0m0.001s

[jjacquez <at> cmilsbtest03 src]$

-----Original Message-----
From: Pádraig Brady [mailto:P <at> draigBrady.com] 
Sent: Wednesday, April 18, 2018 10:04 PM
To: Jewsco Pius Jacquez <JewscoPius.Jacquez <at> Amdocs.com>; 31184 <at> debbugs.gnu.org
Subject: Re: bug#31184: tail -f on Network FS not refreshing as soon as the file is changed.

Could you clarify whether the rhel7 version of tail is too slow when showing updates to the file, or misses updates to the file entirely.

There have been various fixes to tail, so it would be worth verifying how the latest behaves, like:

  wget https://ftpmirror.gnu.org/coreutils/coreutils-8.29.tar.xz
  tar -xf coreutils-8.29.tar.xz
  cd coreutils-8.29
  ./configure --quiet && make -j$(nproc)
  src/tail -f /media/samba/test.file

cheers,
Pádraig
This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement,

you may review at https://www.amdocs.com/about/email-disclaimer <https://www.amdocs.com/about/email-disclaimer>





Information forwarded to bug-coreutils <at> gnu.org:
bug#31184; Package coreutils. (Mon, 30 Apr 2018 21:10:02 GMT) Full text and rfc822 format available.

Message #29 received at 31184 <at> debbugs.gnu.org (full text, mbox):

From: Jewsco Pius Jacquez <JewscoPius.Jacquez <at> Amdocs.com>
To: Pádraig Brady <P <at> draigBrady.com>,
 "31184 <at> debbugs.gnu.org" <31184 <at> debbugs.gnu.org>
Subject: RE: bug#31184: tail -f on Network FS not refreshing as soon as the
 file is changed.
Date: Mon, 30 Apr 2018 21:09:38 +0000
Pádraig, did you get a chance to look into this?

Thanks,
Jewsco

-----Original Message-----
From: Jewsco Pius Jacquez 
Sent: Thursday, April 19, 2018 9:43 AM
To: 'Pádraig Brady' <P <at> draigBrady.com>; 31184 <at> debbugs.gnu.org
Subject: RE: bug#31184: tail -f on Network FS not refreshing as soon as the file is changed.

Pádraig, thanks for your response.

In my reproducer environment, it doesn't totally update. RHEL7 Samba server, RHEL6 Samba client.

Unless I provided the extra interval parameter. 

When I run it in Redhat9, I don't need any extra, it refresh automatically.


[jjacquez <at> cmilsbtest03 src]$ ./tail --version tail (GNU coreutils) 8.29 Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Paul Rubin, David MacKenzie, Ian Lance Taylor, and Jim Meyering.
[jjacquez <at> cmilsbtest03 src]$ date; time ./tail -f /media/samba/test.file Thu Apr 19 09:28:48 CDT 2018 Thu Apr 19 09:28:47 CDT 2018 Thu Apr 19 09:28:48 CDT 2018 Thu Apr 19 09:28:48 CDT 2018 Thu Apr 19 09:28:48 CDT 2018 Thu Apr 19 09:28:48 CDT 2018 Thu Apr 19 09:28:48 CDT 2018 Thu Apr 19 09:28:48 CDT 2018 Thu Apr 19 09:28:48 CDT 2018 Thu Apr 19 09:28:48 CDT 2018 Thu Apr 19 09:28:48 CDT 2018


^C
real    10m51.467s
user    0m0.009s
sys     0m0.006s

[jjacquez <at> cmilsbtest03 src]$ date; time ./tail -f /media/samba/test.file Thu Apr 19 09:39:42 CDT 2018 Thu Apr 19 09:39:38 CDT 2018 Thu Apr 19 09:39:38 CDT 2018 Thu Apr 19 09:39:38 CDT 2018 Thu Apr 19 09:39:38 CDT 2018 Thu Apr 19 09:39:38 CDT 2018 Thu Apr 19 09:39:38 CDT 2018 Thu Apr 19 09:39:38 CDT 2018 Thu Apr 19 09:39:38 CDT 2018 Thu Apr 19 09:39:39 CDT 2018 Thu Apr 19 09:39:39 CDT 2018 ^C
real    0m3.908s
user    0m0.000s
sys     0m0.001s

[jjacquez <at> cmilsbtest03 src]$

-----Original Message-----
From: Pádraig Brady [mailto:P <at> draigBrady.com]
Sent: Wednesday, April 18, 2018 10:04 PM
To: Jewsco Pius Jacquez <JewscoPius.Jacquez <at> Amdocs.com>; 31184 <at> debbugs.gnu.org
Subject: Re: bug#31184: tail -f on Network FS not refreshing as soon as the file is changed.

Could you clarify whether the rhel7 version of tail is too slow when showing updates to the file, or misses updates to the file entirely.

There have been various fixes to tail, so it would be worth verifying how the latest behaves, like:

  wget https://ftpmirror.gnu.org/coreutils/coreutils-8.29.tar.xz
  tar -xf coreutils-8.29.tar.xz
  cd coreutils-8.29
  ./configure --quiet && make -j$(nproc)
  src/tail -f /media/samba/test.file

cheers,
Pádraig
This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement,

you may review at https://www.amdocs.com/about/email-disclaimer <https://www.amdocs.com/about/email-disclaimer>





Information forwarded to bug-coreutils <at> gnu.org:
bug#31184; Package coreutils. (Wed, 02 May 2018 07:46:01 GMT) Full text and rfc822 format available.

Message #32 received at 31184 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Jewsco Pius Jacquez <JewscoPius.Jacquez <at> Amdocs.com>,
 "31184 <at> debbugs.gnu.org" <31184 <at> debbugs.gnu.org>
Subject: Re: bug#31184: tail -f on Network FS not refreshing as soon as the
 file is changed.
Date: Wed, 2 May 2018 00:45:49 -0700
On 19/04/18 07:43, Jewsco Pius Jacquez wrote:
> Pádraig, thanks for your response.
> 
> In my reproducer environment, it doesn't totally update. RHEL7 Samba server, RHEL6 Samba client.
> 
> Unless I provided the extra interval parameter. 

You said you used: tail --follow=name --max-unchanged-stats=1 --sleep-interval=1

The --sleep-interval=1 having a difference is confusing
as that already defaults to one second.
Also --max-unchanged-stats=1 should only make things more responsive.
I would have expected only --follow=name to have a significant
difference to the data that is eventually output.

Anyway there may be an issue with st_size updating on your system.
I.E. if stat() didn't update st_size on this remote file
then a new change that protects against a related issue
on glusterfs may be impacting here. One could check that
by reverting the patch and rebuilding in your previous build dir like:

  cd coreutils-8.29 &&
  wget 'https://github.com/coreutils/coreutils/commit/7fc7206.patch' -O- |
  patch -R -p1 &&
  make

One might also check this externally to tail(1) by repeatedly running
the following and seeing does the number correlate with remote changes:

  stat -c '%s' /media/samba/test.file

cheers,
Pádraig




Information forwarded to bug-coreutils <at> gnu.org:
bug#31184; Package coreutils. (Wed, 02 May 2018 13:40:02 GMT) Full text and rfc822 format available.

Message #35 received at 31184 <at> debbugs.gnu.org (full text, mbox):

From: Jewsco Pius Jacquez <JewscoPius.Jacquez <at> Amdocs.com>
To: Pádraig Brady <P <at> draigBrady.com>,
 "31184 <at> debbugs.gnu.org" <31184 <at> debbugs.gnu.org>
Subject: RE: bug#31184: tail -f on Network FS not refreshing as soon as the
 file is changed.
Date: Wed, 2 May 2018 13:39:23 +0000
I tried and the --follow=name doesn't refresh either. The stat output is changing.

[jjacquez <at> cmilsbtest03 ~]$ tail --follow=name /media/samba/test.file
append Wed May  2 08:35:54 CDT 2018
append Wed May  2 08:35:54 CDT 2018
append Wed May  2 08:35:54 CDT 2018
append Wed May  2 08:35:54 CDT 2018
append Wed May  2 08:35:54 CDT 2018
append Wed May  2 08:35:54 CDT 2018
append Wed May  2 08:35:54 CDT 2018
append Wed May  2 08:35:54 CDT 2018
append Wed May  2 08:35:54 CDT 2018
append Wed May  2 08:35:55 CDT 2018
^C
[jjacquez <at> cmilsbtest03 ~]$ tail --follow=name /media/samba/test.file
append Wed May  2 08:36:01 CDT 2018
append Wed May  2 08:36:01 CDT 2018
append Wed May  2 08:36:01 CDT 2018
append Wed May  2 08:36:02 CDT 2018
append Wed May  2 08:36:02 CDT 2018
append Wed May  2 08:36:02 CDT 2018
append Wed May  2 08:36:02 CDT 2018
append Wed May  2 08:36:02 CDT 2018
append Wed May  2 08:36:02 CDT 2018
append Wed May  2 08:36:02 CDT 2018
^C
[jjacquez <at> cmilsbtest03 ~]$ while :; do stat -c '%s' /media/samba/test.file; sleep 1; done
1649717
1650077
1650401
1650761
1651121
1651445
1651769
1652093
1652417


About the reverting the patch, so I need to download the source and patch it?

  cd coreutils-8.29 &&
  wget 'https://github.com/coreutils/coreutils/commit/7fc7206.patch' -O- |
  patch -R -p1 &&
  make



Thanks,
Jewsco



-----Original Message-----
From: Pádraig Brady [mailto:P <at> draigBrady.com] 
Sent: Wednesday, May 2, 2018 2:46 AM
To: Jewsco Pius Jacquez <JewscoPius.Jacquez <at> Amdocs.com>; 31184 <at> debbugs.gnu.org
Subject: Re: bug#31184: tail -f on Network FS not refreshing as soon as the file is changed.

On 19/04/18 07:43, Jewsco Pius Jacquez wrote:
> Pádraig, thanks for your response.
> 
> In my reproducer environment, it doesn't totally update. RHEL7 Samba server, RHEL6 Samba client.
> 
> Unless I provided the extra interval parameter. 

You said you used: tail --follow=name --max-unchanged-stats=1 --sleep-interval=1

The --sleep-interval=1 having a difference is confusing as that already defaults to one second.
Also --max-unchanged-stats=1 should only make things more responsive.
I would have expected only --follow=name to have a significant difference to the data that is eventually output.

Anyway there may be an issue with st_size updating on your system.
I.E. if stat() didn't update st_size on this remote file then a new change that protects against a related issue on glusterfs may be impacting here. One could check that by reverting the patch and rebuilding in your previous build dir like:

  cd coreutils-8.29 &&
  wget 'https://github.com/coreutils/coreutils/commit/7fc7206.patch' -O- |
  patch -R -p1 &&
  make

One might also check this externally to tail(1) by repeatedly running the following and seeing does the number correlate with remote changes:

  stat -c '%s' /media/samba/test.file

cheers,
Pádraig
This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement,

you may review at https://www.amdocs.com/about/email-disclaimer <https://www.amdocs.com/about/email-disclaimer>





Information forwarded to bug-coreutils <at> gnu.org:
bug#31184; Package coreutils. (Fri, 04 May 2018 01:48:01 GMT) Full text and rfc822 format available.

Message #38 received at 31184 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Jewsco Pius Jacquez <JewscoPius.Jacquez <at> Amdocs.com>,
 "31184 <at> debbugs.gnu.org" <31184 <at> debbugs.gnu.org>
Subject: Re: bug#31184: tail -f on Network FS not refreshing as soon as the
 file is changed.
Date: Thu, 3 May 2018 18:47:21 -0700
On 02/05/18 06:39, Jewsco Pius Jacquez wrote:
> I tried and the --follow=name doesn't refresh either. The stat output is changing.
> 
> [jjacquez <at> cmilsbtest03 ~]$ tail --follow=name /media/samba/test.file
> append Wed May  2 08:35:54 CDT 2018
> append Wed May  2 08:35:54 CDT 2018
> append Wed May  2 08:35:54 CDT 2018
> append Wed May  2 08:35:54 CDT 2018
> append Wed May  2 08:35:54 CDT 2018
> append Wed May  2 08:35:54 CDT 2018
> append Wed May  2 08:35:54 CDT 2018
> append Wed May  2 08:35:54 CDT 2018
> append Wed May  2 08:35:54 CDT 2018
> append Wed May  2 08:35:55 CDT 2018
> ^C
> [jjacquez <at> cmilsbtest03 ~]$ tail --follow=name /media/samba/test.file
> append Wed May  2 08:36:01 CDT 2018
> append Wed May  2 08:36:01 CDT 2018
> append Wed May  2 08:36:01 CDT 2018
> append Wed May  2 08:36:02 CDT 2018
> append Wed May  2 08:36:02 CDT 2018
> append Wed May  2 08:36:02 CDT 2018
> append Wed May  2 08:36:02 CDT 2018
> append Wed May  2 08:36:02 CDT 2018
> append Wed May  2 08:36:02 CDT 2018
> append Wed May  2 08:36:02 CDT 2018
> ^C
> [jjacquez <at> cmilsbtest03 ~]$ while :; do stat -c '%s' /media/samba/test.file; sleep 1; done
> 1649717
> 1650077
> 1650401
> 1650761
> 1651121
> 1651445
> 1651769
> 1652093
> 1652417
> 
> 
> About the reverting the patch, so I need to download the source and patch it?
> 
>   cd coreutils-8.29 &&
>   wget 'https://github.com/coreutils/coreutils/commit/7fc7206.patch' -O- |
>   patch -R -p1 &&
>   make

You'd done that previously, for for completeness
yes you need to download the source first like:

  wget https://ftpmirror.gnu.org/coreutils/coreutils-8.29.tar.xz
  tar -xf coreutils-8.29.tar.xz

thanks,
Pádraig




Information forwarded to bug-coreutils <at> gnu.org:
bug#31184; Package coreutils. (Fri, 04 May 2018 15:13:02 GMT) Full text and rfc822 format available.

Message #41 received at 31184 <at> debbugs.gnu.org (full text, mbox):

From: Jewsco Pius Jacquez <JewscoPius.Jacquez <at> Amdocs.com>
To: Pádraig Brady <P <at> draigBrady.com>,
 "31184 <at> debbugs.gnu.org" <31184 <at> debbugs.gnu.org>
Subject: RE: bug#31184: tail -f on Network FS not refreshing as soon as the
 file is changed.
Date: Fri, 4 May 2018 15:12:04 +0000
Thanks, did I missed anything?

[jjacquez <at> cmilsbtest02 ~]$ wget --quiet https://ftpmirror.gnu.org/coreutils/coreutils-8.29.tar.xz
[jjacquez <at> cmilsbtest02 ~]$ cksum coreutils-8.29.tar.xz
926393761 5286588 coreutils-8.29.tar.xz
[jjacquez <at> cmilsbtest02 ~]$ tar -xf coreutils-8.29.tar.xz
[jjacquez <at> cmilsbtest02 ~]$ cd coreutils-8.29/
[jjacquez <at> cmilsbtest02 coreutils-8.29]$ wget --quiet 'https://github.com/coreutils/coreutils/commit/7fc7206.patch' -O- | patch -R -p1 && make
patching file NEWS
Unreversed patch detected!  Ignore -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file NEWS.rej
patching file src/tail.c
Hunk #1 FAILED at 1220.
1 out of 1 hunk FAILED -- saving rejects to file src/tail.c.rej
[jjacquez <at> cmilsbtest02 coreutils-8.29]$



Thanks,
Jewsco





-----Original Message-----
From: Pádraig Brady [mailto:P <at> draigBrady.com] 
Sent: Thursday, May 3, 2018 8:47 PM
To: Jewsco Pius Jacquez <JewscoPius.Jacquez <at> Amdocs.com>; 31184 <at> debbugs.gnu.org
Subject: Re: bug#31184: tail -f on Network FS not refreshing as soon as the file is changed.

On 02/05/18 06:39, Jewsco Pius Jacquez wrote:
> I tried and the --follow=name doesn't refresh either. The stat output is changing.
> 
> [jjacquez <at> cmilsbtest03 ~]$ tail --follow=name /media/samba/test.file 
> append Wed May  2 08:35:54 CDT 2018 append Wed May  2 08:35:54 CDT 
> 2018 append Wed May  2 08:35:54 CDT 2018 append Wed May  2 08:35:54 
> CDT 2018 append Wed May  2 08:35:54 CDT 2018 append Wed May  2 
> 08:35:54 CDT 2018 append Wed May  2 08:35:54 CDT 2018 append Wed May  
> 2 08:35:54 CDT 2018 append Wed May  2 08:35:54 CDT 2018 append Wed May  
> 2 08:35:55 CDT 2018 ^C
> [jjacquez <at> cmilsbtest03 ~]$ tail --follow=name /media/samba/test.file 
> append Wed May  2 08:36:01 CDT 2018 append Wed May  2 08:36:01 CDT 
> 2018 append Wed May  2 08:36:01 CDT 2018 append Wed May  2 08:36:02 
> CDT 2018 append Wed May  2 08:36:02 CDT 2018 append Wed May  2 
> 08:36:02 CDT 2018 append Wed May  2 08:36:02 CDT 2018 append Wed May  
> 2 08:36:02 CDT 2018 append Wed May  2 08:36:02 CDT 2018 append Wed May  
> 2 08:36:02 CDT 2018 ^C
> [jjacquez <at> cmilsbtest03 ~]$ while :; do stat -c '%s' 
> /media/samba/test.file; sleep 1; done
> 1649717
> 1650077
> 1650401
> 1650761
> 1651121
> 1651445
> 1651769
> 1652093
> 1652417
> 
> 
> About the reverting the patch, so I need to download the source and patch it?
> 
>   cd coreutils-8.29 &&
>   wget 'https://github.com/coreutils/coreutils/commit/7fc7206.patch' -O- |
>   patch -R -p1 &&
>   make

You'd done that previously, for for completeness yes you need to download the source first like:

  wget https://ftpmirror.gnu.org/coreutils/coreutils-8.29.tar.xz
  tar -xf coreutils-8.29.tar.xz

thanks,
Pádraig
This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement,

you may review at https://www.amdocs.com/about/email-disclaimer <https://www.amdocs.com/about/email-disclaimer>





Information forwarded to bug-coreutils <at> gnu.org:
bug#31184; Package coreutils. (Sat, 05 May 2018 22:53:01 GMT) Full text and rfc822 format available.

Message #44 received at 31184 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Jewsco Pius Jacquez <JewscoPius.Jacquez <at> Amdocs.com>,
 "31184 <at> debbugs.gnu.org" <31184 <at> debbugs.gnu.org>
Subject: Re: bug#31184: tail -f on Network FS not refreshing as soon as the
 file is changed.
Date: Sat, 5 May 2018 15:52:19 -0700
On 04/05/18 08:12, Jewsco Pius Jacquez wrote:
> Thanks, did I missed anything?
> 
> [jjacquez <at> cmilsbtest02 ~]$ wget --quiet https://ftpmirror.gnu.org/coreutils/coreutils-8.29.tar.xz
> [jjacquez <at> cmilsbtest02 ~]$ cksum coreutils-8.29.tar.xz
> 926393761 5286588 coreutils-8.29.tar.xz
> [jjacquez <at> cmilsbtest02 ~]$ tar -xf coreutils-8.29.tar.xz
> [jjacquez <at> cmilsbtest02 ~]$ cd coreutils-8.29/
> [jjacquez <at> cmilsbtest02 coreutils-8.29]$ wget --quiet 'https://github.com/coreutils/coreutils/commit/7fc7206.patch' -O- | patch -R -p1 && make
> patching file NEWS
> Unreversed patch detected!  Ignore -R? [n]
> Apply anyway? [n]
> Skipping patch.
> 1 out of 1 hunk ignored -- saving rejects to file NEWS.rej
> patching file src/tail.c
> Hunk #1 FAILED at 1220.
> 1 out of 1 hunk FAILED -- saving rejects to file src/tail.c.rej
> [jjacquez <at> cmilsbtest02 coreutils-8.29]$
> 
> 
> 
> Thanks,
> Jewsco
> 
> 
> 
> 
> 
> -----Original Message-----
> From: Pádraig Brady [mailto:P <at> draigBrady.com] 
> Sent: Thursday, May 3, 2018 8:47 PM
> To: Jewsco Pius Jacquez <JewscoPius.Jacquez <at> Amdocs.com>; 31184 <at> debbugs.gnu.org
> Subject: Re: bug#31184: tail -f on Network FS not refreshing as soon as the file is changed.
> 
> On 02/05/18 06:39, Jewsco Pius Jacquez wrote:
>> I tried and the --follow=name doesn't refresh either. The stat output is changing.
>>
>> [jjacquez <at> cmilsbtest03 ~]$ tail --follow=name /media/samba/test.file 
>> append Wed May  2 08:35:54 CDT 2018 append Wed May  2 08:35:54 CDT 
>> 2018 append Wed May  2 08:35:54 CDT 2018 append Wed May  2 08:35:54 
>> CDT 2018 append Wed May  2 08:35:54 CDT 2018 append Wed May  2 
>> 08:35:54 CDT 2018 append Wed May  2 08:35:54 CDT 2018 append Wed May  
>> 2 08:35:54 CDT 2018 append Wed May  2 08:35:54 CDT 2018 append Wed May  
>> 2 08:35:55 CDT 2018 ^C
>> [jjacquez <at> cmilsbtest03 ~]$ tail --follow=name /media/samba/test.file 
>> append Wed May  2 08:36:01 CDT 2018 append Wed May  2 08:36:01 CDT 
>> 2018 append Wed May  2 08:36:01 CDT 2018 append Wed May  2 08:36:02 
>> CDT 2018 append Wed May  2 08:36:02 CDT 2018 append Wed May  2 
>> 08:36:02 CDT 2018 append Wed May  2 08:36:02 CDT 2018 append Wed May  
>> 2 08:36:02 CDT 2018 append Wed May  2 08:36:02 CDT 2018 append Wed May  
>> 2 08:36:02 CDT 2018 ^C
>> [jjacquez <at> cmilsbtest03 ~]$ while :; do stat -c '%s' 
>> /media/samba/test.file; sleep 1; done
>> 1649717
>> 1650077
>> 1650401
>> 1650761
>> 1651121
>> 1651445
>> 1651769
>> 1652093
>> 1652417
>>
>>
>> About the reverting the patch, so I need to download the source and patch it?
>>
>>   cd coreutils-8.29 &&
>>   wget 'https://github.com/coreutils/coreutils/commit/7fc7206.patch' -O- |
>>   patch -R -p1 &&
>>   make
> 
> You'd done that previously, for for completeness yes you need to download the source first like:
> 
>   wget https://ftpmirror.gnu.org/coreutils/coreutils-8.29.tar.xz
>   tar -xf coreutils-8.29.tar.xz

Drats sorry. There were conflicting patches in the meantime.
You can tweak it like:

 cd coreutils-8.29 &&
 wget 'https://github.com/coreutils/coreutils/commit/7fc7206.patch' -O- |
 sed 's/name,/false, name,/' |
 patch -p1 -R -t &&
 make

cheers,
Pádraig




Information forwarded to bug-coreutils <at> gnu.org:
bug#31184; Package coreutils. (Tue, 08 May 2018 13:57:01 GMT) Full text and rfc822 format available.

Message #47 received at 31184 <at> debbugs.gnu.org (full text, mbox):

From: Jewsco Pius Jacquez <JewscoPius.Jacquez <at> Amdocs.com>
To: Pádraig Brady <P <at> draigBrady.com>,
 "31184 <at> debbugs.gnu.org" <31184 <at> debbugs.gnu.org>
Subject: RE: bug#31184: tail -f on Network FS not refreshing as soon as the
 file is changed.
Date: Tue, 8 May 2018 13:55:40 +0000
Thanks

Still the same, the -f doesn't refresh. it applies to CIFS and NFS filesystem. Is it something related on how the network filesystem was designed?

Thanks,
Jewsco

-----Original Message-----
From: Pádraig Brady [mailto:P <at> draigBrady.com] 
Sent: Saturday, May 5, 2018 5:52 PM
To: Jewsco Pius Jacquez <JewscoPius.Jacquez <at> Amdocs.com>; 31184 <at> debbugs.gnu.org
Subject: Re: bug#31184: tail -f on Network FS not refreshing as soon as the file is changed.

On 04/05/18 08:12, Jewsco Pius Jacquez wrote:
> Thanks, did I missed anything?
> 
> [jjacquez <at> cmilsbtest02 ~]$ wget --quiet 
> https://ftpmirror.gnu.org/coreutils/coreutils-8.29.tar.xz
> [jjacquez <at> cmilsbtest02 ~]$ cksum coreutils-8.29.tar.xz
> 926393761 5286588 coreutils-8.29.tar.xz
> [jjacquez <at> cmilsbtest02 ~]$ tar -xf coreutils-8.29.tar.xz
> [jjacquez <at> cmilsbtest02 ~]$ cd coreutils-8.29/
> [jjacquez <at> cmilsbtest02 coreutils-8.29]$ wget --quiet 
> 'https://github.com/coreutils/coreutils/commit/7fc7206.patch' -O- | 
> patch -R -p1 && make patching file NEWS Unreversed patch detected!  
> Ignore -R? [n] Apply anyway? [n] Skipping patch.
> 1 out of 1 hunk ignored -- saving rejects to file NEWS.rej patching 
> file src/tail.c Hunk #1 FAILED at 1220.
> 1 out of 1 hunk FAILED -- saving rejects to file src/tail.c.rej
> [jjacquez <at> cmilsbtest02 coreutils-8.29]$
> 
> 
> 
> Thanks,
> Jewsco
> 
> 
> 
> 
> 
> -----Original Message-----
> From: Pádraig Brady [mailto:P <at> draigBrady.com]
> Sent: Thursday, May 3, 2018 8:47 PM
> To: Jewsco Pius Jacquez <JewscoPius.Jacquez <at> Amdocs.com>; 
> 31184 <at> debbugs.gnu.org
> Subject: Re: bug#31184: tail -f on Network FS not refreshing as soon as the file is changed.
> 
> On 02/05/18 06:39, Jewsco Pius Jacquez wrote:
>> I tried and the --follow=name doesn't refresh either. The stat output is changing.
>>
>> [jjacquez <at> cmilsbtest03 ~]$ tail --follow=name /media/samba/test.file 
>> append Wed May  2 08:35:54 CDT 2018 append Wed May  2 08:35:54 CDT
>> 2018 append Wed May  2 08:35:54 CDT 2018 append Wed May  2 08:35:54 
>> CDT 2018 append Wed May  2 08:35:54 CDT 2018 append Wed May  2
>> 08:35:54 CDT 2018 append Wed May  2 08:35:54 CDT 2018 append Wed May
>> 2 08:35:54 CDT 2018 append Wed May  2 08:35:54 CDT 2018 append Wed 
>> May
>> 2 08:35:55 CDT 2018 ^C
>> [jjacquez <at> cmilsbtest03 ~]$ tail --follow=name /media/samba/test.file 
>> append Wed May  2 08:36:01 CDT 2018 append Wed May  2 08:36:01 CDT
>> 2018 append Wed May  2 08:36:01 CDT 2018 append Wed May  2 08:36:02 
>> CDT 2018 append Wed May  2 08:36:02 CDT 2018 append Wed May  2
>> 08:36:02 CDT 2018 append Wed May  2 08:36:02 CDT 2018 append Wed May
>> 2 08:36:02 CDT 2018 append Wed May  2 08:36:02 CDT 2018 append Wed 
>> May
>> 2 08:36:02 CDT 2018 ^C
>> [jjacquez <at> cmilsbtest03 ~]$ while :; do stat -c '%s' 
>> /media/samba/test.file; sleep 1; done
>> 1649717
>> 1650077
>> 1650401
>> 1650761
>> 1651121
>> 1651445
>> 1651769
>> 1652093
>> 1652417
>>
>>
>> About the reverting the patch, so I need to download the source and patch it?
>>
>>   cd coreutils-8.29 &&
>>   wget 'https://github.com/coreutils/coreutils/commit/7fc7206.patch' -O- |
>>   patch -R -p1 &&
>>   make
> 
> You'd done that previously, for for completeness yes you need to download the source first like:
> 
>   wget https://ftpmirror.gnu.org/coreutils/coreutils-8.29.tar.xz
>   tar -xf coreutils-8.29.tar.xz

Drats sorry. There were conflicting patches in the meantime.
You can tweak it like:

 cd coreutils-8.29 &&
 wget 'https://github.com/coreutils/coreutils/commit/7fc7206.patch' -O- |  sed 's/name,/false, name,/' |  patch -p1 -R -t &&  make

cheers,
Pádraig
This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement,

you may review at https://www.amdocs.com/about/email-disclaimer <https://www.amdocs.com/about/email-disclaimer>





Information forwarded to bug-coreutils <at> gnu.org:
bug#31184; Package coreutils. (Tue, 22 May 2018 21:24:02 GMT) Full text and rfc822 format available.

Message #50 received at 31184 <at> debbugs.gnu.org (full text, mbox):

From: Jewsco Pius Jacquez <JewscoPius.Jacquez <at> Amdocs.com>
To: Pádraig Brady <P <at> draigBrady.com>,
 "31184 <at> debbugs.gnu.org" <31184 <at> debbugs.gnu.org>
Subject: RE: bug#31184: tail -f on Network FS not refreshing as soon as the
 file is changed.
Date: Tue, 22 May 2018 21:23:11 +0000
Any more ideas?

Thanks,
Jewsco

-----Original Message-----
From: Jewsco Pius Jacquez 
Sent: Tuesday, May 8, 2018 8:56 AM
To: 'Pádraig Brady' <P <at> draigBrady.com>; 31184 <at> debbugs.gnu.org
Subject: RE: bug#31184: tail -f on Network FS not refreshing as soon as the file is changed.

Thanks

Still the same, the -f doesn't refresh. it applies to CIFS and NFS filesystem. Is it something related on how the network filesystem was designed?

Thanks,
Jewsco

-----Original Message-----
From: Pádraig Brady [mailto:P <at> draigBrady.com]
Sent: Saturday, May 5, 2018 5:52 PM
To: Jewsco Pius Jacquez <JewscoPius.Jacquez <at> Amdocs.com>; 31184 <at> debbugs.gnu.org
Subject: Re: bug#31184: tail -f on Network FS not refreshing as soon as the file is changed.

On 04/05/18 08:12, Jewsco Pius Jacquez wrote:
> Thanks, did I missed anything?
> 
> [jjacquez <at> cmilsbtest02 ~]$ wget --quiet 
> https://ftpmirror.gnu.org/coreutils/coreutils-8.29.tar.xz
> [jjacquez <at> cmilsbtest02 ~]$ cksum coreutils-8.29.tar.xz
> 926393761 5286588 coreutils-8.29.tar.xz
> [jjacquez <at> cmilsbtest02 ~]$ tar -xf coreutils-8.29.tar.xz
> [jjacquez <at> cmilsbtest02 ~]$ cd coreutils-8.29/
> [jjacquez <at> cmilsbtest02 coreutils-8.29]$ wget --quiet 
> 'https://github.com/coreutils/coreutils/commit/7fc7206.patch' -O- | 
> patch -R -p1 && make patching file NEWS Unreversed patch detected!
> Ignore -R? [n] Apply anyway? [n] Skipping patch.
> 1 out of 1 hunk ignored -- saving rejects to file NEWS.rej patching 
> file src/tail.c Hunk #1 FAILED at 1220.
> 1 out of 1 hunk FAILED -- saving rejects to file src/tail.c.rej
> [jjacquez <at> cmilsbtest02 coreutils-8.29]$
> 
> 
> 
> Thanks,
> Jewsco
> 
> 
> 
> 
> 
> -----Original Message-----
> From: Pádraig Brady [mailto:P <at> draigBrady.com]
> Sent: Thursday, May 3, 2018 8:47 PM
> To: Jewsco Pius Jacquez <JewscoPius.Jacquez <at> Amdocs.com>; 
> 31184 <at> debbugs.gnu.org
> Subject: Re: bug#31184: tail -f on Network FS not refreshing as soon as the file is changed.
> 
> On 02/05/18 06:39, Jewsco Pius Jacquez wrote:
>> I tried and the --follow=name doesn't refresh either. The stat output is changing.
>>
>> [jjacquez <at> cmilsbtest03 ~]$ tail --follow=name /media/samba/test.file 
>> append Wed May  2 08:35:54 CDT 2018 append Wed May  2 08:35:54 CDT
>> 2018 append Wed May  2 08:35:54 CDT 2018 append Wed May  2 08:35:54 
>> CDT 2018 append Wed May  2 08:35:54 CDT 2018 append Wed May  2
>> 08:35:54 CDT 2018 append Wed May  2 08:35:54 CDT 2018 append Wed May
>> 2 08:35:54 CDT 2018 append Wed May  2 08:35:54 CDT 2018 append Wed 
>> May
>> 2 08:35:55 CDT 2018 ^C
>> [jjacquez <at> cmilsbtest03 ~]$ tail --follow=name /media/samba/test.file 
>> append Wed May  2 08:36:01 CDT 2018 append Wed May  2 08:36:01 CDT
>> 2018 append Wed May  2 08:36:01 CDT 2018 append Wed May  2 08:36:02 
>> CDT 2018 append Wed May  2 08:36:02 CDT 2018 append Wed May  2
>> 08:36:02 CDT 2018 append Wed May  2 08:36:02 CDT 2018 append Wed May
>> 2 08:36:02 CDT 2018 append Wed May  2 08:36:02 CDT 2018 append Wed 
>> May
>> 2 08:36:02 CDT 2018 ^C
>> [jjacquez <at> cmilsbtest03 ~]$ while :; do stat -c '%s' 
>> /media/samba/test.file; sleep 1; done
>> 1649717
>> 1650077
>> 1650401
>> 1650761
>> 1651121
>> 1651445
>> 1651769
>> 1652093
>> 1652417
>>
>>
>> About the reverting the patch, so I need to download the source and patch it?
>>
>>   cd coreutils-8.29 &&
>>   wget 'https://github.com/coreutils/coreutils/commit/7fc7206.patch' -O- |
>>   patch -R -p1 &&
>>   make
> 
> You'd done that previously, for for completeness yes you need to download the source first like:
> 
>   wget https://ftpmirror.gnu.org/coreutils/coreutils-8.29.tar.xz
>   tar -xf coreutils-8.29.tar.xz

Drats sorry. There were conflicting patches in the meantime.
You can tweak it like:

 cd coreutils-8.29 &&
 wget 'https://github.com/coreutils/coreutils/commit/7fc7206.patch' -O- |  sed 's/name,/false, name,/' |  patch -p1 -R -t &&  make

cheers,
Pádraig
This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement,

you may review at https://www.amdocs.com/about/email-disclaimer <https://www.amdocs.com/about/email-disclaimer>





Information forwarded to bug-coreutils <at> gnu.org:
bug#31184; Package coreutils. (Wed, 23 May 2018 05:11:01 GMT) Full text and rfc822 format available.

Message #53 received at 31184 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Jewsco Pius Jacquez <JewscoPius.Jacquez <at> Amdocs.com>,
 "31184 <at> debbugs.gnu.org" <31184 <at> debbugs.gnu.org>
Subject: Re: bug#31184: tail -f on Network FS not refreshing as soon as the
 file is changed.
Date: Tue, 22 May 2018 22:10:26 -0700
On 22/05/18 14:23, Jewsco Pius Jacquez wrote:
> Any more ideas?
> 
> Thanks,
> Jewsco
> 
> -----Original Message-----
> From: Jewsco Pius Jacquez 
> Sent: Tuesday, May 8, 2018 8:56 AM
> To: 'Pádraig Brady' <P <at> draigBrady.com>; 31184 <at> debbugs.gnu.org
> Subject: RE: bug#31184: tail -f on Network FS not refreshing as soon as the file is changed.
> 
> Thanks
> 
> Still the same, the -f doesn't refresh. it applies to CIFS and NFS filesystem. Is it something related on how the network filesystem was designed?
> 
> Thanks,
> Jewsco
> 
> -----Original Message-----
> From: Pádraig Brady [mailto:P <at> draigBrady.com]
> Sent: Saturday, May 5, 2018 5:52 PM
> To: Jewsco Pius Jacquez <JewscoPius.Jacquez <at> Amdocs.com>; 31184 <at> debbugs.gnu.org
> Subject: Re: bug#31184: tail -f on Network FS not refreshing as soon as the file is changed.
> 
> On 04/05/18 08:12, Jewsco Pius Jacquez wrote:
>> Thanks, did I missed anything?
>>
>> [jjacquez <at> cmilsbtest02 ~]$ wget --quiet 
>> https://ftpmirror.gnu.org/coreutils/coreutils-8.29.tar.xz
>> [jjacquez <at> cmilsbtest02 ~]$ cksum coreutils-8.29.tar.xz
>> 926393761 5286588 coreutils-8.29.tar.xz
>> [jjacquez <at> cmilsbtest02 ~]$ tar -xf coreutils-8.29.tar.xz
>> [jjacquez <at> cmilsbtest02 ~]$ cd coreutils-8.29/
>> [jjacquez <at> cmilsbtest02 coreutils-8.29]$ wget --quiet 
>> 'https://github.com/coreutils/coreutils/commit/7fc7206.patch' -O- | 
>> patch -R -p1 && make patching file NEWS Unreversed patch detected!
>> Ignore -R? [n] Apply anyway? [n] Skipping patch.
>> 1 out of 1 hunk ignored -- saving rejects to file NEWS.rej patching 
>> file src/tail.c Hunk #1 FAILED at 1220.
>> 1 out of 1 hunk FAILED -- saving rejects to file src/tail.c.rej
>> [jjacquez <at> cmilsbtest02 coreutils-8.29]$
>>
>>
>>
>> Thanks,
>> Jewsco
>>
>>
>>
>>
>>
>> -----Original Message-----
>> From: Pádraig Brady [mailto:P <at> draigBrady.com]
>> Sent: Thursday, May 3, 2018 8:47 PM
>> To: Jewsco Pius Jacquez <JewscoPius.Jacquez <at> Amdocs.com>; 
>> 31184 <at> debbugs.gnu.org
>> Subject: Re: bug#31184: tail -f on Network FS not refreshing as soon as the file is changed.
>>
>> On 02/05/18 06:39, Jewsco Pius Jacquez wrote:
>>> I tried and the --follow=name doesn't refresh either. The stat output is changing.
>>>
>>> [jjacquez <at> cmilsbtest03 ~]$ tail --follow=name /media/samba/test.file 
>>> append Wed May  2 08:35:54 CDT 2018 append Wed May  2 08:35:54 CDT
>>> 2018 append Wed May  2 08:35:54 CDT 2018 append Wed May  2 08:35:54 
>>> CDT 2018 append Wed May  2 08:35:54 CDT 2018 append Wed May  2
>>> 08:35:54 CDT 2018 append Wed May  2 08:35:54 CDT 2018 append Wed May
>>> 2 08:35:54 CDT 2018 append Wed May  2 08:35:54 CDT 2018 append Wed 
>>> May
>>> 2 08:35:55 CDT 2018 ^C
>>> [jjacquez <at> cmilsbtest03 ~]$ tail --follow=name /media/samba/test.file 
>>> append Wed May  2 08:36:01 CDT 2018 append Wed May  2 08:36:01 CDT
>>> 2018 append Wed May  2 08:36:01 CDT 2018 append Wed May  2 08:36:02 
>>> CDT 2018 append Wed May  2 08:36:02 CDT 2018 append Wed May  2
>>> 08:36:02 CDT 2018 append Wed May  2 08:36:02 CDT 2018 append Wed May
>>> 2 08:36:02 CDT 2018 append Wed May  2 08:36:02 CDT 2018 append Wed 
>>> May
>>> 2 08:36:02 CDT 2018 ^C
>>> [jjacquez <at> cmilsbtest03 ~]$ while :; do stat -c '%s' 
>>> /media/samba/test.file; sleep 1; done
>>> 1649717
>>> 1650077
>>> 1650401
>>> 1650761
>>> 1651121
>>> 1651445
>>> 1651769
>>> 1652093
>>> 1652417
>>>
>>>
>>> About the reverting the patch, so I need to download the source and patch it?
>>>
>>>   cd coreutils-8.29 &&
>>>   wget 'https://github.com/coreutils/coreutils/commit/7fc7206.patch' -O- |
>>>   patch -R -p1 &&
>>>   make
>>
>> You'd done that previously, for for completeness yes you need to download the source first like:
>>
>>   wget https://ftpmirror.gnu.org/coreutils/coreutils-8.29.tar.xz
>>   tar -xf coreutils-8.29.tar.xz
> 
> Drats sorry. There were conflicting patches in the meantime.
> You can tweak it like:
> 
>  cd coreutils-8.29 &&
>  wget 'https://github.com/coreutils/coreutils/commit/7fc7206.patch' -O- |  sed 's/name,/false, name,/' |  patch -p1 -R -t &&  make
> 
> cheers,
> Pádraig
> This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement,

Well I can't repro with 8.29 on nfs here.
Perhaps the read() is blocking or something.
It would be useful to get the output of:

  strace -o tail.strace tail -f /media/samba/test.file

Also for completeness, it would be good to give
the command used to write to the file on the remote end.

thanks,
Pádraig





Information forwarded to bug-coreutils <at> gnu.org:
bug#31184; Package coreutils. (Tue, 12 Jun 2018 15:11:02 GMT) Full text and rfc822 format available.

Message #56 received at 31184 <at> debbugs.gnu.org (full text, mbox):

From: Jewsco Pius Jacquez <JewscoPius.Jacquez <at> Amdocs.com>
To: Pádraig Brady <P <at> draigBrady.com>,
 "31184 <at> debbugs.gnu.org" <31184 <at> debbugs.gnu.org>
Subject: RE: bug#31184: tail -f on Network FS not refreshing as soon as the
 file is changed.
Date: Tue, 12 Jun 2018 15:10:35 +0000
Padraig, thanks a lot for your help on this.

We found a workaround combined with cache=none mount option and it works for our customer. You can close this case.

tail --follow=name --max-unchanged-stats=1 --sleep-interval=.01 <filename>

thanks,
jewsco

-----Original Message-----
From: Pádraig Brady [mailto:P <at> draigBrady.com] 
Sent: Wednesday, May 23, 2018 12:10 AM
To: Jewsco Pius Jacquez <JewscoPius.Jacquez <at> Amdocs.com>; 31184 <at> debbugs.gnu.org
Subject: Re: bug#31184: tail -f on Network FS not refreshing as soon as the file is changed.

On 22/05/18 14:23, Jewsco Pius Jacquez wrote:
> Any more ideas?
> 
> Thanks,
> Jewsco
> 
> -----Original Message-----
> From: Jewsco Pius Jacquez
> Sent: Tuesday, May 8, 2018 8:56 AM
> To: 'Pádraig Brady' <P <at> draigBrady.com>; 31184 <at> debbugs.gnu.org
> Subject: RE: bug#31184: tail -f on Network FS not refreshing as soon as the file is changed.
> 
> Thanks
> 
> Still the same, the -f doesn't refresh. it applies to CIFS and NFS filesystem. Is it something related on how the network filesystem was designed?
> 
> Thanks,
> Jewsco
> 
> -----Original Message-----
> From: Pádraig Brady [mailto:P <at> draigBrady.com]
> Sent: Saturday, May 5, 2018 5:52 PM
> To: Jewsco Pius Jacquez <JewscoPius.Jacquez <at> Amdocs.com>; 
> 31184 <at> debbugs.gnu.org
> Subject: Re: bug#31184: tail -f on Network FS not refreshing as soon as the file is changed.
> 
> On 04/05/18 08:12, Jewsco Pius Jacquez wrote:
>> Thanks, did I missed anything?
>>
>> [jjacquez <at> cmilsbtest02 ~]$ wget --quiet 
>> https://ftpmirror.gnu.org/coreutils/coreutils-8.29.tar.xz
>> [jjacquez <at> cmilsbtest02 ~]$ cksum coreutils-8.29.tar.xz
>> 926393761 5286588 coreutils-8.29.tar.xz
>> [jjacquez <at> cmilsbtest02 ~]$ tar -xf coreutils-8.29.tar.xz
>> [jjacquez <at> cmilsbtest02 ~]$ cd coreutils-8.29/
>> [jjacquez <at> cmilsbtest02 coreutils-8.29]$ wget --quiet 
>> 'https://github.com/coreutils/coreutils/commit/7fc7206.patch' -O- | 
>> patch -R -p1 && make patching file NEWS Unreversed patch detected!
>> Ignore -R? [n] Apply anyway? [n] Skipping patch.
>> 1 out of 1 hunk ignored -- saving rejects to file NEWS.rej patching 
>> file src/tail.c Hunk #1 FAILED at 1220.
>> 1 out of 1 hunk FAILED -- saving rejects to file src/tail.c.rej
>> [jjacquez <at> cmilsbtest02 coreutils-8.29]$
>>
>>
>>
>> Thanks,
>> Jewsco
>>
>>
>>
>>
>>
>> -----Original Message-----
>> From: Pádraig Brady [mailto:P <at> draigBrady.com]
>> Sent: Thursday, May 3, 2018 8:47 PM
>> To: Jewsco Pius Jacquez <JewscoPius.Jacquez <at> Amdocs.com>; 
>> 31184 <at> debbugs.gnu.org
>> Subject: Re: bug#31184: tail -f on Network FS not refreshing as soon as the file is changed.
>>
>> On 02/05/18 06:39, Jewsco Pius Jacquez wrote:
>>> I tried and the --follow=name doesn't refresh either. The stat output is changing.
>>>
>>> [jjacquez <at> cmilsbtest03 ~]$ tail --follow=name /media/samba/test.file 
>>> append Wed May  2 08:35:54 CDT 2018 append Wed May  2 08:35:54 CDT
>>> 2018 append Wed May  2 08:35:54 CDT 2018 append Wed May  2 08:35:54 
>>> CDT 2018 append Wed May  2 08:35:54 CDT 2018 append Wed May  2
>>> 08:35:54 CDT 2018 append Wed May  2 08:35:54 CDT 2018 append Wed May
>>> 2 08:35:54 CDT 2018 append Wed May  2 08:35:54 CDT 2018 append Wed 
>>> May
>>> 2 08:35:55 CDT 2018 ^C
>>> [jjacquez <at> cmilsbtest03 ~]$ tail --follow=name /media/samba/test.file 
>>> append Wed May  2 08:36:01 CDT 2018 append Wed May  2 08:36:01 CDT
>>> 2018 append Wed May  2 08:36:01 CDT 2018 append Wed May  2 08:36:02 
>>> CDT 2018 append Wed May  2 08:36:02 CDT 2018 append Wed May  2
>>> 08:36:02 CDT 2018 append Wed May  2 08:36:02 CDT 2018 append Wed May
>>> 2 08:36:02 CDT 2018 append Wed May  2 08:36:02 CDT 2018 append Wed 
>>> May
>>> 2 08:36:02 CDT 2018 ^C
>>> [jjacquez <at> cmilsbtest03 ~]$ while :; do stat -c '%s' 
>>> /media/samba/test.file; sleep 1; done
>>> 1649717
>>> 1650077
>>> 1650401
>>> 1650761
>>> 1651121
>>> 1651445
>>> 1651769
>>> 1652093
>>> 1652417
>>>
>>>
>>> About the reverting the patch, so I need to download the source and patch it?
>>>
>>>   cd coreutils-8.29 &&
>>>   wget 'https://github.com/coreutils/coreutils/commit/7fc7206.patch' -O- |
>>>   patch -R -p1 &&
>>>   make
>>
>> You'd done that previously, for for completeness yes you need to download the source first like:
>>
>>   wget https://ftpmirror.gnu.org/coreutils/coreutils-8.29.tar.xz
>>   tar -xf coreutils-8.29.tar.xz
> 
> Drats sorry. There were conflicting patches in the meantime.
> You can tweak it like:
> 
>  cd coreutils-8.29 &&
>  wget 'https://github.com/coreutils/coreutils/commit/7fc7206.patch' 
> -O- |  sed 's/name,/false, name,/' |  patch -p1 -R -t &&  make
> 
> cheers,
> Pádraig
> This message and the information contained herein is proprietary and 
> confidential and subject to the Amdocs policy statement,

Well I can't repro with 8.29 on nfs here.
Perhaps the read() is blocking or something.
It would be useful to get the output of:

  strace -o tail.strace tail -f /media/samba/test.file

Also for completeness, it would be good to give the command used to write to the file on the remote end.

thanks,
Pádraig

This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement,

you may review at https://www.amdocs.com/about/email-disclaimer <https://www.amdocs.com/about/email-disclaimer>





Information forwarded to bug-coreutils <at> gnu.org:
bug#31184; Package coreutils. (Tue, 30 Oct 2018 03:08:02 GMT) Full text and rfc822 format available.

Message #59 received at 31184 <at> debbugs.gnu.org (full text, mbox):

From: Assaf Gordon <assafgordon <at> gmail.com>
To: "31184 <at> debbugs.gnu.org" <31184 <at> debbugs.gnu.org>
Subject: Re: bug#31184: tail -f on Network FS not refreshing as soon as the
 file is changed.
Date: Mon, 29 Oct 2018 21:07:19 -0600
close 31184
stop

On 2018-06-12 9:10 a.m., Jewsco Pius Jacquez wrote:
> Padraig, thanks a lot for your help on this.
> 
> We found a workaround combined with cache=none mount option and it works for our customer. You can close this case.
> 
> tail --follow=name --max-unchanged-stats=1 --sleep-interval=.01 <filename>
> 

Given the above, I'm closing this bug.

-assaf




bug closed, send any further explanations to 31184 <at> debbugs.gnu.org and Jewsco Pius Jacquez <JewscoPius.Jacquez <at> Amdocs.com> Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 30 Oct 2018 03:08:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 27 Nov 2018 12:24:13 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 144 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.