durusmail: durus-users: PersistentDict vs BTree
PersistentDict vs BTree
2006-10-03
2006-10-03
2006-10-03
2006-10-03
2006-10-05
2006-10-05
2006-10-05
2006-10-05
2006-10-11
2006-10-11
2006-10-11
2006-10-12
2006-10-12
2006-10-12
2006-10-13
2006-10-13
2006-10-13
2006-10-13
2006-10-13
2006-10-13
Re: PersistentDict vs BTree
2006-10-23
2006-10-31
PersistentDict vs BTree
Jesus Cea
2006-10-23
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mike Orr wrote:
>    - Three Quixote processes on the server would take 645 MB, a good
> chunk of the 1 GB total, though one or two would be swapped out
> sometimes.

If your data is "read only" and you are using a pickle, I guess you
should be able to share the entire data between threads, without any
special code.

Another option would use a single-thread server with the quixote
instances acting as "clients" (sending search terms to the server). This
makes sense because a) eats less RAM and b) since your search is CPU
bound, processing "x" queries at once will be (slightly) slower that
processing the queries serially.

- --
Jesus Cea Avion                         _/_/      _/_/_/        _/_/_/
jcea@argo.es http://www.argo.es/~jcea/ _/_/    _/_/  _/_/    _/_/  _/_/
jabber / xmpp:jcea@jabber.org         _/_/    _/_/          _/_/_/_/_/
                               _/_/  _/_/    _/_/          _/_/  _/_/
"Things are not so easy"      _/_/  _/_/    _/_/  _/_/    _/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/        _/_/_/      _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQCVAwUBRT0P/Jlgi5GaxT1NAQKNzwP+Lwt6iXlFkE6msJr7bwrlEJHmZp1OltBl
j4tDPJT7pVffftH3XQ8dqYkHLuRSLCmjWI1RU9FqDDsEb0Y2UrymZBIHdoI2lFkw
f5ZtPu7H5FTlLOv17uWw1culuNfmEhi+7+A9fZ45AIcdwl0h+VUcO/65esWTLgSN
bJebdRB55Nk=
=mnm3
-----END PGP SIGNATURE-----
reply