r/linux • • Mar 30 '15

Stop using tail -f (mostly)

http://www.brianstorti.com/stop-using-tail/
830 Upvotes

219 comments sorted by

View all comments

350

u/drrlvn Mar 30 '15

The problem is that less +F polls every second while tail -f uses inotify, which is both more efficient and responds faster to change.

22

u/[deleted] Mar 30 '15 edited Mar 30 '15

[removed] — view removed comment

14

u/[deleted] Mar 30 '15

Did you ever found a case when that additional load was actually meaningful ?

2

u/[deleted] Mar 30 '15

[removed] — view removed comment

6

u/[deleted] Mar 30 '15

No, I meant load from polling

1

u/phessler Mar 31 '15

you ever try to read log files from a slow disk? or one that is in the process of dying? poll is hugely painful there.

1

u/[deleted] Apr 01 '15

erm, no, recently written logs will hang around in linux cache in RAM