Re: [osol-code] kernel stacks pageable?

2005-08-11 Thread Jonathan Adams
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 o

Re: [osol-code] kernel stacks pageable?

2005-08-11 Thread Peter Memishian
> KPD_LOCKED allocates the pages and implicitly does the same thing > segkp_fault(F_SOFTLOCK) would do to them -- it allocates the pages and > leaves them locked SE_SHARED -- i.e. they are not pageable. > > swapout() unlocks the seg_kp stack pages (segkp_fault(F_SOFTUNLOCK)), > so that they

Re: [osol-code] kernel stacks pageable?

2005-08-11 Thread Eric Lowe
On Thu, Aug 11, 2005 at 03:44:08PM -0400, Peter Memishian wrote: | | > | even though they're allocated KPD_LOCKED? | > | > Pageable as in, when the stack ain't in use, it can be freed. | | when isn't a stack in use? KPD_LOCKED allocates the pages and implicitly does the same thing segkp_faul

Re: [osol-code] kernel stacks pageable?

2005-08-11 Thread Eric Lowe
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 s

Re: [osol-code] kernel stacks pageable?

2005-08-11 Thread Frank Hofmann - Solaris Sustaining
> > 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 wi

Re: [osol-code] kernel stacks pageable?

2005-08-11 Thread Gavin Maltby
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 p

Re: [osol-code] kernel stacks pageable?

2005-08-11 Thread Frank Hofmann - Solaris Sustaining
[ ... ] > > What's the advantage ? You don't save nothing. Typing 30 characters, > > maybe. For what ? Purely academic interest ? > > You save multiple calls to a sub-allocator. In my case, there would need to be > a kmem_alloc and a kmem_free. Yes, as I mentioned above, I could cache allocate

Re: [osol-code] kernel stacks pageable?

2005-08-11 Thread Robert W. Fuller
Frank Hofmann - Solaris Sustaining wrote: >>I'm not sure if this is the right venue for this question. Does anybody know >>off-hand if kernel stacks are pageable? Is it safe to create a condition >>variable on a kernel stack? >>___ >>opensolaris-code ma

Re: [osol-code] kernel stacks pageable?

2005-08-11 Thread Frank Hofmann - Solaris Sustaining
> I'm not sure if this is the right venue for this question. Does anybody know > off-hand if kernel stacks are pageable? Is it safe to create a condition > variable on a kernel stack? > ___ > opensolaris-code mailing list > opensolaris-code@opensolaris