[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 SERVER-3380
Branch: v2.0
https://github.com/mongodb/mongo/commit/a719914879ba9fa847bb9df596df956506054acf

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 SERVER-3380
Branch: master
https://github.com/mongodb/mongo/commit/5f954259f794fc5f69706c937827d6a30ff9ab18

Generated at Thu Feb 08 03:02:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.