Messages in this thread |  | | Date | Wed, 13 Apr 2011 15:57:15 +0800 | From | shaohua.li@intel ... | Subject | [patch v2 0/4] percpu_counter: cleanup and fix |
| |
Cleanup percpu_counter code and fix some bugs. The main purpose is to convert percpu_counter to use atomic64, which is useful for workloads which cause percpu_counter->lock contented. In a workload I tested, the atomic method is 50x faster (please see patch 4 for detail).
patch 1&2: clean up patch 3: fix bug of percpu_counter for 32-bit systems. patch 4: convert percpu_counter to use atomic64
|  |