Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only allow certain priority threads to use the zero list #1399

Open
georgeklees opened this issue Nov 27, 2014 · 0 comments
Open

Only allow certain priority threads to use the zero list #1399

georgeklees opened this issue Nov 27, 2014 · 0 comments

Comments

@georgeklees
Copy link
Contributor

Right now, the free list manager has two different lists of free pages: the free list and the zero list. The pages on the free list could contain any arbitrary data, so they must be cleaned before being handed out to userspace processes (by overwriting their contents with zeroes). The zero list contains pages that are guaranteed to be clean already, so the cleaning step can be skipped. This is a nice optimization, but it applies equally to threads of any priority. Under this model, many low priority threads could take all the zero pages and force a high priority thread to clean all the pages. This is obviously undesirable, so the free list manager should have some sort of cutoff priority for allowing access to the zero page list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant