---
title: "Non Paged CLR Host"
url: "https://osherove.com/blog/2008/7/8/non-paged-clr-host.md"
canonical: "https://osherove.com/blog/2008/7/8/non-paged-clr-host.html"
published: "2008-07-08T12:36:43"
updated: "2008-07-08T12:36:43"
tags: [".NET", "Cool Tools"]
author: "Roy Osherove"
description: "Sasha and Alon have released an open source project called \" Non Paged CLR Host \" which has the following benefits(quoted): Applications will benefit from no paging during normal operation. Even if other applications…"
usage: "Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page)."
license: "https://creativecommons.org/licenses/by/4.0/"
---

# Non Paged CLR Host

By Roy Osherove July 8, 2008 In [.NET](https://osherove.com/blog/category/net), [Cool Tools](https://osherove.com/blog/category/cool-tools)

**Historical article** · Originally published July 8, 2008; technical details may be outdated.

[Sasha](http://blogs.microsoft.co.il/blogs/sasha/) and [Alon](http://blogs.microsoft.co.il/blogs/alon) have [released](http://blogs.microsoft.co.il/blogs/sasha/archive/2008/06/27/non-paging-clr-host.aspx) an open source project called "[Non Paged CLR Host](http://www.codeplex.com/NonPagedCLRHost)" which has the following benefits(quoted):

1. **Applications will benefit from no paging during normal operation.**  Even if other applications are actively allocating memory, allocations performed under the non-paged CLR host will be locked into physical memory.
2. **No paging will occur when the application is idle**, providing a great benefit to low-latency processes such as GUI applications (even if the user has fallen asleep in front of the monitor).  The normal working set management scheme employed by Windows will not affect processes running under the non-paged CLR host.

That's Pretty cool. I've had the pleasure of working on a project with both of them, where CLR memory boundaries are constantly challenged. I wonder if it could benefit from such a piece of code!

PS

If you're not following [sasha's blog](http://www.codeplex.com/NonPagedCLRHost) - you really should.

## More in .NET

[All posts in .NET](https://osherove.com/blog/category/net)

- Jul 13, 2008

    ### [Poll Results: Threading, Mock Frameworks and unit test frameworks](https://osherove.com/blog/2008/7/13/poll-results-threading-mock-frameworks-and-unit-test-framewo.html)

- Jul 10, 2008

    ### [Poll: What threading features do you use?](https://osherove.com/blog/2008/7/10/poll-what-threading-features-do-you-use.html)

- Jun 13, 2008

    ### [Unit Testing Interview at TechEd](https://osherove.com/blog/2008/6/13/unit-testing-interview-at-teched.html)

- Jun 9, 2008

    ### [Fit/Fitnesse Fixture Gallery -Real world help for FIT and Fitnesse users](https://osherove.com/blog/2008/6/9/fitfitnesse-fixture-gallery-real-world-help-for-fit-and-fitn.html)


---

## About the author

**Roy Osherove**: Senior Solutions Architect at AWS working on AI for production and AI-driven development; author of The Art of Unit Testing and Elastic Leadership, with about 20 years of consulting and training on unit testing, TDD, team leadership and continuous delivery.

### Sites

- [RobotPaper](https://robotpaper.ai/): This blog: AI patterns and anti-patterns, AI and coding agents, and engineering leadership.
- [osherove.com](https://osherove.com): Roy's personal site. Author of The Art of Unit Testing and Elastic Leadership; consulting and training on unit testing, TDD, team leadership and continuous delivery, plus about 20 years of blog posts.
- [The Art of Unit Testing](https://www.artofunittesting.com): The Art of Unit Testing, 3rd Edition (Manning): readable, maintainable, trustworthy unit tests, plus TDD workshops in C#, JavaScript, Java and Kotlin.
- [5whys.com](https://www.5whys.com): Roy's writing on software team leadership: self-organizing teams, surviving chaos, learning mode and the Elastic Leadership model.
- [Pipeline Driven](https://pipelinedriven.org): Continuous delivery and DevOps practices: build patterns, pipeline-friendly testing, DevOps metrics and enterprise DevOps.
- [Elastic Leadership](https://www.elasticleadership.com): Elastic Leadership, Roy's framework for software team leaders (survival, learning and self-organizing modes).

### Social

- X: https://x.com/royosherove
- LinkedIn: https://www.linkedin.com/in/osherove/

### Contact

- Contact form: https://forms.gle/jQSx5KoXvrVA1JCK7

### License

Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page). License: https://creativecommons.org/licenses/by/4.0/
