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
> 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
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
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
> > 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
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
[ ... ]
> > 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
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
> 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