Opened 5 weeks ago
Last modified 4 weeks ago
#19254 new enhancement
[BFS] Take advantage of block-cache prefetching
Reported by: | waddlesplash | Owned by: | axeld |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | File Systems/BFS | Version: | R1/beta5 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
In hrev58332, an API was added to the block_cache to prefetch blocks. We should take advantage of this API in BFS, especially for directory iteration, to speed up the first reads of directories and such. This could go a long way to improving performance with Git with cold disk caches, I think.
Note:
See TracTickets
for help on using tickets.
I came up with this:
However, the added dprintf() doesn't fire nearly as often as I'd expect; running "git status" with a cold disk cache in the Haiku repository, I see less than a hundred prints of the log, while of course there are thousands of directories. Not sure what I am doing wrong here, or if I'm putting this in the wrong place...