Re: Fine-grained locking for POSIX local sockets (UNIX domain sockets)
- From: Peter Jeremy <peterjeremy@xxxxxxxxxxxxxxxx>
- Date: Wed, 10 May 2006 20:11:19 +1000
On Wed, 2006-May-10 10:42:39 +0200, Suleiman Souhlal wrote:
That's not enough. On some CPUs (like the current Opterons), the TSC
slows down when the CPU executes a HLT instruction, so if you want good
accuracy, you'll need to take that into account too.
The CPU can't be executing any instructions whilst it's halted. All
you need to do is update the base time/TSC count between when you exit
halt and when you return to userland.
Since most sane code doesn't call gettimeofday() multiple times per
tick, one option might be to unmap the page when the base data becomes
invalid and update/remap the page when it is first accessed.
--
Peter Jeremy
_______________________________________________
freebsd-performance@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-performance
To unsubscribe, send any mail to "freebsd-performance-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: Fine-grained locking for POSIX local sockets (UNIX domain sockets)
- From: Suleiman Souhlal
- Re: Fine-grained locking for POSIX local sockets (UNIX domain sockets)
- References:
- Fine-grained locking for POSIX local sockets (UNIX domain sockets)
- From: Robert Watson
- Re: Fine-grained locking for POSIX local sockets (UNIX domain sockets)
- From: Sven Petai
- Re: Fine-grained locking for POSIX local sockets (UNIX domain sockets)
- From: Kris Kennaway
- Re: Fine-grained locking for POSIX local sockets (UNIX domain sockets)
- From: Sven Petai
- Re: Fine-grained locking for POSIX local sockets (UNIX domain sockets)
- From: Julian Elischer
- Re: Fine-grained locking for POSIX local sockets (UNIX domain sockets)
- From: Paul Allen
- Re: Fine-grained locking for POSIX local sockets (UNIX domain sockets)
- From: Suleiman Souhlal
- Fine-grained locking for POSIX local sockets (UNIX domain sockets)
- Prev by Date: Re: Fine-grained locking for POSIX local sockets (UNIX domain sockets)
- Next by Date: Re: Fine-grained locking for POSIX local sockets (UNIX domain sockets )
- Previous by thread: Re: Fine-grained locking for POSIX local sockets (UNIX domain sockets)
- Next by thread: Re: Fine-grained locking for POSIX local sockets (UNIX domain sockets)
- Index(es):