Re: [parisc-linux] [patch 15/23] Add cmpxchg_local to parisc

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Grant Grundler <grundler@...>
Cc: <akpm@...>, <linux-kernel@...>, <parisc-linux@...>, Christoph Lameter <clameter@...>
Date: Wednesday, August 29, 2007 - 8:08 am

* Grant Grundler (grundler@parisc-linux.org) wrote:

Yep.. atomic_t static variables used as counters are a perfect match:
they are updated very often and read rarely. Therefore, it is
preferable to have per cpu updates with very cheap locking and to
iterate on all of them to sum them when they should be printed. That's
just an example, but with it comes vmstat and all sorts of counters.


Each of these cmpxchg will execute atomically wrt the local CPU, so
there is no limitation there.


Hehe sure :) I'll prepare one.


-- 
Mathieu Desnoyers
Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 15/23] Add cmpxchg_local to parisc, Mathieu Desnoyers, (Sun Aug 12, 10:54 am)
Re: [parisc-linux] [patch 15/23] Add cmpxchg_local to parisc, Mathieu Desnoyers, (Mon Aug 27, 5:11 pm)
Re: [parisc-linux] [patch 15/23] Add cmpxchg_local to parisc, Mathieu Desnoyers, (Tue Aug 28, 7:50 am)
Re: [parisc-linux] [patch 15/23] Add cmpxchg_local to parisc, Mathieu Desnoyers, (Tue Aug 28, 2:38 pm)
Re: [parisc-linux] [patch 15/23] Add cmpxchg_local to parisc, Mathieu Desnoyers, (Wed Aug 29, 8:08 am)