Re: VM question related to faults
- From: "Intron" <mag@xxxxxxxxx>
- Date: Mon, 31 Jul 2006 17:38:07 +0800
mykola.stryebkov@xxxxxxxxx wrote:
On 31.07.2006 14:12:20, Intron wrote:
Mutex(9) is sometimes too heavy, and has many limitations, while sx(9)
is somewhat enough.
First paragraph from sx(9) manual says:
Shared/exclusive locks are used to protect data that are read
far more often than they are written. Mutexes are inherently
more efficient than shared/exclusive locks, so shared/exclusive
locks should be used prudently.
--
Nick Strebkov
Public key: http://humgat.org/~nick/pubkey.txt
fpr: 552C 88D6 895B 6E64 F277 D367 8A70 8132 47F5 C1B6
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"
But sx(9) also says in section "CONTEXT",
A thread may hold a shared or exclusive lock on an sx lock while sleep-
ing.
You may try copyout() when holding a mutex(9) on 7.0-CURRENT.
Look out for kernel crash.
------------------------------------------------------------------------
From Beijing, China
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"
- References:
- VM question related to faults
- From: Divacky Roman
- Re: VM question related to faults
- From: Divacky Roman
- Re: VM question related to faults
- From: Intron
- Re: VM question related to faults
- From: mykola . stryebkov
- VM question related to faults
- Prev by Date: Re: VM question related to faults
- Next by Date: Re: [PATCH] adding two new options to 'cp'
- Previous by thread: Re: VM question related to faults
- Next by thread: Re: VM question related to faults
- Index(es):
Relevant Pages
|
|