[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Many questions, mostly about mach-defpager

From: Thomas Bushnell, BSG
Subject: Re: Many questions, mostly about mach-defpager
Date: Mon, 30 Apr 2012 20:09:53 -0700

A wired thread (vm_wire) has special vm rules inside the kernel. It's got nothing to do with what you might expect (tying a cthread to a kernel thread).


On Mon, Apr 30, 2012 at 4:30 PM, Thomas Thomas <ricinwich@yahoo.com> wrote:
So, mach-defpager "wires" all of its threads. What exactly does that mean?
I think the headers are kind-of sketchy. They do say that in GNU all threads
are wired, will this apply to pthread threads, too?

Nextly, it uses cthread_data to store a pointer to a thread-specific buffer
that it uses in paging. As I see it: all threads are created when the pager
starts up, and no threads are created afterward. Thus, I could achieve the
same result by using a hash to map between the thread handles and the
buffer pointers. Would this be a good idea/efficient? Mainly, I just want
your thoughts.

I'll leave it at this...

Thomas D

reply via email to

[Prev in Thread] Current Thread [Next in Thread]