microsoft / microsoft/VFSForGit

Mac: Support increasing the number entries in the vnode cache while the kext is running

Open
#924 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

affects: performance domain: kext platform: macOS
Dominant language
C#
Stars
6.1k
Forks
474
Avg merge
2d 4h
Merged PRs (30d)
8

Description

Currently if the vnode cache runs out of room the cache is cleared and it starts getting filled up again.

With an initial size of 2 * desiredvnodes it's unlikely the cache will run out of room, however, it's possible that another kext could increase the value of desiredvnodes after the cache is initialized.

Rather than simply clearing the cache, we could allocate more memory at the same time.

Related comments in #715:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the Mac kext's vnode cache initialization and the path taken when the cache runs out of room; review the related discussion in issue #715. Done means the cache can allocate more memory when desiredvnodes increases while the kext is running, instead of simply clearing and refilling it.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos
Domain
operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.