Re: posix_fadvise noreuse disables file caching

看板FB_current作者時間14年前 (2012/01/26 07:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串4/9 (看更多)
On 1/25/12 8:29 AM, John Baldwin wrote: > > So I've came up with this untested patch. It uses > VOP_ADVISE(FADV_DONTNEED) after read(2) calls to a NOREUSE region, and > leaves read-ahead caching enabled for NOREUSE. FADV_DONTNEED doesn't > do any good really for writes (it only flushes clean buffers), so I've > left write(2) operations as using IO_DIRECT still. Does this sound > reasonable? That sounds like a good solution. If people want something from write they can do it separately. For what it's worth, I would expect NOREUSE on write to still do write clustering but to free the buffer once it is written. _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1F893onW (FB_current)
討論串 (同標題文章)
文章代碼(AID): #1F893onW (FB_current)