From mboxrd@z Thu Jan 1 00:00:00 1970 From: laijs@cn.fujitsu.com (Lai Jiangshan) Date: Mon, 28 Nov 2011 22:23:18 +0800 Subject: [lttng-dev] [PATCH 00/12] rculfhash memory managements In-Reply-To: <20111128134336.GM2663@Krystal> References: <1322467688-2930-1-git-send-email-laijs@cn.fujitsu.com> <20111128134336.GM2663@Krystal> Message-ID: <4ED39956.2020208@cn.fujitsu.com> 3fd3f554f6eb18ae5ec526b82025a53a554f775d are wrong, 1) dynamic len tbl_chunk must at the end of cds_lfht, (so I put all the mm field at the end of cds_lfht). 2) lists of hot access fields: size tbl_order/chunk/mmap bucket_at flags (testing for counting) split_count min_alloc_buckets_order (bucket_at() for chunk mm) min_nr_alloc_buckets (buket_at() for order mm and chunk mm) They are many, so I group them by functional, not accessing ratio. On 11/28/2011 09:43 PM, Mathieu Desnoyers wrote: > * Lai Jiangshan (laijs at cn.fujitsu.com) wrote: >> Patch 1-9: extract memory managements (internal)APIs and prepare >> for memory managements >> >> (Patch 7 add general struct rcu_flavor) >> >> Patch 10-12: Add memory managements. > > All merged, thanks Lai! > > Mathieu > >> >> >> Lai Jiangshan (12): >> introduce bucket_at() and improve readability >> proper wrapper for bucket table alloc and free >> it is not required that ht->t.size >= ht->min_table_size now >> remove struct rcu_level >> rename min_alloc_size/min_alloc_order >> add max_nr_buckets argument >> Add rcu_flavor >> use rcu_flavor for rculfhash >> remove struct rcu_table >> move memory management code out as rculfhash-mm-order.c >> add rculfhash-mm-chunk.c >> add rculfhash-mm-mmap.c >> >> Makefile.am | 8 +- >> rculfhash-internal.h | 131 +++++++++++++++ >> rculfhash-mm-chunk.c | 107 ++++++++++++ >> rculfhash-mm-mmap.c | 147 +++++++++++++++++ >> rculfhash-mm-order.c | 101 ++++++++++++ >> rculfhash.c | 417 +++++++++++++++++++----------------------------- >> tests/test_urcu_hash.c | 4 +- >> urcu-bp.c | 2 + >> urcu-bp.h | 1 + >> urcu-flavor.h | 65 ++++++++ >> urcu-qsbr.c | 2 + >> urcu-qsbr.h | 1 + >> urcu.c | 2 + >> urcu.h | 1 + >> urcu/map/urcu-bp.h | 2 + >> urcu/map/urcu-qsbr.h | 2 + >> urcu/map/urcu.h | 6 + >> urcu/rculfhash.h | 43 +++-- >> 18 files changed, 768 insertions(+), 274 deletions(-) >> create mode 100644 rculfhash-internal.h >> create mode 100644 rculfhash-mm-chunk.c >> create mode 100644 rculfhash-mm-mmap.c >> create mode 100644 rculfhash-mm-order.c >> create mode 100644 urcu-flavor.h >> >> -- >> 1.7.4.4 >> >