need some help in serving static files inside a wsgi apps

Sebastian 'lunar' Wiesner basti.wiesner at gmx.net
Sun May 25 05:04:42 EDT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[ "Martin v. Löwis" <martin at v.loewis.de> ]

>> I guess, Apache does some kind of memory caching for files, which are
>> often requested and small enough to fit into the system memory.
> 
> Are you sure about this? 

No, I'm not.  That's why I said "I guess" ;)

> Also, I don't see the need for Apache to cache frequently requested
> files itself. Instead, the operating system will cache frequently
> requested directories and files in memory, and it will do the same for
> a Python web server.

Of course, a modern OS kernel will perform caching anyway, but this is most
likely slower than in-process caching, since it will still require context
switches from userspace into kernel space.

Considering this, it seems reasonable to me, that apache does memory
caching, but I'm by far not sure, I wouldn't put a bet on this ;)

- -- 
Freedom is always the freedom of dissenters.
                                      (Rosa Luxemburg)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEARECAAYFAkg5K7kACgkQn3IEGILecb48VwCeJYqoyi7IJKwASza9/u381dmg
PqMAn1M/JBe8xEsOAPNosNWA9WoKCvNh
=K3tE
-----END PGP SIGNATURE-----



More information about the Python-list mailing list