On Thu, Aug 11, 2005 at 12:33:07PM -0500, Eric Lowe wrote: > On Thu, Aug 11, 2005 at 05:20:53AM -0500, Robert W. Fuller wrote: > ... > | Yes, I can kmem_alloc the condition variable. However, I'm only > | using it for the duration of a thread wait. In this case, it's in > | the read entry point of a character device. I don't want to incur > | the cost of calling a sub allocator, both in terms of processor time > | and memory fragmentation for something this trivial. I know that > | after the wait, the condition variable will not be used again. > > Kernel stacks are pageable, but only when the thread is not running or > blocked in the kernel.
To be specific, only when the thread is sleeping in cv_wait_sig_swap(). (so a condition variable allocated on the stack should never be passed to cv_wait_sig_swap()) Cheers, - jonathan -- Jonathan Adams, Solaris Kernel Development _______________________________________________ opensolaris-code mailing list [email protected] https://opensolaris.org:444/mailman/listinfo/opensolaris-code
