[SERVER-3380] log writing should be fadvise'd Created: 06/Jul/11 Updated: 12/Jul/16 Resolved: 12/Sep/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Logging |
| Affects Version/s: | None |
| Fix Version/s: | 2.1.0 |
| Type: | Improvement | Priority: | Trivial - P5 |
| Reporter: | Dwight Merriman | Assignee: | Mathias Stearn |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: |
| Description |
|
the log writing should be fadvised as "don't cache for long" as we typically don't go back and read it. if the log were gigantic, this will push db data out of the filesystem cache if the data is touched infrequently. the same would apply to other files that output big files we don't need – not sure what those are – mongodump? mongoexport? i guess most temp files we generate we quickly use so probably doesn't make sense there. |
| Comments |
| Comment by auto [ 22/Dec/11 ] |
|
Author: {u'login': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}Message: use fadvise(dontneed) for log file |
| Comment by auto [ 12/Sep/11 ] |
|
Author: {u'login': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}Message: use fadvise(dontneed) for log file |