MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/linux/comments/30skg1/stop_using_tail_f_mostly/cpxbbfs/?context=9999
r/linux • u/[deleted] • Mar 30 '15
219 comments sorted by
View all comments
350
The problem is that less +F polls every second while tail -f uses inotify, which is both more efficient and responds faster to change.
less +F
tail -f
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
22
[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
14
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
2
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
6
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
1
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
erm, no, recently written logs will hang around in linux cache in RAM
350
u/drrlvn Mar 30 '15
The problem is that
less +Fpolls every second whiletail -fuses inotify, which is both more efficient and responds faster to change.