All of lore.kernel.org
 help / color / mirror / Atom feed
* semaphore and mutex in current Linux kernel (3.2.2)
@ 2012-04-01  9:56 Chen, Dennis (SRDC SW)
  2012-04-01 12:19 ` Ingo Molnar
  0 siblings, 1 reply; 19+ messages in thread
From: Chen, Dennis (SRDC SW) @ 2012-04-01  9:56 UTC (permalink / raw)
  To: linux-kernel; +Cc: mingo

Documentation/mutex-design.txt:

"- 'struct mutex' is smaller on most architectures: E.g. on x86,
   'struct semaphore' is 20 bytes, 'struct mutex' is 16 bytes.
   A smaller structure size means less RAM footprint, and better
   CPU-cache utilization."
================================================================
Now in my x86-64 32-bit Linux environment, 'struct semaphone' is 16 bytes,
'struct mutex' is 20 bytes. So seems the RAM footprint advantages are not there...

For the performance advantages followed, I don't have the ./test-mutex and maybe the 
testing environment, so haven't the 1st hand data for this item...





^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2012-04-16 14:10 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-01  9:56 semaphore and mutex in current Linux kernel (3.2.2) Chen, Dennis (SRDC SW)
2012-04-01 12:19 ` Ingo Molnar
2012-04-02 15:28   ` Chen, Dennis (SRDC SW)
2012-04-03  7:52     ` Ingo Molnar
2012-04-05  8:37       ` Chen, Dennis (SRDC SW)
2012-04-05 14:15         ` Clemens Ladisch
2012-04-06  9:45           ` Chen, Dennis (SRDC SW)
2012-04-06 10:10             ` Clemens Ladisch
2012-04-06 17:47               ` Chen, Dennis (SRDC SW)
2012-04-09 18:45                 ` Paul E. McKenney
2012-04-11  5:04                   ` Chen, Dennis (SRDC SW)
2012-04-11 17:30                     ` Paul E. McKenney
2012-04-12  9:42                       ` Chen, Dennis (SRDC SW)
2012-04-12 15:18                         ` Paul E. McKenney
2012-04-13 14:15                           ` Chen, Dennis (SRDC SW)
2012-04-13 18:43                             ` Paul E. McKenney
2012-04-16  8:33                               ` [PATCH 0/2] tools perf: Add a new benchmark tool for semaphore/mutex Chen, Dennis (SRDC SW)
2012-04-16  9:24                                 ` Ingo Molnar
2012-04-16 14:10                                   ` Chen, Dennis (SRDC SW)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.