quetz-mod_python-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Gardner <jgard...@jonathangardner.net>
Subject Benefits of shared memory
Date Fri, 18 Jul 2003 20:02:02 GMT
Hash: SHA1

On Friday 18 July 2003 10:38, Gregory (Grisha) Trubetskoy wrote:
> Shared memory would be most useful for short-time volatile session data
> storage. This is frequently used in the Java world by assigning attributes
> to an HttpSession.

I'll list a few more uses. Maybe it will help us determine a better solution 
to our "problems", or evaluate whether or not it is worth the effort at this 

1. Caching fairly static data -- like database query results -- to be shared 
among the processes. This will improve the speed of the affected pages.

2. Caching database connection objects. Connecting to a database is often the 
slowest and most network intensive activity. This will reduce network load 
and improve the speed of all pages that need a database connection.

3. Sharing static module data among several processes. This allows us to run 
more children on the same machine, because the shared stuff is shared. It 
also allows us to spawn new children more quickly because they do not have to 
reinitialize all of the modules.

- -- 
Jonathan Gardner <jgardner@jonathangardner.net>
(was jgardn@alumni.washington.edu)
Live Free, Use Linux!
Version: GnuPG v1.2.1 (GNU/Linux)


View raw message