It is currently Mon, 26 Oct 2020 03:44:00 GMT



 
Author Message
 (0/4) 2.5.59 fast reader/writer lock for gettimeofday

 The following set of patches provides a faster specialized
reader/writer primitive which then is used to provide lockless
version of gettimeofday. It is an update to my earlier patch
( http://www.**-**.com/ ) based on feed back from Andrea Arcangeli
in the 2.4-aa kernel and Andrew Morton in 2.5.59-mm6.

This solves the denial-of-service problem of repeated gettimeofday
readers, starving timer tick update. This has been observed by several
people.

As an added benefit, it improves the performance of gettimeofday by 18%
from 1100 clocks to 900 clocks (on my SMP P4 Xeon) using the sysenter
version of glibc.

This mechanism is general. There has been some discussion
that it could also be used to solve the problem
of atomic updates to composite values like i_size.

Please consider including this for 2.5.  The patch is broken into
generic, i386, ia64, and other archiecture pieces.  The i386 and ia64
versions have been tested.  The other arch's are simple edits.  x86_64
has NOT been done, but this could replace the vxtime[] sequence number
there.

Thanks

--
Stephen Hemminger <shemmin...@osdl.org>
Open Source Devlopment Lab

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at   http://www.**-**.com/
Please read the FAQ at   http://www.**-**.com/



 Sun, 17 Jul 2005 00:50:12 GMT   
 
   [ 1 post ] 

Similar Threads

1. (1/4) 2.5.59 fast reader/writer lock for gettimeofday

2. (2/4) 2.5.59 fast reader/writer lock for gettimeofday

3. (4/4) 2.5.59 fast reader/writer lock for gettimeofday

4. (3/4) 2.5.59 fast reader/writer lock for gettimeofday

5. fast reader/writer lock for gettimeofday 2.5.30

6. fast reader/writer lock for gettimeofday 2.5.30

7. "tee", but with fast writer, 1 slow reader and 1 fast reader

8. kernel performance issue - spins on readers/writer locks

9. how to implement readers/writer lock

10. reader-writer spin locks


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software