Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming.threads > #874
| Path | csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | "aminer" <aminer@videotron.ca> |
| Newsgroups | comp.programming.threads, comp.programming |
| Subject | Re: ParallelHashList was updated to version 1.3 ... |
| Date | Thu, 17 May 2012 19:58:19 -0500 |
| Organization | A noiseless patient Spider |
| Lines | 104 |
| Message-ID | <jp46rd$slo$2@dont-email.me> (permalink) |
| References | <jp3qm5$hb0$1@dont-email.me> |
| Injection-Date | Fri, 18 May 2012 00:58:21 +0000 (UTC) |
| Injection-Info | mx04.eternal-september.org; posting-host="2tHS3m0PYHvqOg8N0HjimQ"; logging-data="29368"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Dnf0pZutxc6OPv8beE9yJ" |
| X-MimeOLE | Produced By Microsoft MimeOLE V6.00.2900.5512 |
| X-RFC2646 | Format=Flowed; Response |
| X-Newsreader | Microsoft Outlook Express 6.00.2900.5512 |
| Cancel-Lock | sha1:Mi+XPvAVkD8hOv7wmYC6OyEmCJE= |
| X-Priority | 3 |
| X-MSMail-Priority | Normal |
| Xref | csiph.com comp.programming.threads:874 comp.programming:1588 |
Cross-posted to 2 groups.
Show key headers only | View raw
Hello again,
One final touch to parallelhashlist: i have just added this
to the constructor:
if AHashSize < 1000
then
begin
writeln('Constructor''s Hash size argument must be superior or equal to
1000');
exit;
end;
So as you have noticed the hash size argument must be superior or equal to
1000
Please download again the parallelhashlist zipfile from:
http://pages.videotron.com/aminer/
Amine Moulay Ramdane.
"aminer" <aminer@videotron.ca> wrote in message
news:jp3qm5$hb0$1@dont-email.me...
>
> Hello,
>
>
> In my previous version of ParallelHashList even if i have used
> lock striping for the hash chains, synchronizing access to the counter
> that computes the number of entries in the hashmap was reintroducing
> the scalability problem of exclusive locking, this counter was called
> a hot field because every mutative operation needs to access it.
> In this new version 1.3 of parallelhashlist i have splited the global
> counter to many counters to enhance the scalability... also i have
> changed
> parallelhashlist to use only 100 lightweight MREWs
> (multiple-readers -exclusive-writer)
> this will lower the memory consumption and this will allow to parallelize
> the writes and reads in separate chains , and also to parallelize the
> reads
> in the same chain of the hashmap , so this will give a good performance
> and a good scalability .
>
> Description:
>
> A Parallel HashList with O(1) (best case) and O(log(n)(worst case)
> access that use a hash based method that uses lock striping and
> 100 lightweight MREWs (multiple-readers -exclusive-writer).
> This will allow to parallelize the writes and reads in separate chains ,
> and
> also to parallelize the reads in the same chain.
>
>
> You can download parallelhashlist from:
>
> http://pages.videotron.com/aminer/
>
>
> Language: FPC Pascal v2.2.0+ / Delphi 5+: http://www.freepascal.org/
>
>
> Operating Systems: Win , Linux and Mac (x86).
>
> and please take a look at the benchmarks here:
>
> http://pages.videotron.com/aminer/parallelhashlist/queue.htm
>
> Note: When i have done those benchmarks , there was not enough/much items
> organized as a self-balancing tree in the individual chains of the
> hashtable, so ,
> almost all the items was found and inserted in O(1) , so the parallel part
> in the
> Amdahl equation was not much bigger compared to to the serial part. But
> you
> will notice in pratice that as soon as you will have more items on the
> chains of
> the Hashtable, organized as self-balancing tree, with a worst case log(n)
> , the
> parallel part will become bigger in the Amdahl equation and you will have
> better
> performance and scalability than the numbers in the graph of the
> benchmarks ...
>
>
>
> Thank you.
>
> Amine Moulay Ramdane.
>
>
>
>
Back to comp.programming.threads | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
ParallelHashList was updated to version 1.3 ... "aminer" <aminer@videotron.ca> - 2012-05-17 17:30 -0500
Re: ParallelHashList was updated to version 1.3 ... "aminer" <aminer@videotron.ca> - 2012-05-17 18:00 -0500
Re: ParallelHashList was updated to version 1.3 ... "aminer" <aminer@videotron.ca> - 2012-05-17 18:28 -0500
Re: ParallelHashList was updated to version 1.3 ... "aminer" <aminer@videotron.ca> - 2012-05-17 19:17 -0500
Re: ParallelHashList was updated to version 1.3 ... "aminer" <aminer@videotron.ca> - 2012-05-17 19:21 -0500
Re: ParallelHashList was updated to version 1.3 ... "aminer" <aminer@videotron.ca> - 2012-05-17 19:58 -0500
Re: ParallelHashList was updated to version 1.3 ... "aminer" <aminer@videotron.ca> - 2012-05-17 20:02 -0500
Re: ParallelHashList was updated to version 1.3 ... "aminer" <aminer@videotron.ca> - 2012-05-17 21:01 -0500
Re: ParallelHashList was updated to version 1.3 ... "aminer" <aminer@videotron.ca> - 2012-05-17 21:23 -0500
csiph-web