From: laijs@cn.fujitsu.com (Lai Jiangshan)
Subject: [lttng-dev] [PATCH 00/12] rculfhash memory managements
Date: Mon, 28 Nov 2011 22:23:18 +0800 [thread overview]
Message-ID: <4ED39956.2020208@cn.fujitsu.com> (raw)
In-Reply-To: <20111128134336.GM2663@Krystal>
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
>>
>
next prev parent reply other threads:[~2011-11-28 14:23 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-28 8:07 Lai Jiangshan
2011-11-28 8:07 ` [lttng-dev] [PATCH 01/12] introduce bucket_at() and improve readability Lai Jiangshan
2011-11-28 13:01 ` Mathieu Desnoyers
2011-11-28 8:07 ` [lttng-dev] [PATCH 02/12] proper wrapper for bucket table alloc and free Lai Jiangshan
2011-11-28 13:02 ` Mathieu Desnoyers
2011-11-28 8:07 ` [lttng-dev] [PATCH 03/12] it is not required that ht->t.size >= ht->min_table_size now Lai Jiangshan
2011-11-28 13:07 ` Mathieu Desnoyers
2011-11-28 8:08 ` [lttng-dev] [PATCH 04/12] remove struct rcu_level Lai Jiangshan
2011-11-28 13:08 ` Mathieu Desnoyers
2011-11-28 8:08 ` [lttng-dev] [PATCH 05/12] rename min_alloc_size/min_alloc_order Lai Jiangshan
2011-11-28 13:14 ` Mathieu Desnoyers
2011-11-28 8:08 ` [lttng-dev] [PATCH 06/12] add max_nr_buckets argument Lai Jiangshan
2011-11-28 13:24 ` Mathieu Desnoyers
2011-11-28 8:08 ` [lttng-dev] [PATCH 07/12] Add rcu_flavor Lai Jiangshan
2011-11-28 13:23 ` Mathieu Desnoyers
2011-11-28 8:08 ` [lttng-dev] [PATCH 08/12] use rcu_flavor for rculfhash Lai Jiangshan
2011-11-28 13:24 ` Mathieu Desnoyers
2011-11-28 8:08 ` [lttng-dev] [PATCH 09/12] remove struct rcu_table Lai Jiangshan
2011-11-28 13:25 ` Mathieu Desnoyers
2011-11-28 8:08 ` [lttng-dev] [PATCH 10/12] move memory management code out as rculfhash-mm-order.c Lai Jiangshan
2011-11-28 13:27 ` Mathieu Desnoyers
2011-11-28 8:08 ` [lttng-dev] [PATCH 11/12] add rculfhash-mm-chunk.c memory management Lai Jiangshan
2011-11-28 13:33 ` Mathieu Desnoyers
2011-11-28 8:08 ` [lttng-dev] [PATCH 12/12] add rculfhash-mm-mmap.c " Lai Jiangshan
2011-11-28 13:43 ` Mathieu Desnoyers
2011-11-28 14:05 ` Lai Jiangshan
2011-11-28 14:15 ` Mathieu Desnoyers
2011-11-28 13:43 ` [lttng-dev] [PATCH 00/12] rculfhash memory managements Mathieu Desnoyers
2011-11-28 14:23 ` Lai Jiangshan [this message]
2011-11-28 14:39 ` Mathieu Desnoyers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4ED39956.2020208@cn.fujitsu.com \
--to=laijs@cn.fujitsu.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox