On 08/11/05 00:21, Robert W. Fuller wrote:
I'm not sure if this is the right venue for this question. Does anybody know
off-hand if kernel stacks are pageable?
I don't think kernel stacks (for kernel threads or those supporting
lwps) are pageable. They are allocated from segkp (seg kernel pageable)
but that is done with the SEGKP_LOCKED flag which stops them from
being paged (I think). (Working from mem sop names may be wrong)
thread_create() calls segkp_cache_get for a new stack (if none is
passed in); this function calls segkp_get_internal if none are available
of the free list -and if you dig up how those free lists are defined they
included SEGKP_LOCKED in their flags.
I'm sure Frank will correct me if that is wrong :-) I've never fully
comprehended the joys of segkp.
Cheers
Gavin
_______________________________________________
opensolaris-code mailing list
[email protected]
https://opensolaris.org:444/mailman/listinfo/opensolaris-code