Zhoutall / stasis

Automatically exported from code.google.com/p/stasis
Other
0 stars 0 forks source link

add support for "partitioned" redblack tree #27

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Currently there is one redblack tree to store dirty pages, and it's protected 
by a single mutex. Rusty's suggestion is to partition the tree into multiple 
internal trees, each protected by its own mutex. Then we can benchmark it and 
see if it helps increase concurrency. 

--Michi

Original issue reported on code.google.com by mutsuz...@gmail.com on 24 Jul 2011 at 1:09

GoogleCodeExporter commented 9 years ago
Dumping a temporary patch here. 

--Michi

Original comment by mutsuz...@gmail.com on 24 Jul 2011 at 1:13

Attachments:

GoogleCodeExporter commented 9 years ago
Test cases for scan and min would be good (My guess is that we'll need to 
optimize min down the road...).

Also, we should probably pass "ignored" through as the second parameter of 
rbinit.  That creates pointer aliases, which might be problematic if the 
comparator tries to update its state.  However, the parameter is completely 
useless otherwise.  

Otherwise, it looks good.

Thanks.

-Rusty

Original comment by sears.ru...@gmail.com on 25 Jul 2011 at 4:04

GoogleCodeExporter commented 9 years ago

Original comment by sears.ru...@gmail.com on 25 Jul 2011 at 4:06